Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cannot open PDF shared with another user if download disabled #3991

Open
elzody opened this issue Sep 5, 2024 · 1 comment
Open

Cannot open PDF shared with another user if download disabled #3991

elzody opened this issue Sep 5, 2024 · 1 comment
Assignees
Labels
2. developing Work in progress bug Something isn't working

Comments

@elzody
Copy link
Contributor

elzody commented Sep 5, 2024

Describe the bug
When sharing a PDF to another user with the "Allow download and sync" option unchecked, the other person cannot view the file. It simply shows a blank screen using the files app PDF viewer (files_pdfviewer)

To Reproduce
Steps to reproduce the behavior:

  1. Create or upload any PDF document
  2. Share it with another user on the instance
  3. Uncheck the "Allow download and sync" option in the share settings
  4. Try to open the file on the other account

Expected behavior
It should display the PDF using Nextcloud Office instead of the files PDF viewer, and ideally no error should occur.

Example

Video
internal-share-disable-download-error.webm
@elzody elzody added bug Something isn't working 2. developing Work in progress labels Sep 5, 2024
@elzody elzody self-assigned this Sep 5, 2024
@github-project-automation github-project-automation bot moved this to 🧭 Planning evaluation (don't pick) in 📝 Office team Sep 5, 2024
@elzody elzody moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Office team Sep 5, 2024
@elzody
Copy link
Contributor Author

elzody commented Sep 5, 2024

Quick update for this: I don't think it's only a richdocuments issue. I tried it with other file types as well, and it always happens with the following message:

<?xml version="1.0" encoding="utf-8"?>
<d:error xmlns:d="DAV:" xmlns:s="http://sabredav.org/ns" xmlns:o="http://owncloud.org/ns">
  <s:exception>OCA\DAV\Connector\Sabre\Exception\Forbidden</s:exception>
  <s:message>Access to this shared resource has been denied because its download permission is disabled.</s:message>
  <o:retry xmlns:o="o:">false</o:retry>
  <o:reason xmlns:o="o:">Access to this shared resource has been denied because its download permission is disabled.</o:reason>
</d:error>

And a status code of 403 Forbidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
2. developing Work in progress bug Something isn't working
Projects
Status: 📄 To do (~10 entries)
Development

No branches or pull requests

1 participant