Broken image URLs in rack view #6611

Closed
opened 2025-12-29 19:43:06 +01:00 by adam · 3 comments
Owner

Originally created by @AndMrzv on GitHub (Jun 30, 2022).

NetBox version

v3.2.5

Python version

3.9

Steps to Reproduce

  1. Have device types with front and rear device pictures uploaded and hosted on a separate domain (we use it for static content, let's say https://static.domain/images/front.png)
  2. Have devices installed in a rack
  3. View the rack with https://your.netbox.domain/dcim/racks/$some_id/

Expected Behavior

Front and Rear rack view filled with images of device types of the devices installed to this rack.

Observed Behavior

Blueish tint instead of images because the URLs for images are now prefixed with the netbox domain (like https://your.netbox.domainhttps://static.domain/images/front.png which is obviously unavailable)
Seems like this is caused by https://github.com/netbox-community/netbox/issues/9503. Rack views were fine on 3.1 which we had before the update.
Device type views (https://your.netbox.domain/dcim/device-types/$id/) show images just fine on 3.2.5, links are not broken.

Originally created by @AndMrzv on GitHub (Jun 30, 2022). ### NetBox version v3.2.5 ### Python version 3.9 ### Steps to Reproduce 1. Have device types with front and rear device pictures uploaded and hosted on a separate domain (we use it for static content, let's say https://static.domain/images/front.png) 2. Have devices installed in a rack 3. View the rack with https://your.netbox.domain/dcim/racks/$some_id/ ### Expected Behavior Front and Rear rack view filled with images of device types of the devices installed to this rack. ### Observed Behavior Blueish tint instead of images because the URLs for images are now prefixed with the netbox domain (like https://your.netbox.domainhttps://static.domain/images/front.png which is obviously unavailable) Seems like this is caused by https://github.com/netbox-community/netbox/issues/9503. Rack views were fine on 3.1 which we had before the update. Device type views (https://your.netbox.domain/dcim/device-types/$id/) show images just fine on 3.2.5, links are not broken.
adam added the type: bugstatus: accepted labels 2025-12-29 19:43:06 +01:00
adam closed this issue 2025-12-29 19:43:06 +01:00
Author
Owner

@jeremystretch commented on GitHub (Jul 7, 2022):

Have device types with front and rear device pictures uploaded and hosted on a separate domain

Please elaborate on exactly how you have NetBox configured, so that someone else can attempt to replicate the reported problem.

@jeremystretch commented on GitHub (Jul 7, 2022): > Have device types with front and rear device pictures uploaded and hosted on a separate domain Please elaborate on exactly how you have NetBox configured, so that someone else can attempt to replicate the reported problem.
Author
Owner

@AndMrzv commented on GitHub (Jul 7, 2022):

Yes, sorry. Static content storage is configured via
STORAGE_BACKEND
STORAGE_CONFIG
configuration parameters as described in https://docs.netbox.dev/en/stable/configuration/optional-settings/#storage_backend
The "https://static.domain" is stored as the AWS_S3_ENDPOINT_URL.

@AndMrzv commented on GitHub (Jul 7, 2022): Yes, sorry. Static content storage is configured via STORAGE_BACKEND STORAGE_CONFIG configuration parameters as described in https://docs.netbox.dev/en/stable/configuration/optional-settings/#storage_backend The "https://static.domain" is stored as the `AWS_S3_ENDPOINT_URL`.
Author
Owner

@jeremystretch commented on GitHub (Jul 19, 2022):

Thanks for taking this one @smuth4!

@jeremystretch commented on GitHub (Jul 19, 2022): Thanks for taking this one @smuth4!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/netbox#6611