You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Access to (and so streaming of) files (vfs urls) ending with question mark in the filename produces 404 not found error page. (? is actually after the name part, before the extension, xxxxx?.flac)
Expected Behavior
Chorus should provide working download links to any file, whatever unicode character is used (if supported by underlying filesystem) wherever it is in the filename.
Actual Behavior
Download (and streaming) of files not ending with ? is working.
To Reproduce
Search for '?' in the chorus search box
Elect any Songs ending with ? (beware, what is important is filename, which may differ from titlename displayed in Chorus, if filename does not end with xxx?.flac or xxx?.mp3 and had been stripped from its ?, it would actually work)
[{"id":542,"jsonrpc":"2.0","result":{"files":[{"file":"/media/Home/Bat/Musique/Arctic Monkeys/AM/01 Do I Wanna Know?.flac","filetype":"file","label":"01 Do I Wanna Know?.flac","type":"unknown"},{"file":"/media/Home/Bat/Musique/Arctic Monkeys/AM/02 R U Mine?.flac","filetype":"file","label":"02 R U Mine?.flac","type":"unknown"},{"file":"/media/Home/Bat/Musique/Arctic Monkeys/AM/03 One for the Road.flac","filetype":"file","label":"03 One for the Road.flac","type":"unknown"},…],"limits":{"end":12,"start":0,"total":12}}}]
Files.PrepareDownload[{"jsonrpc":"2.0","method":"Files.PrepareDownload","params":["/media/Home/Bat/Musique/Arctic Monkeys/AM/01 Do I Wanna Know?.flac"],"id":600}]
Bug report
Describe the bug
Access to (and so streaming of) files (vfs urls) ending with question mark in the filename produces
404 not found
error page. (?
is actually after the name part, before the extension,xxxxx?.flac
)Expected Behavior
Chorus should provide working download links to any file, whatever unicode character is used (if supported by underlying filesystem) wherever it is in the filename.
Actual Behavior
Download (and streaming) of files not ending with
?
is working.To Reproduce
Debuglog
Files.GetDirectory
[{"jsonrpc":"2.0","method":"Files.GetDirectory","params":["/media/Home/Bat/Musique/Arctic Monkeys/AM/"],"id":542}]
Files.PrepareDownload
[{"jsonrpc":"2.0","method":"Files.PrepareDownload","params":["/media/Home/Bat/Musique/Arctic Monkeys/AM/01 Do I Wanna Know?.flac"],"id":600}]
GET http://192.168.2.2/vfs/%2fmedia%2fHome%2fBat%2fMusique%2fArctic%20Monkeys%2fAM%2f01%20Do%20I%20Wanna%20Know%3f.flac
Remark
GET http://192.168.2.2/vfs/%2fmedia%2fHome%2fBat%2fMusique%2fArctic%20Monkeys%2fAM%2f03%20One%20for%20the%20Road.flac
Your Environment
The text was updated successfully, but these errors were encountered: