nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.46k stars 4.08k forks source link

external storage and viewing file in embedded browser viewer fails with spaces in file-name #27093

Closed HaleyACS closed 3 years ago

HaleyACS commented 3 years ago

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).

  1. Have external storage configured (Linux, ext4fs) under /export/Public
  2. Upload file with space in the filename (tested with pdf and jpg file)
  3. 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

Signing status:

Signing status ``` No errors have been found. ```

List of activated apps:

App list ``` Enabled: - accessibility: 1.6.0 - activity: 2.13.4 - bruteforcesettings: 2.1.0 - cloud_federation_api: 1.3.0 - comments: 1.10.0 - contactsinteraction: 1.1.0 - dashboard: 7.0.0 - dav: 1.16.2 - federatedfilesharing: 1.10.2 - federation: 1.10.1 - files: 1.15.0 - files_external: 1.11.1 - files_pdfviewer: 2.0.1 - files_rightclick: 0.17.0 - files_sharing: 1.12.2 - files_trashbin: 1.10.1 - files_versions: 1.13.0 - files_videoplayer: 1.9.0 - firstrunwizard: 2.9.0 - logreader: 2.5.0 - lookup_server_connector: 1.8.0 - nextcloud_announcements: 1.9.0 - notifications: 2.8.0 - oauth2: 1.8.0 - password_policy: 1.10.1 - photos: 1.2.3 - privacy: 1.4.0 - provisioning_api: 1.10.0 - recommendations: 0.8.0 - serverinfo: 1.10.0 - settings: 1.2.0 - sharebymail: 1.10.0 - support: 1.3.0 - survey_client: 1.8.0 - systemtags: 1.10.0 - text: 3.1.0 - theming: 1.11.0 - twofactor_backupcodes: 1.9.0 - updatenotification: 1.10.0 - user_status: 1.0.1 - viewer: 1.4.0 - weather_status: 1.0.0 - workflowengine: 2.2.0 Disabled: - admin_audit - encryption - user_ldap ```

Nextcloud configuration:

