PDF_viewer goes in conflict with Collabora on public links with custom permission "Hide download"

Setup:

  • Nextcloud Server version (e.g., 29.x.x):
    • 34.0.4
  • PHP version (e.g, 8.3):
    • 8.4.25
  • Is this the first time you’ve seen this error? (Yes / No):
    • Yes
  • When did this problem seem to first start?
    • Not sure
  • Are you using CloudfIare, mod_security, or similar? (Yes / No)
    • No

Summary of the issue you are facing:

If a pdf file is shared publicly with custom permission “Hide download”, the pdf file is wrongly opened with Collabora. If I remove the “Hide download” option, the pdf file is correctly opened by pdf_viewer.

The bug seems not new, as a bug report has already been filled in June 2026 ( Bug report: PDF public share opens with Collabora after enabling custom permissions · Issue #5789 · nextcloud/richdocuments · GitHub ), but still not has been assigned for solving yet.

Steps to replicate it:

  1. Create a public link for a pdf file.

  2. Set custom permission “Hide download” and save the public link.

  3. Open the public link: the pdf file wrongly opens with Collabora instead of pdf_viewer.