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

Folder description shows Text Editor/Viewer header on public share #6896

Open
RoepLuke opened this issue Feb 10, 2025 · 0 comments
Open

Folder description shows Text Editor/Viewer header on public share #6896

RoepLuke opened this issue Feb 10, 2025 · 0 comments
Labels
bug Something isn't working

Comments

@RoepLuke
Copy link

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 RoepLuke added the bug Something isn't working label Feb 10, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant