server icon indicating copy to clipboard operation
server copied to clipboard

Can't view pdf file with character `#`

Open shunlir opened this issue 6 years ago • 3 comments

Steps to reproduce

  1. Upload a pdf file with it's name containing character #
  2. Click the uploaded pdf file in nextcloud Web UI to view it

Expected behaviour

Should be able to view the content of the pdf file

Actual behaviour

The message ' Missing PDF file. ' in a red box is showing, with following details:

PDF.js v2.4.456 (build: 228a591c) Message: Missing PDF "http:///remote.php/dav/files/admin/Documents/CLR%20via%20C#,%20Fourth%20Editionpdf".

Server configuration

docker image nextcloud (id 5ab9b95de2ca) + mariadb Operating system: Debian GNU/Linux 10 (buster) Web server: apache2 2.4.38-3+deb10u4 Database: mariadb PHP version: Not sure Nextcloud version: (see Nextcloud admin page) Nextcloud 20.0.0 Updated from an older Nextcloud/ownCloud or fresh install: fresh install Where did you install Nextcloud from: Signing status:

Signing status
Login as admin user into your Nextcloud and access 
http://example.com/index.php/settings/integrity/failed 
paste the results here.

List of activated apps:

App list
If you have access to your command line run e.g.:
sudo -u www-data php occ app:list
from within your Nextcloud installation folder

Nextcloud configuration:

Config report
If you have access to your command line run e.g.:
sudo -u www-data php occ config:list system
from within your Nextcloud installation folder

or 

Insert your config.php content here. 
Make sure to remove all sensitive content such as passwords. (e.g. database password, passwordsalt, secret, smtp password, …)

Are you using external storage, if yes which one: local/smb/sftp/...

Are you using encryption: yes/no

Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...

LDAP configuration (delete this part if not used)

LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder

Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';


Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.

Client configuration

Browser:

Operating system:

Logs

Web server error log

Web server error log
nextcloud     | 192.168.0.14 - - [18/Oct/2020:09:39:36 +0800] "GET /apps/files_pdfviewer/js/pdfjs/build/pdf.worker.js?v=2.0.1 HTTP/1.1" 200 57344 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0"
nextcloud     | 192.168.0.14 - - [18/Oct/2020:09:39:36 +0800] "GET /remote.php/dav/files/admin/Documents/CLR%20via%20C HTTP/1.1" 404 12514 "-" "Mozilla/5.0 (X11; Linux x86_64; rv:80.0) Gecko/20100101 Firefox/80.0"

Nextcloud log (data/nextcloud.log)

Nextcloud log
Insert your Nextcloud log here

Browser log

Browser log
Insert your browser log here, this could for example include:

a) The javascript console log
b) The network log
c) ...

shunlir avatar Oct 18 '20 01:10 shunlir

May related to https://github.com/nextcloud/server/issues/22912

kesselb avatar Oct 18 '20 07:10 kesselb

I have the same issue. Can't view PDF's with a "#" character in the file name. Using NC 20 (docker image)

ste1n avatar Oct 23 '20 07:10 ste1n

Duplicate of https://github.com/nextcloud/viewer/issues/415

skjnldsv avatar Nov 07 '20 22:11 skjnldsv