PDF do not show up in browser on web interface after update to 21.02

Nextcloud version _21.0.2
Operating system and version: Ubuntu 20.04
Apache 2.4.25
PHP version 7.4

On Web Interface, when clicking on a PDF document, it will not show up, instead I get the following error:

PDF.js v2.5.207 (build: 0974d6052)
Message: Missing PDF “https://w392cloud.homeip.net/remote.php/dav/files/Thomas/Documents/_Doku%20Ablage/Passport%20ID/Schiff.pdf”.

However, I can download the document without problems.

I tested chrome Version 91.0.4472.77, Firefox 88.0.1 as well as Chrome and Safari on on iPad

Is this unique on my Installation?

Thanks for Help
Thomas Jakober

No, it isn’t…

No, you’re not the only one who couldn’t use the search function of this forum to find related answers. :wink:

If this is the case you should consider it as a bug. In office environments there are everywhere used spaces in folder- and file names as well as accented letters in most non english countries.

Did you read the linked post or are you just too lazy?

And what does this have to do with the topic?

its already reported on github and it exists an worarround:

edit apps/files_pdfviewer/js/files_pdfviewer-main.js and change

!==i[a]&&(c+="/"+encodeURIComponent(i[a]));return t&&(c=i[0]+"//"+i[2]+c),c}}

to

!==i[a]&&(c+="/"+i[a]);return t&&(c=i[0]+"//"+i[2]+c),c}}

1 Like

Thanks alot for pointing me into the right direction.

If you don’t want to help other people to solve their problems efficiently you should not respond to support questions. It’s a waste of your time and my time.

Thank you for advice.
To return the favor, you should not get into Nextcloud setup if you are too lazy to read answers longer than one sentence…