Steps to replicate the issue (include links if applicable):
- Create a new container (flag it private and or public) and upload a file on your project in horizon
- Logout/start a different session/browser and try to navigate to that file
- private file example: https://horizon.wikimedia.org/api/swift/containers/dcarotest1/object/test.yaml
- public file example: https://horizon.wikimedia.org/api/swift/containers/dcarotest2/object/test.yaml
What happens?:
You get a 500 error:
What should have happened instead?:
You should get a 401 error and get redirected to the login page (and once logged in, redirected back to the file).
Software version (on Special:Version page; skip for WMF-hosted wikis like Wikipedia):
Other information (browser name/version, screenshots, etc.):
FIX
Use the url directly to the object storage, like:
https://object.eqiad1.wikimediacloud.org/swift/v1/AUTH_toolsbeta/dcarotest2/test.yaml
And (this will need you to pass the authentication with the request, ex using X-Auth-Token: <app-credential>):
https://object.eqiad1.wikimediacloud.org/swift/v1/AUTH_toolsbeta/dcarotest1/test.yaml