Nextcloud 31.0.8 can't load PDF with only read permission
How to use GitHub
- 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
1.create a public share on a dfolder with dpf files: 2.open the public share 3.open the pdf file
Expected behaviour
the pdf should be viewed in the viewer
Actual behaviour
if i wantto be able to view or download the pdf i need to add the edit option
Server configuration
Web server: Apache/Nginx
Database: MySQL/Maria/SQLite/PostgreSQL
PHP version: 8.1/8.2/8.3
Nextcloud version: (see Nextcloud admin page)
List of activated apps
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
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
Browser
Browser name: Firefox/Chrome/Safari/…
Browser version: 124/125/…
Operating system: Windows/Ubuntu/Mac/…
Browser log
Insert your browser log here, this could for example include:
a) The javascript console log
b) The network log
c) ...
Verified on v31 and v32.
Looking at the console I see a request to https://[redacted hostname]/public.php/dav/files/[redacted file hash]/ that returns a 403 error.
This happens to all public link sharing of any PDF. If I disable the extension, it opens it properly with Nextcloud Office.
BUT, the download button also returns a Nextcloud's 403 page, whether the files_pdfviewer is enabled or not. So it may be a Nextcloud bug.
I can also confirm that the adding the edit permission to the public link enables viewing and downloading.
BTW I have the issue on one 31.0.8 instance, one v32.0.0 instance. One other 31.0.8 instance I manage doesn't have the issue ...
For me it is related to https://github.com/nextcloud/richdocuments/issues/4944
If I disable Enforce secure view for read only link shares in Nextcloud Office settings, the issue is gone.
@Unsourire can you try ?