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
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Steps to reproduce
Take into account that this nextcloud instance is running inside kubernetes (official nextcloud image).
The External Storage is an internal system drive that is also sharing data per NFS (NFS is not yet active/configured though).
Have external storage configured (Linux, ext4fs) under /export/Public
Upload file with space in the filename (tested with pdf and jpg file)
Click on the file so the embedded views in the browser displayes it (Tested with Google chrome, Chromium and Firefox)
Expected behaviour
Tell us what should happen
The file should be displayed
Actual behaviour
Tell us what happens instead
PDF Viewer shows an error message:
PDF.js v2.4.456 (build: 228a591c)
Message: Missing PDF "https://nc-intra.shdw.fr/remote.php/dav/files/admin/Public/Helm%2520cheat%2520sheet%2520by%2520PhoenixNAP.pdf".
Note that you can download the file through the download link and view it fine afterwards.
Server configuration
Operating system:
Ubuntu Server 20.04.2 LTS
Web server:
nginx-1.19.10-r1
Database:
mariadb-server-10.5
PHP version:
PHP 7.4.19
Nextcloud version: (see Nextcloud admin page)
20.0.10.1
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
Embedded in nextlcloud-image: nextcloud:20-fpm-alpine
Are you using external storage, if yes which one: local/smb/sftp/...
Local
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
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.
{"reqId":"sJQh78Eb6ovTJ6VI8nzC","level":3,"time":"2021-05-25T08:11:40+00:00","remoteAddr":"10.42.0.32","user":"admin","app":"PHP","method":"DELETE","url":"/remote.php/dav/files/admin/Public/Helm%20cheat%20sheet%20by%20PhoenixNAP.pdf","message":{"Exception":"Error","Message":"rename(//export/Public/Helm cheat sheet by PhoenixNAP.pdf,//var/www/html/data/admin/files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300): Operation not permitted at /var/www/html/lib/private/Files/Storage/Local.php#339","Code":0,"Trace":[{"function":"onError","class":"OC\\Log\\ErrorHandler","type":"::","args":[2,"rename(//export/Public/Helm cheat sheet by PhoenixNAP.pdf,//var/www/html/data/admin/files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300): Operation not permitted","/var/www/html/lib/private/Files/Storage/Local.php",339,{"path1":"/export/Public/Helm cheat sheet by PhoenixNAP.pdf","path2":"/var/www/html/data/admin/files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300","srcParent":"/export/Public","dstParent":"/var/www/html/data/admin/files_trashbin/files"}]},{"file":"/var/www/html/lib/private/Files/Storage/Local.php","line":339,"function":"rename","args":["//export/Public/Helm cheat sheet by PhoenixNAP.pdf","//var/www/html/data/admin/files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300"]},{"file":"/var/www/html/lib/private/Files/Storage/Local.php","line":548,"function":"rename","class":"OC\\Files\\Storage\\Local","type":"->","args":["/export/Public/Helm cheat sheet by PhoenixNAP.pdf","/var/www/html/data/admin/files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300"]},{"file":"/var/www/html/apps/files_trashbin/lib/Storage.php","line":240,"function":"moveFromStorage","class":"OC\\Files\\Storage\\Local","type":"->","args":[{"cache":{"__class__":"OC\\Files\\Cache\\Cache"},"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":{"__class__":"OC\\Files\\Cache\\Propagator"},"updater":{"__class__":"OC\\Files\\Cache\\Updater"},"__class__":"OCA\\Files_Trashbin\\Storage"},"Helm cheat sheet by PhoenixNAP.pdf","files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300"]},{"file":"/var/www/html/apps/files_trashbin/lib/Trashbin.php","line":322,"function":"moveFromStorage","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":[{"cache":{"__class__":"OC\\Files\\Cache\\Cache"},"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":{"__class__":"OC\\Files\\Cache\\Propagator"},"updater":{"__class__":"OC\\Files\\Cache\\Updater"},"__class__":"OCA\\Files_Trashbin\\Storage"},"Helm cheat sheet by PhoenixNAP.pdf","files_trashbin/files/Helm cheat sheet by PhoenixNAP.pdf.d1621930300"]},{"file":"/var/www/html/apps/files_trashbin/lib/Trash/LegacyTrashBackend.php","line":108,"function":"move2trash","class":"OCA\\Files_Trashbin\\Trashbin","type":"::","args":["Public/Helm cheat sheet by PhoenixNAP.pdf"]},{"file":"/var/www/html/apps/files_trashbin/lib/Trash/TrashManager.php","line":103,"function":"moveToTrash","class":"OCA\\Files_Trashbin\\Trash\\LegacyTrashBackend","type":"->","args":[{"cache":{"__class__":"OC\\Files\\Cache\\Cache"},"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":{"__class__":"OC\\Files\\Cache\\Propagator"},"updater":{"__class__":"OC\\Files\\Cache\\Updater"},"__class__":"OCA\\Files_Trashbin\\Storage"},"Helm cheat sheet by PhoenixNAP.pdf"]},{"file":"/var/www/html/apps/files_trashbin/lib/Storage.php","line":203,"function":"moveToTrash","class":"OCA\\Files_Trashbin\\Trash\\TrashManager","type":"->","args":[{"cache":{"__class__":"OC\\Files\\Cache\\Cache"},"scanner":{"__class__":"OC\\Files\\Cache\\Scanner"},"watcher":null,"propagator":{"__class__":"OC\\Files\\Cache\\Propagator"},"updater":{"__class__":"OC\\Files\\Cache\\Updater"},"__class__":"OCA\\Files_Trashbin\\Storage"},"Helm cheat sheet by PhoenixNAP.pdf"]},{"file":"/var/www/html/apps/files_trashbin/lib/Storage.php","line":103,"function":"doDelete","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":["Helm cheat sheet by PhoenixNAP.pdf","unlink"]},{"file":"/var/www/html/lib/private/Files/View.php","line":1167,"function":"unlink","class":"OCA\\Files_Trashbin\\Storage","type":"->","args":["Helm cheat sheet by PhoenixNAP.pdf"]},{"file":"/var/www/html/lib/private/Files/View.php","line":724,"function":"basicOperation","class":"OC\\Files\\View","type":"->","args":["unlink","/Public/Helm cheat sheet by PhoenixNAP.pdf",["delete"]]},{"file":"/var/www/html/apps/dav/lib/Connector/Sabre/File.php","line":466,"function":"unlink","class":"OC\\Files\\View","type":"->","args":["/Public/Helm cheat sheet by PhoenixNAP.pdf"]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Tree.php","line":183,"function":"delete","class":"OCA\\DAV\\Connector\\Sabre\\File","type":"->","args":[]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/CorePlugin.php","line":295,"function":"delete","class":"Sabre\\DAV\\Tree","type":"->","args":["files/admin/Public/Helm cheat sheet by PhoenixNAP.pdf"]},{"file":"/var/www/html/3rdparty/sabre/event/lib/WildcardEmitterTrait.php","line":89,"function":"httpDelete","class":"Sabre\\DAV\\CorePlugin","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":474,"function":"emit","class":"Sabre\\DAV\\Server","type":"->","args":["method:DELETE",[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":251,"function":"invokeMethod","class":"Sabre\\DAV\\Server","type":"->","args":[{"__class__":"Sabre\\HTTP\\Request"},{"__class__":"Sabre\\HTTP\\Response"}]},{"file":"/var/www/html/3rdparty/sabre/dav/lib/DAV/Server.php","line":319,"function":"start","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/lib/Server.php","line":332,"function":"exec","class":"Sabre\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/apps/dav/appinfo/v2/remote.php","line":35,"function":"exec","class":"OCA\\DAV\\Server","type":"->","args":[]},{"file":"/var/www/html/remote.php","line":167,"args":["/var/www/html/apps/dav/appinfo/v2/remote.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Log/ErrorHandler.php","Line":91,"CustomMessage":"--"},"userAgent":"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36","version":"20.0.10.1","id":"60acb1cc3104d"}
How to use GitHub
Steps to reproduce
Take into account that this nextcloud instance is running inside kubernetes (official nextcloud image).
The External Storage is an internal system drive that is also sharing data per NFS (NFS is not yet active/configured though).
Expected behaviour
Tell us what should happen
The file should be displayed
Actual behaviour
Tell us what happens instead
PDF Viewer shows an error message:
Note that you can download the file through the download link and view it fine afterwards.
Server configuration
Operating system:
Ubuntu Server 20.04.2 LTS
Web server:
nginx-1.19.10-r1
Database:
mariadb-server-10.5
PHP version:
PHP 7.4.19
Nextcloud version: (see Nextcloud admin page)
20.0.10.1
Updated from an older Nextcloud/ownCloud or fresh install:
fresh install
Where did you install Nextcloud from:
Embedded in nextlcloud-image: nextcloud:20-fpm-alpine
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Local
Are you using encryption: yes/no
No
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
No
LDAP configuration (delete this part if not used)
LDAP config
Client configuration
Browser:
google-chrome-stable 90.0.4430.212-1
chromium-browser 87.0.4280.88-0ubuntu0.20.04.1.1~vaapi
firefox 88.0.1+build1-0ubuntu0.20.04.2
Operating system:
KDE neon User Edition 5.21
Logs
The logs are from the nginx-frontend and app-server (php-fpm) of the following operations:
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log
Browser log
Browser log
``` Error message noticed: 1 directive Source code Directive Status /apps/text/js/files.js:6 script-src blockedInsert your browser log here, this could for example include:
a) The javascript console log
fetch_stream.js:119 GET https://nc-intra.shdw.fr/remote.php/dav/files/admin/Public/Helm%2520cheat%2520sheet%2520by%2520PhoenixNAP.pdf 404
PDFFetchStreamReader @ fetch_stream.js:119
getFullReader @ fetch_stream.js:69
(anonymous) @ api.js:2030
(anonymous) @ message_handler.js:371
_createStreamSink @ message_handler.js:370
MessageHandler._onComObjOnMessage @ message_handler.js:144
l10n.js:825 #missing_file_error is undefined.
l10n.js:825 #error_version_info is undefined.
l10n.js:825 #error_message is undefined.
app.js:817 Uncaught (in promise) Error: Missing PDF file.
at app.js:817
(anonymous) @ app.js:817
b) The network log
![image](https://user-images.githubusercontent.com/12997932/119464443-05a3a000-bd43-11eb-81e9-f4a830f524e1.png)
The text was updated successfully, but these errors were encountered: