text icon indicating copy to clipboard operation
text copied to clipboard

Folder description shows Text Editor/Viewer header on public share

Open RoepLuke opened this issue 10 months ago • 0 comments

Describe the bug A folder with a folder description, when viewed from a public share link, shows the Text Editor/Viewer header (show/hide outline, last saved x min ago, Active people). This can interfere with the first line of the description and brings no benefit. It seems to be a broken form of the Text Editor/Viewer UI one also sees when opening a Text-File without write-permissions (on a public share or logged in).

To Reproduce Steps to reproduce the behavior:

  1. Create a folder
  2. Share the folder using a public link (read-only)
  3. Add a folder description to the folder
  4. Open the public share link in another browser or an incognito window
  5. Observe the folder description and header above

Expected behavior If the share link is read-only no Text Editor/Viewer header should be shown (like in the files app when the description is not being edited). If the share link has sufficient permissions, the User should see the usual viewing/editing UI as seen in the Files App when logged in.

Screenshots Viewing from the read-only public share link Image Viewing from Files App Image Editing from Files App Image

Server details:

  • Nextcloud version: 30.0.5 (AIO)
  • PHP Version: 8.3.16 (AIO)
  • Database: PostgreSQL 16.6 (AIO)

Client details:

  • OS: Fedora Workstation
  • Browser: Firefox, Gnome Web, etc.
  • Browser version: 135.0, 47.3.1, ...
  • Device: laptop/desktop
Logs

Nextcloud log (data/nextcloud.log)

None

Browser log

22:55:10.587 Content-Security-Policy: The page’s settings blocked an event handler (script-src-attr) from being executed because it violates the following directive: “script-src 'nonce-aXA0jgbhtw97NAoR4V+aCfwlfLYxs7cXcJ7ee2Yirus='”
Source: event.preventDefault() 4 ExY5T3WJryk3XKt

RoepLuke avatar Feb 10 '25 22:02 RoepLuke