401 Unauthorized when trying to download files containing `[` or `]`
Describe the bug
Files containing [ or ] in their name are not downloadable. Instead, a basic auth dialog opens. Sometimes you directly get a 401 Unauthorized.
Steps to reproduce
- Create a plain text file containing a
[or], for example[Test].txt - Use the context menu to try to download the file
- Suddenly, a basic auth dialog opens, and the file won't download
401 Unauthorized
Expected behavior
Being able to download the file
Setup
Currently, I am using opencloud 3.2.1 via the nixos module.
I cannot reproduce this in my Docker + Traefik configuration. Maybe some load balancer issue?
Here is what I see in journalctl:
opencloud[16950]: {"level":"error","service":"proxy","error":"signature mismatch: expected 711d1e967ac9b35b2f515a2c3d7f1d2d7d3b67a17be127fee76c9395450647b2 != actual fb620274624d784bd62fe60e6e8717cb3236c4f7db3bff3bf054320f6a50f2b5","authenticator":"signed_url","path":"/remote.php/dav/spaces/3b8cca8f-27d9-47bf-86e0-4ed89d4c5169$d1fcf385-1ebc-41fc-81ce-2fce75454ec7/[.txt","url":"/remote.php/dav/spaces/3b8cca8f-27d9-47bf-86e0-4ed89d4c5169$d1fcf385-1ebc-41fc-81ce-2fce75454ec7/[.txt?OC-Credential=admin&OC-Date=2025-08-17T21%3A53%3A11.326Z&OC-Expires=1200&OC-Verb=GET&OC-Algo=PBKDF2%2F10000-SHA512&OC-Signature=fb620274624d784bd62fe60e6e8717cb3236c4f7db3bff3bf054320f6a50f2b5","time":"2025-08-17T23:53:12+02:00","message":"Could not get user by claim"}
Maybe some load balancer issue?
How could I check that theory? Anything else I can do to help?
I do have the same issue with a path containing ( / ).
I'm using apache2 as a proxy.
HTTP-Laden ist mit dem Status 401 fehlgeschlagen. Laden der Medienressource https://<mydomain>/remote.php/dav/spaces/cf39740c-bc30-4c29-97be-c8c2397d6e10$2cec7a0e-dde8-4985-b850-b84dc8f4633d/Music/flac/Lorna%20Shore%20-%20I%20Feel%20The%20Everblack%20Festering%20Within%20Me%20%2824-bit%20HD%20audio%29/Lorna%20Shore%20-%20I%20Feel%20The%20Everblack%20Festering%20Within%20Me%20%2824-bit%20HD%20audio%29%20-%2005%20Glenwood.flac?oc-jwt-sig=... fehlgeschlagen.
@AlexAndBear more encoded characters
Please let me know if / how I can provide more useful information!