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
Describe the bug
When attempting to open a file of which the name contains a space (e.g. "cool beans.pdf"), the space will be encoded incorrectly and the file declared as missing.
This seems to be caused by a PDF.js module which is probably used in the PDF previewer
To Reproduce
Steps to reproduce the behavior:
Upload a file (e.g. PDF) with a name containing a space (e.g. "cool beans.pdf")
Attempt to open the file to receive a preview in nextcloud
Be greeted with an error that the file is missing
Expected behavior
The file's URL is encoded only once.
Example: cool beans.pdf -> https://my-cloud.com/remote.php/dav/files/user/cool%20beans.pdf
Actual behavior
The file's URL is encoded twice.
Example: cool beans.pdf -> https://my-cloud.com/remote.php/dav/files/user/cool%2520beans.pdf
Screenshots
Error message
PDF.js v2.5.207 (build: 0974d6052)
Message: Missing PDF "https://cloud-dev.emergencity.de/remote.php/dav/files/jeuler/Inter%2520test.pdf".
Desktop (please complete the following information)
OS: ArchLinux
Browser: Firefox
Version: 88.0.1
The text was updated successfully, but these errors were encountered:
Describe the bug
When attempting to open a file of which the name contains a space (e.g. "cool beans.pdf"), the space will be encoded incorrectly and the file declared as missing.
This seems to be caused by a
PDF.js
module which is probably used in the PDF previewerTo Reproduce
Steps to reproduce the behavior:
Expected behavior
The file's URL is encoded only once.
Example:
cool beans.pdf
->https://my-cloud.com/remote.php/dav/files/user/cool%20beans.pdf
Actual behavior
The file's URL is encoded twice.
Example:
cool beans.pdf
->https://my-cloud.com/remote.php/dav/files/user/cool%2520beans.pdf
Screenshots
![image](https://user-images.githubusercontent.com/25646100/119500116-bcb21280-bd67-11eb-9c6c-07f629f1d351.png)
Error message
Desktop (please complete the following information)
The text was updated successfully, but these errors were encountered: