Skip to content

[stable34] fix(share): allow viewing files in shares with download disabled - #9587

Open
backportbot[bot] wants to merge 4 commits into
stable34from
backport/9586/stable34
Open

backportbot[bot] wants to merge 4 commits into
stable34from
backport/9586/stable34

Conversation

@backportbot

@backportbot backportbot Bot commented Nov 10, 2026 •

Copy link
Copy Markdown

Backport of #9586

Warning, This backport's changes differ from the original and might be incomplete ⚠️

Todo

  • Review and resolve any conflicts
  • Review and verify the backported changes
  • Amend HEAD commit to remove the line stating to skip CI

Learn more about backports at https://docs.nextcloud.com/server/stable/go.php?to=developer-backports.

@backportbot
backportbot Bot requested a review from mejo- November 10, 2026 15:48
@backportbot backportbot Bot added bug Something isn't working 3. to review feature: sharing AI assisted This PR contains AI-assisted commits labels Nov 10, 2026
@backportbot backportbot Bot added this to the Nextcloud 34.0.6 milestone Nov 10, 2026
@mejo- mejo- changed the title [stable34] [stable35] fix(share): allow viewing files in shares with download disabled [stable34] fix(share): allow viewing files in shares with download disabled Nov 10, 2026
Text refused to open files from shares with the download permission
disabled, including the folder description (Readme.md) of shared
folders and attachments in such files.

Use `IShare::canSeeContent()` to decide whether Text may show a file
and its attachments. Copying a file into the attachment folder still
requires the download permission, as WebDAV COPY and MOVE do on the
server.

Add Playwright tests for user shares with download disabled that cover
both values of the admin setting.

Fixes: #7023

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
…scription

Only return the content of the folder description in the rich
workspace PROPFIND properties if `canSeeContent()` allows viewing the
Readme.md, as the editor already does. Otherwise the folder
description preview showed content that the editor then refused to
open.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
Files opened through a link share are resolved via the share owner's
storage, so checking the file's storage never found the share. Check
the link share itself when building the file context, and recognize
any shared storage, including the one used by public WebDAV.

Signed-off-by: Jonas <jonas@freesources.org>
Assisted-by: ClaudeCode:claude-opus-5-5
@mejo-
mejo- force-pushed the backport/9586/stable34 branch from 9002ae4 to e3fcd64 Compare November 10, 2026 16:19
@mejo-
mejo- marked this pull request as ready for review November 10, 2026 16:20
Signed-off-by: Jonas <jonas@freesources.org>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

3. to review AI assisted This PR contains AI-assisted commits bug Something isn't working feature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants