nextcloud / server

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

pdf.js can't open pdf with space-character or %-character - url encoding error #27597

Closed RangersMS closed 3 years ago

RangersMS commented 3 years ago

How to use GitHub

Steps to reproduce

  1. Open any pdf-file with a space-character or %-character in it's name like 'Nextcloud Manual.pdf'

Expected behaviour

pdf.js should open the pdf document with via the path /remote.php/dav/files/admin/Nextcloud%20Manual.pdf

Actual behaviour

It seems Nextcloud encodes the url twice. The space-character is not converted to %20 but to %2520. In other words the space-character is convertet to %20 and then the %-character is converted to %25 resulting in %2025. pdf.js tries to open the path /remote.php/dav/files/admin/Nextcloud%2520Manual.pdf. The Server answers with HTTP 404. The file is available with the correct path /remote.php/dav/files/admin/Nextcloud%20Manual.pdf. Same behaviour can be found with files containing the %-character in the filename. pdf.js tries to open /remote.php/dav/files/admin/Nextcloud%2525Manual.pdf when the filename is Nextcloud%Manual.pdf.

pdf.js shows the error: PDF.js v2.5.207 (build: 0974d6052) Message: Missing PDF "https://nc.ambifox.net/remote.php/dav/files/admin/Nextcloud%2520Manual.pdf".

Server configuration

Operating system: CentOS 8 Stream as Docker host / Debian the nextcloud docker container

Web server: Apache 2.4.38

Database: mariadb

PHP version: 7.4.20

Nextcloud version: 21.0.2

Updated from an older Nextcloud/ownCloud or fresh install:

Where did you install Nextcloud from: Docker Hub offical Nextcloud image

Signing status:

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

List of activated apps:

App list ``` Enabled: - accessibility: 1.7.0 - activity: 2.14.3 - admin_audit: 1.11.0 - checksum: 1.1.2 - cloud_federation_api: 1.4.0 - comments: 1.11.0 - contactsinteraction: 1.2.0 - dashboard: 7.1.0 - dav: 1.17.1 - drawio: 1.0.0 - federatedfilesharing: 1.11.0 - federation: 1.11.0 - files: 1.16.0 - files_external: 1.12.0 - files_fulltextsearch: 21.0.2 - files_pdfviewer: 2.1.0 - files_rightclick: 1.0.0 - files_sharing: 1.13.1 - files_trashbin: 1.11.0 - files_versions: 1.14.0 - files_videoplayer: 1.10.0 - firstrunwizard: 2.10.0 - forms: 2.2.4 - fulltextsearch: 21.0.1 - fulltextsearch_elasticsearch: 21.0.1 - groupfolders: 9.0.2 - logreader: 2.6.0 - lookup_server_connector: 1.9.0 - nextcloud_announcements: 1.10.0 - notifications: 2.9.0 - oauth2: 1.9.0 - onlyoffice: 7.0.2 - password_policy: 1.11.0 - photos: 1.3.0 - privacy: 1.5.0 - provisioning_api: 1.11.0 - recommendations: 1.0.0 - serverinfo: 1.11.0 - settings: 1.3.0 - sharebymail: 1.11.0 - support: 1.4.0 - survey_client: 1.9.0 - systemtags: 1.11.0 - text: 3.2.0 - theming: 1.12.0 - twofactor_backupcodes: 1.10.0 - twofactor_totp: 6.0.0 - updatenotification: 1.11.0 - user_ldap: 1.11.0 - user_status: 1.1.1 - viewer: 1.5.0 - weather_status: 1.1.0 - workflowengine: 2.3.0 Disabled: - encryption - files_retention ```

Nextcloud configuration:

