Skip to content

[Bug]: Share without "download" permission blocks readme.md #7023

Closed

Description

@schiessle

⚠️ This issue respects the following points: ⚠️

Bug description

If I share a folder without the "can download" permission the readme is not rendered

Steps to reproduce

  1. Share a folder which contain a readme.md with a user and remove the download permission
  2. Go to the recipient and open the folder

This is how the file listing looks like:
image

If I try to open the readme.md:

image

I also can't view the images.
image

Expected behavior

I can view the content in the browser and only the download should be forbidden.

If it is the intended behaviour we should have at least a nice file listing and a nice error message in all situations

Installation method

None

Nextcloud Server version

28

Operating system

None

PHP engine version

None

Web server

None

Database engine version

None

Is this bug present after an update or on a fresh install?

None

Are you using the Nextcloud Server Encryption module?

None

What user-backends are you using?

  • Default user-backend (database)
  • LDAP/ Active Directory
  • SSO - SAML
  • Other

Configuration report

No response

List of activated Apps

No response

Nextcloud Signing status

No response

Nextcloud Logs

No response

Additional info

No response

Activity

  1. susnux commented on Feb 14, 2024

    @susnux
    Contributor

    It is expected as the viewer uses webdav to download the files. If that is not allowed we can not show them

  2. moritzthecat commented on Jun 28, 2024

    @moritzthecat

    It is expected as the viewer uses webdav to download the files. If that is not allowed we can not show them

    @susnux the WEBDAV dependecy is now better understood.

    replicating the test today came with same result above that also photos could not be shown if download disabled. Looks this is a NC architecture isseu then.

  3. mejo- commented on Apr 23, 2026

    @mejo-
    Member

    We should implement support for allowViewWithoutDownload in Text and support opening editing sessions when it's set. Relevant server PR that implemented this flag: nextcloud/server#53671.

    The restriction was added in #2776. I guess we have to add a check for the allowViewWithoutDownload config flag at ApiService.php::create().

    This code probably can go completely as DocumentService.php::checkSharePermission() no longer checks the config flag and no longer throws NotPermittedExecption. So this looks like dead code to me.

  4. moved this to 🧭 Planning evaluation (don't pick) in 📝 Productivity teamon Apr 23, 2026
  5. moritzthecat commented on Apr 24, 2026

    @moritzthecat

    We should implement support for allowViewWithoutDownload in Text and support opening editing sessions when it's set.

    @mejo- suggest to review a more general RBAC approach to include [viewing, downloading, commenting and tagging] as outlined here.

  6. self-assigned this
    on Apr 27, 2026
  7. moved this from 🧭 Planning evaluation (don't pick) to 📄 To do (~10 entries) in 📝 Productivity teamon Apr 27, 2026
  8. 4jNsY6fCVqZv commented on Oct 28, 2026

    @4jNsY6fCVqZv

    We should implement support for allowViewWithoutDownload in Text and support opening editing sessions when it's set.

    How complicated is it, to implement a solution for this?
    Today, as an admin, it took me a while to realise that it might be caused by Markdown as the file format.

  9. moved this from 📄 To do (~10 entries) to 🏗️ In progress in 📝 Productivity teamon Nov 9, 2026
  10. added 2 commits that reference this issue on Nov 10, 2026
    f4da63d
    f513ea7
  11. moved this from 🏗️ In progress to ☑️ Done in 📝 Productivity teamon Nov 10, 2026
  12. added 3 commits that reference this issue on Nov 10, 2026
    f1f68f0
    15e2e94
    54f1c60
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions