Open
Description
Deployment Type
Self-hosted
NetBox Version
v4.3.1
Python Version
3.12
Steps to Reproduce
- Configure Netbox to use S3 object storage for static files
- Access the Netbox instance, trying to fetch static files to serve the application
Expected Behavior
Netbox should create requests to the S3 storage backend for fetching static files using valid query parameters.
Observed Behavior
Netbox attaches a query parameter with the application version using the wrong delimiter. This is the request:
https://s3.netbox.tld/files/setmode.js?AWSAccessKeyId=key&Signature=123&Expires=1748635659?v=4.3.1
See how it attaches ?v=4.3.1
at the end. When in fact it need to be &v=4.3.1
However this only happens when I try to load Netbox application. When I am on the "Static Media Failure" site, it provides a link that it cannot load the file "setmode.js". If I click there, the link works fine:
https://s3.netbox.tld/files/setmode.js?AWSAccessKeyId=key&Signature=123&Expires=1748635660