Config report ``` { "system": { "htaccess.RewriteBase": "\/", "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 }, "mail_smtpmode": "smtp", "mail_smtphost": "***REMOVED SENSITIVE VALUE***", "mail_smtpport": "25", "mail_smtpauth": 1, "mail_smtpauthtype": "LOGIN", "mail_smtpname": "***REMOVED SENSITIVE VALUE***", "mail_smtppassword": "***REMOVED SENSITIVE VALUE***", "mail_from_address": "***REMOVED SENSITIVE VALUE***", "mail_domain": "***REMOVED SENSITIVE VALUE***", "passwordsalt": "***REMOVED SENSITIVE VALUE***", "secret": "***REMOVED SENSITIVE VALUE***", "trusted_domains": [ "localhost", "nc.ambifox.net" ], "datadirectory": "***REMOVED SENSITIVE VALUE***", "dbtype": "mysql", "version": "21.0.2.1", "overwrite.cli.url": "https:\/\/nc.ambifox.net", "dbname": "***REMOVED SENSITIVE VALUE***", "dbhost": "***REMOVED SENSITIVE VALUE***", "dbport": "", "dbtableprefix": "oc_", "mysql.utf8mb4": true, "dbuser": "***REMOVED SENSITIVE VALUE***", "dbpassword": "***REMOVED SENSITIVE VALUE***", "installed": true, "instanceid": "***REMOVED SENSITIVE VALUE***", "trusted_proxies": "***REMOVED SENSITIVE VALUE***", "overwriteprotocol": "https", "onlyoffice": { "DocumentServerUrl": "https:\/\/ds.nc.ambifox.net\/" }, "elastic_host": "test", "loglevel": 2, "maintenance": false, "ldapIgnoreNamingRules": false, "ldapProviderFactory": "OCA\\User_LDAP\\LDAPProviderFactory", "app_install_overwrite": [ "fulltextsearch", "fulltextsearch_elasticsearch", "files_fulltextsearch", "files_fulltextsearch_tesseract", "checksum", "drawio" ], "mail_sendmailmode": "smtp", "simpleSignUpLink.shown": false, "theme": "", "default_phone_region": "DE" } } ```

Are you using external storage, if yes which one: no

Are you using encryption: no

Are you using an external user-backend, if yes which one: LDAP but error is also present on Nextcloud instances with local users

Client configuration

Browser: Firefox 89.0.1

Operating system: Windows 10

Logs

Nextcloud logs shows no entries at that time.

Web server error log

Web server error log ``` not sure if I can post these logs with user informations here (GDPR) ```

Nextcloud log (data/nextcloud.log)

Nextcloud log ``` not sure if I can post these logs with user informations here (GDPR) ```

Browser log