Config report ``` { "system": { "memcache.local": "\\OC\\Memcache\\APCu", "apps_paths": [ { "path": "\/var\/www\/html\/apps", "url": "\/apps", "writable": false }, { "path": "\/var\/www\/html\/custom_apps", "url": "\/custom_apps", "writable": true } ], "memcache.distributed": "\\OC\\Memcache\\Redis", "memcache.locking": "\\OC\\Memcache\\Redis", "redis": { "host": "***REMOVED SENSITIVE VALUE***", "password": "***REMOVED SENSITIVE VALUE***", "port": 6379 }, "instanceid": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "nc-intra.shdw.fr" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "20.0.10.1", "overwrite.cli.url": "https:\/\/nc-intra.shdw.fr", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_smtpmode": "smtp", "mail_sendmailmode": "smtp", "mail_domain": "***REMOVED SENSITIVE VALUE***", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "25" }, "apps": { "accessibility": { "enabled": "yes", "installed_version": "1.6.0", "types": "" }, "activity": { "enabled": "yes", "installed_version": "2.13.4", "types": "filesystem" }, "backgroundjob": { "lastjob": "147" }, "bruteForce": { "whitelist_1": "10.0.2.0\/23" }, "bruteforcesettings": { "enabled": "yes", "installed_version": "2.1.0", "types": "" }, "cloud_federation_api": { "enabled": "yes", "installed_version": "1.3.0", "types": "filesystem" }, "comments": { "enabled": "yes", "installed_version": "1.10.0", "types": "logging" }, "contactsinteraction": { "enabled": "yes", "installed_version": "1.1.0", "types": "dav" }, "core": { "backgroundjobs_mode": "cron", "installed.bundles": "[\"CoreBundle\"]", "installedat": "1621862460.2326", "lastcron": "1621929900", "lastupdateResult": "{\"version\":\"21.0.2.1\",\"versionstring\":\"Nextcloud 21.0.2\",\"url\":\"https:\\\/\\\/download.nextcloud.com\\\/server\\\/releases\\\/nextcloud-21.0.2.zip\",\"web\":\"https:\\\/\\\/docs.nextcloud.com\\\/server\\\/21\\\/admin_manual\\\/maintenance\\\/upgrade.html\",\"changes\":\"https:\\\/\\\/updates.nextcloud.com\\\/changelog_server\\\/?version=21.0.2\",\"autoupdater\":\"1\",\"eol\":\"0\"}", "lastupdatedat": "1621866628", "oc.integritycheck.checker": "[]", "public_files": "files_sharing\/public.php", "public_webdav": "dav\/appinfo\/v1\/publicwebdav.php", "theming.variables": "923ae025f0db65df3460ee76c8e9536d", "vendor": "nextcloud" }, "dashboard": { "enabled": "yes", "installed_version": "7.0.0", "types": "" }, "dav": { "enabled": "yes", "installed_version": "1.16.2", "types": "filesystem" }, "federatedfilesharing": { "enabled": "yes", "installed_version": "1.10.2", "types": "" }, "federation": { "enabled": "yes", "installed_version": "1.10.1", "types": "authentication" }, "files": { "cronjob_scan_files": "500", "enabled": "yes", "installed_version": "1.15.0", "types": "filesystem" }, "files_external": { "enabled": "yes", "installed_version": "1.11.1", "types": "filesystem" }, "files_pdfviewer": { "enabled": "yes", "installed_version": "2.0.1", "types": "" }, "files_rightclick": { "enabled": "yes", "installed_version": "0.17.0", "types": "" }, "files_sharing": { "enabled": "yes", "installed_version": "1.12.2", "types": "filesystem" }, "files_trashbin": { "enabled": "yes", "installed_version": "1.10.1", "types": "filesystem,dav" }, "files_versions": { "enabled": "yes", "installed_version": "1.13.0", "types": "filesystem,dav" }, "files_videoplayer": { "enabled": "yes", "installed_version": "1.9.0", "types": "" }, "firstrunwizard": { "enabled": "yes", "installed_version": "2.9.0", "types": "logging" }, "logreader": { "enabled": "yes", "installed_version": "2.5.0", "types": "" }, "lookup_server_connector": { "enabled": "yes", "installed_version": "1.8.0", "types": "authentication" }, "nextcloud_announcements": { "enabled": "yes", "installed_version": "1.9.0", "pub_date": "Thu, 24 Oct 2019 00:00:00 +0200", "types": "logging" }, "notifications": { "enabled": "yes", "installed_version": "2.8.0", "types": "logging" }, "oauth2": { "enabled": "yes", "installed_version": "1.8.0", "types": "authentication" }, "password_policy": { "enabled": "yes", "installed_version": "1.10.1", "types": "authentication" }, "photos": { "enabled": "yes", "installed_version": "1.2.3", "types": "" }, "privacy": { "enabled": "yes", "installed_version": "1.4.0", "types": "" }, "provisioning_api": { "enabled": "yes", "installed_version": "1.10.0", "types": "prevent_group_restriction" }, "recommendations": { "enabled": "yes", "installed_version": "0.8.0", "types": "" }, "serverinfo": { "cached_count_filecache": "122508", "cached_count_storages": "12", "enabled": "yes", "installed_version": "1.10.0", "types": "" }, "settings": { "enabled": "yes", "installed_version": "1.2.0", "types": "" }, "sharebymail": { "enabled": "yes", "installed_version": "1.10.0", "types": "filesystem" }, "support": { "enabled": "yes", "installed_version": "1.3.0", "types": "session" }, "survey_client": { "enabled": "yes", "installed_version": "1.8.0", "types": "" }, "systemtags": { "enabled": "yes", "installed_version": "1.10.0", "types": "logging" }, "text": { "enabled": "yes", "installed_version": "3.1.0", "types": "dav" }, "theming": { "cachebuster": "5", "enabled": "yes", "imprintUrl": "***REMOVED SENSITIVE VALUE***", "installed_version": "1.11.0", "name": "SolLan Internal CLoud", "privacyUrl": "***REMOVED SENSITIVE VALUE***", "slogan": "***REMOVED SENSITIVE VALUE***", "types": "logging", "url": "***REMOVED SENSITIVE VALUE***" }, "twofactor_backupcodes": { "enabled": "yes", "installed_version": "1.9.0", "types": "" }, "updatenotification": { "enabled": "yes", "installed_version": "1.10.0", "types": "" }, "user_status": { "enabled": "yes", "installed_version": "1.0.1", "types": "" }, "viewer": { "enabled": "yes", "installed_version": "1.4.0", "types": "" }, "weather_status": { "enabled": "yes", "installed_version": "1.0.0", "types": "" }, "workflowengine": { "enabled": "yes", "installed_version": "2.2.0", "types": "filesystem" } } } ```

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. ```

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:

  1. upload file with space in its name
  2. Download the file as regular file (works)
  3. open file to be viewed in embedded browser viewer

Web server error log

Web server error log ``` NGINX Part: 10.42.0.116 - 25/May/2021:08:11:56 +0000 "PUT /remote.php" 201 10.42.0.116 - 25/May/2021:08:11:56 +0000 "GET /ocs/v2.php" 304 10.42.0.116 - 25/May/2021:08:11:56 +0000 "PROPFIND /remote.php" 207 10.42.0.116 - 25/May/2021:08:11:57 +0000 "GET /index.php" 200 10.42.0.116 - 25/May/2021:08:11:58 +0000 "GET /ocs/v2.php" 304 10.42.0.116 - 25/May/2021:08:12:06 +0000 "GET /remote.php" 200 10.42.0.116 - 25/May/2021:08:12:09 +0000 "PROPFIND /remote.php" 207 10.42.0.116 - 25/May/2021:08:12:10 +0000 "GET /index.php" 200 10.42.0.116 - 25/May/2021:08:12:10 +0000 "GET /index.php" 302 10.42.0.116 - 25/May/2021:08:12:10 +0000 "GET /index.php" 200 10.42.0.116 - 25/May/2021:08:12:10 +0000 "GET /remote.php" 404 10.42.0.116 - 25/May/2021:08:12:10 +0000 "GET /index.php" 200 PHP FPM Part: 10.42.0.32 - - [25/May/2021:08:11:56 +0000] "PUT /remote.php/webdav/Public/Helm%20cheat%20sheet%20by%20PhoenixNAP.pdf HTTP/1.1" 201 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:11:56 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:11:56 +0000] "PROPFIND /remote.php/dav/files/admin/Public/Helm%20cheat%20sheet%20by%20PhoenixNAP.pdf HTTP/1.1" 207 617 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:11:57 +0000] "GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2FPublic HTTP/1.1" 200 219 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:11:58 +0000] "GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/1.1" 304 0 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:06 +0000] "GET /remote.php/webdav/Public/Helm%20cheat%20sheet%20by%20PhoenixNAP.pdf?downloadStartSecret=966g2jhru86 HTTP/1.1" 200 63026 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:09 +0000] "PROPFIND /remote.php/dav/files/admin/Public/Helm%20cheat%20sheet%20by%20PhoenixNAP.pdf HTTP/1.1" 207 604 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:10 +0000] "GET /apps/files_pdfviewer/?file=https%3A%2F%2Fnc-intra.shdw.fr%2Fremote.php%2Fdav%2Ffiles%2Fadmin%2FPublic%2FHelm%252520cheat%252520sheet%252520by%252520PhoenixNAP.pdf HTTP/1.1" 200 4450 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:10 +0000] "GET /apps/files_pdfviewer/js/pdfjs/web/locale/locale.properties?v=2.0.1 HTTP/1.1" 302 5 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:10 +0000] "GET /apps/dashboard/ HTTP/1.1" 200 8681 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:10 +0000] "GET /remote.php/dav/files/admin/Public/Helm%2520cheat%2520sheet%2520by%2520PhoenixNAP.pdf HTTP/1.1" 404 4897 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" 10.42.0.32 - - [25/May/2021:08:12:10 +0000] "GET /index.php/apps/files/ajax/getstoragestats.php HTTP/1.1" 200 209 "-" "Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/87.0.4280.88 Safari/537.36" "10.0.2.3" ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` {"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"} ```

Browser log

Browser log ``` Error message noticed: 1 directive Source code Directive Status /apps/text/js/files.js:6 script-src blocked Insert 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) ```
kesselb commented 3 years ago

https://github.com/nextcloud/files_pdfviewer/issues/381