-
Notifications
You must be signed in to change notification settings - Fork 60
Closed
Labels
0. Needs triagePending approval or rejection. This issue is pending approval.Pending approval or rejection. This issue is pending approval.bugSomething isn't workingSomething isn't working
Description
Describe the bug
when sharing a folder or a file publicly, the previews do not load at all. in the normal nextcloud files section, the previews load perfectly though
running on Nextcloud AIO mastercontainer
To Reproduce
Steps to reproduce the behavior:
- share a folder or a file
- access the link in incognito
- click on a file
- open devtools and see the errors
Expected behavior
the preview showing up just like in the nextcloud files
Screenshots
when clicking on a png in the public share
when clicking on a pdf in the public share
Desktop (please complete the following information):
- OS: Windows
- Browser: Chrome and Firefox
Browser log
GET
[https://office.thesigmaarts.com/apps/files_sharing/publicpreview/ey2MTWsYN3a2N5o?file=/test.png&x=32&y=32&mimeFallback=true&v=865aa8&a=0](https://office.thesigmaarts.com/apps/files_sharing/publicpreview/ey2MTWsYN3a2N5o?file=%2Ftest.png&x=32&y=32&mimeFallback=true&v=865aa8&a=0)
[HTTP/2 200 119ms]
GET
[https://office.thesigmaarts.com/apps/files_sharing/publicpreview/ey2MTWsYN3a2N5o?file=/UAS-A1-A3-certificate-24852625.pdf&x=32&y=32&mimeFallback=true&v=aec5c0&a=0](https://office.thesigmaarts.com/apps/files_sharing/publicpreview/ey2MTWsYN3a2N5o?file=%2FUAS-A1-A3-certificate-24852625.pdf&x=32&y=32&mimeFallback=true&v=aec5c0&a=0)
[HTTP/2 200 122ms]
[WARN] viewer: No files provided, skipping update
Object { app: "viewer", level: 2 }
[index.mjs:51:17](https://office.thesigmaarts.com/apps/viewer/node_modules/@nextcloud/logger/dist/index.mjs)
GET
https://office.thesigmaarts.com/apps/viewer/css/previewUtils-6cpbKhU6.chunk.css
[HTTP/2 200 OK 0ms]
GET
https://office.thesigmaarts.com/apps/viewer/css/NcActionButton-DyH89PpO.chunk.css
[HTTP/2 200 OK 0ms]
File info for /test.png fetched
Object { filename: "/test.png", basename: "test.png", lastmod: "Sun, 02 Feb 2025 14:35:37 GMT", size: 2432463, type: "file", etag: "865aa866ccc7ae0107b0b3abe2119393", mime: "image/png", getcontentlength: 2432463, getcontenttype: "image/png", getetag: '"865aa866ccc7ae0107b0b3abe2119393"', … }
[Viewer.vue:668:1](https://office.thesigmaarts.com/apps/viewer/src/views/Viewer.vue)
GET
https://office.thesigmaarts.com/apps/files_sharing/publicpreview/ey2MTWsYN3a2N5o?file=/test.png&fileId=1273&x=1920&y=1080&a=true&etag=865aa866ccc7ae0107b0b3abe2119393
[HTTP/2 200 266ms]
[WARN] viewer: No files provided, skipping update
Object { app: "viewer", level: 2 }
[index.mjs:51:17](https://office.thesigmaarts.com/apps/viewer/node_modules/@nextcloud/logger/dist/index.mjs)
File info for /UAS-A1-A3-certificate-24852625.pdf fetched
Object { filename: "/UAS-A1-A3-certificate-24852625.pdf", basename: "UAS-A1-A3-certificate-24852625.pdf", lastmod: "Tue, 29 Jul 2025 13:51:56 GMT", size: 786444, type: "file", etag: "aec5c09c605ddef5191eeec8c894cec2", mime: "application/pdf", getcontentlength: 786444, getcontenttype: "application/pdf", getetag: '"aec5c09c605ddef5191eeec8c894cec2"', … }
[Viewer.vue:668:1](https://office.thesigmaarts.com/apps/viewer/src/views/Viewer.vue)
GET
[https://office.thesigmaarts.com/apps/files_pdfviewer/?file=https://office.thesigmaarts.com/public.php/dav/files/ey2MTWsYN3a2N5o/UAS-A1-A3-certificate-24852625.pdf](https://office.thesigmaarts.com/apps/files_pdfviewer/?file=https%3A%2F%2Foffice.thesigmaarts.com%2Fpublic.php%2Fdav%2Ffiles%2Fey2MTWsYN3a2N5o%2FUAS-A1-A3-certificate-24852625.pdf)
[HTTP/2 200 127ms]
Content-Security-Policy: Ignoring ‘x-frame-options’ because of ‘frame-ancestors’ directive.
Content-Security-Policy: Ignoring ‘unsafe-eval’ or ‘wasm-unsafe-eval’ inside “script-src-elem”. [files_pdfviewer](https://office.thesigmaarts.com/apps/files_pdfviewer/?file=https%3A%2F%2Foffice.thesigmaarts.com%2Fpublic.php%2Fdav%2Ffiles%2Fey2MTWsYN3a2N5o%2FUAS-A1-A3-certificate-24852625.pdf)
GET
https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015
Tracking
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null).
None of the “sha512” hashes in the integrity attribute match the content of the subresource at “https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015”. The computed hash is “z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==”. [files_pdfviewer](https://office.thesigmaarts.com/apps/files_pdfviewer/?file=https%3A%2F%2Foffice.thesigmaarts.com%2Fpublic.php%2Fdav%2Ffiles%2Fey2MTWsYN3a2N5o%2FUAS-A1-A3-certificate-24852625.pdf)
GET
https://office.thesigmaarts.com/apps/files_pdfviewer/js/pdfjs/build/pdf.mjs?v=5.0.0-dev.0
[HTTP/2 200 38ms]
GET
https://office.thesigmaarts.com/apps/files_pdfviewer/js/pdfjs/web/viewer.mjs?v=5.0.0-dev.0
[HTTP/2 200 38ms]
GET
https://office.thesigmaarts.com/apps/files_pdfviewer/js/files_pdfviewer-workersrc.js?v=5.0.0-dev.0
[HTTP/2 200 26ms]
GET
https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015
Tracking
Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource at https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015. (Reason: CORS request did not succeed). Status code: (null).
None of the “sha512” hashes in the integrity attribute match the content of the subresource at “https://static.cloudflareinsights.com/beacon.min.js/vcd15cbe7772f49c399c6a5babf22c1241717689176015”. The computed hash is “z4PhNX7vuL3xVChQ1m2AB9Yg5AULVxXcg/SpIdNs6c5H0NE8XYXysP+DGNKHfuwvY7kxvUdBeoGlODJ6+SfaPg==”. [files_pdfviewer](https://office.thesigmaarts.com/apps/files_pdfviewer/?file=https%3A%2F%2Foffice.thesigmaarts.com%2Fpublic.php%2Fdav%2Ffiles%2Fey2MTWsYN3a2N5o%2FUAS-A1-A3-certificate-24852625.pdf)
XHRGET
https://office.thesigmaarts.com/apps/files_pdfviewer/js/pdfjs/web/locale/locale.json?v=5.0.0-dev.0
[HTTP/2 404 134ms]
GET
https://office.thesigmaarts.com/apps/files_pdfviewer/js/pdfjs/build/pdf.worker.mjs?v=5.0.0-dev.0
[HTTP/2 200 88ms]
Uncaught (in promise) SyntaxError: JSON.parse: unexpected character at line 1 column 1 of the JSON data
PDF 60bf8b3175d8934987028832f6262e25 [1.4 PDFsharp 1.50.5147 (www.pdfsharp.com) / PDFsharp 1.50.5147 (www.pdfsharp.com)] (PDF.js: 4.0.189 [50f52b43a])
if there's any steps i can do to help troubleshoot or other logs i need to share, then do tell
Metadata
Metadata
Assignees
Labels
0. Needs triagePending approval or rejection. This issue is pending approval.Pending approval or rejection. This issue is pending approval.bugSomething isn't workingSomething isn't working