text icon indicating copy to clipboard operation
text copied to clipboard

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

Open schiessle opened this issue 2 years ago • 2 comments

⚠️ 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

schiessle avatar Dec 13 '23 21:12 schiessle

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

susnux avatar Feb 14 '24 01:02 susnux

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.

moritzthecat avatar Jun 28 '24 07:06 moritzthecat