Browser log ``` javascript console: Uncaught (in promise) Object { readyState: 0, getResponseHeader: getResponseHeader(e), getAllResponseHeaders: getAllResponseHeaders(), setRequestHeader: setRequestHeader(e, t), overrideMimeType: overrideMimeType(e), statusCode: statusCode(e), abort: abort(e), state: state(), always: always(), catch: catch(e), … } asyncToGenerator.js:6:4 No OC found index.js:46:12 JQMIGRATE: Migrate is installed, version 3.3.2 jquery-migrate.min.js:2:708 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 5 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 Notifications permissions granted App.vue:306 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 3 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 2 globals.js:60:15 Handlebars is deprecated: please ship your own, this will be removed in Nextcloud 20 globals.js:60:15 [DEBUG] files: Templates providers Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, app: "files", uid: "admin" } ConsoleLogger.js:42:18 [DEBUG] files: Templates folder Object { app: "files", uid: "admin", templatesPath: false } ConsoleLogger.js:42:18 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 5 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 Handlebars is deprecated: please ship your own, this will be removed in Nextcloud 20 3 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 OCA.Files.Sidebar initialized Sidebar.js:37:10 Handlebars is deprecated: please ship your own, this will be removed in Nextcloud 20 globals.js:60:15 OCA.Comments.View initialized comments-app.js:31:21 OCA.Sharing.ShareSearch initialized ShareSearch.js:33:10 OCA.Sharing.ExternalLinkActions initialized ExternalLinkActions.js:33:10 OCA.Viewer initialized Viewer.js:49:10 Handlebars is deprecated: please ship your own, this will be removed in Nextcloud 20 globals.js:60:15 Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). global.js:10:10 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 2 globals.js:60:15 OCA.Files.Settings initialized Settings.js:29:10 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 94 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 session heartbeat polling started session-heartbeat.js:97:9 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 [DEBUG] files: Templates folder not initialized Object { app: "files", uid: "admin" } ConsoleLogger.js:42:18 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 14 globals.js:60:15 Please do NOT wait for the DOMContentLoaded before registering your viewer handler Viewer.vue:260 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 9 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 24 globals.js:60:15 Clipboard is deprecated: please ship your own, this will be removed in Nextcloud 20 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 18 globals.js:60:15 registerDetailView is deprecated! It will be removed in nextcloud 20. merged-index.js:7669:12 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 registerTabView is deprecated! It will be removed in nextcloud 20. merged-index.js:7643:12 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 registerTabView is deprecated! It will be removed in nextcloud 20. merged-index.js:7643:12 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 31 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 146 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 8 globals.js:60:15 [DEBUG] unified-search: Unified Search initialized with the following providers Object { 0: {…}, 1: {…}, 2: {…}, 3: {…}, 4: {…}, 5: {…}, 6: {…}, 7: {…}, app: "unified-search", uid: "admin" } ConsoleLogger.js:42:18 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 144 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 6 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 22 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 22 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 19 globals.js:60:15 GEThttps://nc.ambifox.net/core/preview?fileId=99&x=32&y=32 [HTTP/2 404 Not Found 236ms] GET https://nc.ambifox.net/core/preview?fileId=99&x=32&y=32 Status404 Not Found VersionHTTP/2 Transferred825 B (2 B size) Referrer Policyno-referrer cache-control no-cache, no-store, must-revalidate content-length 2 content-security-policy default-src 'none';base-uri 'none';manifest-src 'self';frame-ancestors 'none' content-type application/json; charset=utf-8 date Tue, 22 Jun 2021 13:03:13 GMT expires Thu, 19 Nov 1981 08:52:00 GMT feature-policy autoplay 'none';camera 'none';fullscreen 'none';geolocation 'none';microphone 'none';payment 'none' pragma no-cache referrer-policy no-referrer server Apache/2.4.38 (Debian) strict-transport-security max-age=15552000; includeSubDomains; preload x-content-type-options nosniff x-download-options noopen X-Firefox-Spdy h2 x-frame-options SAMEORIGIN x-permitted-cross-domain-policies none x-powered-by PHP/7.4.20 x-robots-tag none x-xss-protection 1; mode=block Accept image/webp,*/* Accept-Encoding gzip, deflate, br Accept-Language en-US,en;q=0.5 Cache-Control no-cache Connection keep-alive Cookie ***REMOVED SENSITIVE VALUE*** Host nc.ambifox.net Pragma no-cache TE Trailers User-Agent Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:89.0) Gecko/20100101 Firefox/89.0 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 2 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 11 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 14 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 26 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 23 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 23 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 23 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 23 globals.js:60:15 OC.Util.formatDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:121:11 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment util.js:133:11 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 34 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 26 globals.js:60:15 could not load recommendation preview error { target: img, isTrusted: true, srcElement: img, currentTarget: img, eventPhase: 2, bubbles: false, cancelable: false, returnValue: true, defaultPrevented: false, composed: false, … } RecommendedFile.vue:110 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 5 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 12 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 16 globals.js:60:15 GEThttps://nc.ambifox.net/core/preview?fileId=99&c=d43f8b51c6b9962f918e71547de3006c&x=250&y=250&forceIcon=0&a=0 [HTTP/2 404 Not Found 209ms] jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 8 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 10 globals.js:60:15 Opening viewer for file /Readme.md Viewer.vue:273 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 144 globals.js:60:15 Fetching additional files... Viewer.vue:300 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 8 globals.js:60:15 Content Security Policy: The page’s settings blocked the loading of a resource at eval (“script-src”). global.js:10:10 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 116 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 124 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 8 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 280 globals.js:60:15 OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment 18 util.js:133:11 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 4 globals.js:60:15 $ is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 10 globals.js:60:15 Opening viewer for file /Nextcloud Manual.pdf Viewer.vue:273 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 144 globals.js:60:15 Fetching additional files... Viewer.vue:300 Uncaught TypeError: e.classList is undefined hasNodeOrAnyParentClass excludeClickOutsideClasses.js:22 clickOutsideMiddleware excludeClickOutsideClasses.js:22 r v-click-outside.umd.js:1 handler v-click-outside.umd.js:1 setTimeout handler*handler/< v-click-outside.umd.js:1 handler v-click-outside.umd.js:1 t PDFView.vue:76 VueJS 5 t PDFView.vue:75 l runtime.js:63 _invoke runtime.js:293 b runtime.js:118 o files_pdfviewer-main.js:1 a files_pdfviewer-main.js:1 mounted files_pdfviewer-main.js:1 mounted files_pdfviewer-main.js:1 mounted files_pdfviewer-main.js:1 VueJS 18 excludeClickOutsideClasses.js:22:425 hasNodeOrAnyParentClass excludeClickOutsideClasses.js:22 hasNodeOrAnyParentClass self-hosted:1178 clickOutsideMiddleware excludeClickOutsideClasses.js:22 clickOutsideMiddleware self-hosted:1178 r v-click-outside.umd.js:1 handler v-click-outside.umd.js:1 (Async: setTimeout handler) handler v-click-outside.umd.js:1 handler v-click-outside.umd.js:1 t PDFView.vue:76 VueJS 5 t PDFView.vue:75 l runtime.js:63 _invoke runtime.js:293 b runtime.js:118 o files_pdfviewer-main.js:1 a files_pdfviewer-main.js:1 mounted files_pdfviewer-main.js:1 mounted files_pdfviewer-main.js:1 mounted files_pdfviewer-main.js:1 VueJS 18 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 12 globals.js:60:15 jQuery is deprecated: The global jQuery is deprecated. It will be updated to v3.x in Nextcloud 21. In later versions of Nextcloud it might be removed completely. Please ship your own. 108 globals.js:60:15 Content Security Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive. Initialized files_pdfviewer Object { cursorToolOnLoad: 0, defaultUrl: "compressed.tracemonkey-pldi-09.pdf", defaultZoomValue: "", disableCreateObjectURL: false, disableHistory: false, disablePageLabels: false, enablePermissions: false, enablePrintAutoRotate: false, enableWebGL: false, externalLinkRel: "noopener noreferrer nofollow", … } workersrc.js:50:9 #thumbs is undefined. l10n.js:825:6 #thumbs is undefined. l10n.js:897:6 #thumbs_label is undefined. l10n.js:825:6 #thumbs_label is undefined. l10n.js:897:6 #document_outline is undefined. l10n.js:825:6 #document_outline is undefined. l10n.js:897:6 #document_outline_label is undefined. l10n.js:825:6 #document_outline_label is undefined. l10n.js:897:6 #attachments is undefined. l10n.js:825:6 #attachments is undefined. l10n.js:897:6 #attachments_label is undefined. l10n.js:825:6 #attachments_label is undefined. l10n.js:897:6 #find_input is undefined. l10n.js:825:6 #find_input is undefined. l10n.js:897:6 #find_previous is undefined. l10n.js:825:6 #find_previous is undefined. l10n.js:897:6 #find_previous_label is undefined. l10n.js:825:6 #find_previous_label is undefined. l10n.js:897:6 #find_next is undefined. l10n.js:825:6 #find_next is undefined. l10n.js:897:6 #find_next_label is undefined. l10n.js:825:6 #find_next_label is undefined. l10n.js:897:6 #find_highlight is undefined. l10n.js:825:6 #find_highlight is undefined. l10n.js:897:6 #find_match_case_label is undefined. l10n.js:825:6 #find_match_case_label is undefined. l10n.js:897:6 #find_entire_word_label is undefined. l10n.js:825:6 #find_entire_word_label is undefined. l10n.js:897:6 #presentation_mode is undefined. l10n.js:825:6 #presentation_mode is undefined. l10n.js:897:6 #presentation_mode_label is undefined. l10n.js:825:6 #presentation_mode_label is undefined. l10n.js:897:6 #open_file is undefined. l10n.js:825:6 #open_file is undefined. l10n.js:897:6 #open_file_label is undefined. l10n.js:825:6 #open_file_label is undefined. l10n.js:897:6 #print is undefined. l10n.js:825:6 #print is undefined. l10n.js:897:6 #print_label is undefined. l10n.js:825:6 #print_label is undefined. l10n.js:897:6 #download is undefined. l10n.js:825:6 #download is undefined. l10n.js:897:6 #download_label is undefined. l10n.js:825:6 #download_label is undefined. l10n.js:897:6 #bookmark is undefined. l10n.js:825:6 #bookmark is undefined. l10n.js:897:6 #bookmark_label is undefined. l10n.js:825:6 #bookmark_label is undefined. l10n.js:897:6 #first_page is undefined. l10n.js:825:6 #first_page is undefined. l10n.js:897:6 #first_page_label is undefined. l10n.js:825:6 #first_page_label is undefined. l10n.js:897:6 #last_page is undefined. l10n.js:825:6 #last_page is undefined. l10n.js:897:6 #last_page_label is undefined. l10n.js:825:6 #last_page_label is undefined. l10n.js:897:6 #page_rotate_cw is undefined. l10n.js:825:6 #page_rotate_cw is undefined. l10n.js:897:6 #page_rotate_cw_label is undefined. l10n.js:825:6 #page_rotate_cw_label is undefined. l10n.js:897:6 #page_rotate_ccw is undefined. l10n.js:825:6 #page_rotate_ccw is undefined. l10n.js:897:6 #page_rotate_ccw_label is undefined. l10n.js:825:6 #page_rotate_ccw_label is undefined. l10n.js:897:6 #cursor_text_select_tool is undefined. l10n.js:825:6 #cursor_text_select_tool is undefined. l10n.js:897:6 #cursor_text_select_tool_label is undefined. l10n.js:825:6 #cursor_text_select_tool_label is undefined. l10n.js:897:6 #cursor_hand_tool is undefined. l10n.js:825:6 #cursor_hand_tool is undefined. l10n.js:897:6 #cursor_hand_tool_label is undefined. l10n.js:825:6 #cursor_hand_tool_label is undefined. l10n.js:897:6 #scroll_vertical is undefined. l10n.js:825:6 #scroll_vertical is undefined. l10n.js:897:6 #scroll_vertical_label is undefined. l10n.js:825:6 #scroll_vertical_label is undefined. l10n.js:897:6 #scroll_horizontal is undefined. l10n.js:825:6 #scroll_horizontal is undefined. l10n.js:897:6 #scroll_horizontal_label is undefined. l10n.js:825:6 #scroll_horizontal_label is undefined. l10n.js:897:6 #scroll_wrapped is undefined. l10n.js:825:6 #scroll_wrapped is undefined. l10n.js:897:6 #scroll_wrapped_label is undefined. l10n.js:825:6 #scroll_wrapped_label is undefined. l10n.js:897:6 #spread_none is undefined. l10n.js:825:6 #spread_none is undefined. l10n.js:897:6 #spread_none_label is undefined. l10n.js:825:6 #spread_none_label is undefined. l10n.js:897:6 #spread_odd is undefined. l10n.js:825:6 #spread_odd is undefined. l10n.js:897:6 #spread_odd_label is undefined. l10n.js:825:6 #spread_odd_label is undefined. l10n.js:897:6 #spread_even is undefined. l10n.js:825:6 #spread_even is undefined. l10n.js:897:6 #spread_even_label is undefined. l10n.js:825:6 #spread_even_label is undefined. l10n.js:897:6 #document_properties is undefined. l10n.js:825:6 #document_properties is undefined. l10n.js:897:6 #document_properties_label is undefined. l10n.js:825:6 #document_properties_label is undefined. l10n.js:897:6 #toggle_sidebar is undefined. l10n.js:825:6 #toggle_sidebar is undefined. l10n.js:897:6 #toggle_sidebar_label is undefined. l10n.js:825:6 #toggle_sidebar_label is undefined. l10n.js:897:6 #findbar is undefined. l10n.js:825:6 #findbar is undefined. l10n.js:897:6 #findbar_label is undefined. l10n.js:825:6 #findbar_label is undefined. l10n.js:897:6 #previous is undefined. l10n.js:825:6 #previous is undefined. l10n.js:897:6 #previous_label is undefined. l10n.js:825:6 #previous_label is undefined. l10n.js:897:6 #next is undefined. l10n.js:825:6 #next is undefined. l10n.js:897:6 #next_label is undefined. l10n.js:825:6 #next_label is undefined. l10n.js:897:6 #page is undefined. l10n.js:825:6 #page is undefined. l10n.js:897:6 #presentation_mode is undefined. l10n.js:825:6 #presentation_mode is undefined. l10n.js:897:6 #presentation_mode_label is undefined. l10n.js:825:6 #presentation_mode_label is undefined. l10n.js:897:6 #open_file is undefined. l10n.js:825:6 #open_file is undefined. l10n.js:897:6 #open_file_label is undefined. l10n.js:825:6 #open_file_label is undefined. l10n.js:897:6 #print is undefined. l10n.js:825:6 #print is undefined. l10n.js:897:6 #print_label is undefined. l10n.js:825:6 #print_label is undefined. l10n.js:897:6 #download is undefined. l10n.js:825:6 #download is undefined. l10n.js:897:6 #download_label is undefined. l10n.js:825:6 #download_label is undefined. l10n.js:897:6 #bookmark is undefined. l10n.js:825:6 #bookmark is undefined. l10n.js:897:6 #bookmark_label is undefined. l10n.js:825:6 #bookmark_label is undefined. l10n.js:897:6 #tools is undefined. l10n.js:825:6 #tools is undefined. l10n.js:897:6 #tools_label is undefined. l10n.js:825:6 #tools_label is undefined. l10n.js:897:6 #zoom_out is undefined. l10n.js:825:6 #zoom_out is undefined. l10n.js:897:6 #zoom_out_label is undefined. l10n.js:825:6 #zoom_out_label is undefined. l10n.js:897:6 #zoom_in is undefined. l10n.js:825:6 #zoom_in is undefined. l10n.js:897:6 #zoom_in_label is undefined. l10n.js:825:6 #zoom_in_label is undefined. l10n.js:897:6 #zoom is undefined. l10n.js:825:6 #zoom is undefined. l10n.js:897:6 #page_scale_auto is undefined. l10n.js:825:6 #page_scale_auto is undefined. l10n.js:897:6 #page_scale_actual is undefined. l10n.js:825:6 #page_scale_actual is undefined. l10n.js:897:6 #page_scale_fit is undefined. l10n.js:825:6 #page_scale_fit is undefined. l10n.js:897:6 #page_scale_width is undefined. l10n.js:825:6 #page_scale_width is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #page_scale_percent is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:897:6 #first_page is undefined. l10n.js:825:6 #first_page is undefined. l10n.js:897:6 #last_page is undefined. l10n.js:825:6 #last_page is undefined. l10n.js:897:6 #page_rotate_cw is undefined. l10n.js:825:6 #page_rotate_cw is undefined. l10n.js:897:6 #page_rotate_ccw is undefined. l10n.js:825:6 #page_rotate_ccw is undefined. l10n.js:897:6 #error_more_info is undefined. l10n.js:825:6 #error_more_info is undefined. l10n.js:897:6 #error_less_info is undefined. l10n.js:825:6 #error_less_info is undefined. l10n.js:897:6 #error_close is undefined. l10n.js:825:6 #error_close is undefined. l10n.js:897:6 #password_label is undefined. l10n.js:825:6 #password_label is undefined. l10n.js:897:6 #password_cancel is undefined. l10n.js:825:6 #password_cancel is undefined. l10n.js:897:6 #password_ok is undefined. l10n.js:825:6 #password_ok is undefined. l10n.js:897:6 #document_properties_file_name is undefined. l10n.js:825:6 #document_properties_file_name is undefined. l10n.js:897:6 #document_properties_file_size is undefined. l10n.js:825:6 #document_properties_file_size is undefined. l10n.js:897:6 #document_properties_title is undefined. l10n.js:825:6 #document_properties_title is undefined. l10n.js:897:6 #document_properties_author is undefined. l10n.js:825:6 #document_properties_author is undefined. l10n.js:897:6 #document_properties_subject is undefined. l10n.js:825:6 #document_properties_subject is undefined. l10n.js:897:6 #document_properties_keywords is undefined. l10n.js:825:6 #document_properties_keywords is undefined. l10n.js:897:6 #document_properties_creation_date is undefined. l10n.js:825:6 #document_properties_creation_date is undefined. l10n.js:897:6 #document_properties_modification_date is undefined. l10n.js:825:6 #document_properties_modification_date is undefined. l10n.js:897:6 #document_properties_creator is undefined. l10n.js:825:6 #document_properties_creator is undefined. l10n.js:897:6 #document_properties_producer is undefined. l10n.js:825:6 #document_properties_producer is undefined. l10n.js:897:6 #document_properties_version is undefined. l10n.js:825:6 #document_properties_version is undefined. l10n.js:897:6 #document_properties_page_count is undefined. l10n.js:825:6 #document_properties_page_count is undefined. l10n.js:897:6 #document_properties_page_size is undefined. l10n.js:825:6 #document_properties_page_size is undefined. l10n.js:897:6 #document_properties_linearized is undefined. l10n.js:825:6 #document_properties_linearized is undefined. l10n.js:897:6 #document_properties_close is undefined. l10n.js:825:6 #document_properties_close is undefined. l10n.js:897:6 #print_progress_message is undefined. l10n.js:825:6 #print_progress_message is undefined. l10n.js:897:6 #print_progress_percent is undefined. l10n.js:825:6 #print_progress_percent is undefined. l10n.js:897:6 #print_progress_close is undefined. l10n.js:825:6 #print_progress_close is undefined. l10n.js:897:6 #page_scale_auto is undefined. l10n.js:825:6 #page_scale_actual is undefined. l10n.js:825:6 #page_scale_fit is undefined. l10n.js:825:6 #page_scale_width is undefined. l10n.js:825:6 #of_pages is undefined. l10n.js:825:6 #page_scale_percent is undefined. l10n.js:825:6 XHRGEThttps://nc.ambifox.net/remote.php/dav/files/admin/Nextcloud%2520Manual.pdf [HTTP/2 404 Not Found 93ms] #missing_file_error is undefined. l10n.js:825:6 #error_version_info is undefined. l10n.js:825:6 #error_message is undefined. l10n.js:825:6 Uncaught (in promise) Object { message: "Missing PDF \"https://nc.ambifox.net/remote.php/dav/files/admin/Nextcloud%2520Manual.pdf\".", name: "MissingPDFException", stack: "BaseExceptionClosure@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:2155:29\n@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:2158:2\n__w_pdfjs_require__@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:52:30\n@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:389:32\n__w_pdfjs_require__@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:52:30\n@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:322:41\n__w_pdfjs_require__@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:52:30\n@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:116:18\n@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:119:10\nwebpackUniversalModuleDefinition@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:31:50\n@https://nc.ambifox.net/apps/files_pdfviewer/js/pdfjs/build/pdf.js?v=2.1.0:32:3\n" } OC.Util.relativeModifiedDate is deprecated and will be removed in Nextcloud 21. See @nextcloud/moment 18 util.js:133:11 ```
ccoenen commented 3 years ago

I can confirm that this is a regression for me, too. We're experiencing this since the update to 21.0.2.

The space can also be anywhere in the path (for example the directory name).

kesselb commented 3 years ago

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