Skip to content

Conversation

@julien-nc
Copy link
Member

When "Administration -> Share -> Public upload" admin setting is disabled:

  • We refuse to
    • create a share with update permissions
    • add update permissions to an existing share
  • We remove PERMISSION_CREATE and PERMISSION_UPDATE when getting the share permissions

It makes perfect sense when sharing a directory but not when sharing a file which can then only be accessed in read-only by Text, NC Office and OnlyOffice.

If this is the intended behaviour, we should at least make it very explicit in the admin settings.

@julien-nc julien-nc added this to the Nextcloud 24.0.3 milestone Jun 21, 2022
@julien-nc julien-nc requested review from a team, ArtificialOwl, CarlSchwan and blizzz and removed request for a team June 21, 2022 12:35
@blizzz blizzz requested review from artonge and skjnldsv June 24, 2022 08:52
@skjnldsv skjnldsv mentioned this pull request Jul 5, 2022
18 tasks
@blizzz blizzz modified the milestones: Nextcloud 24.0.3, Nextcloud 25 Jul 6, 2022
@blizzz
Copy link
Member

blizzz commented Jul 6, 2022

milestone was wrong, master is 25.

Copy link
Member

@PVince81 PVince81 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

@PVince81
Copy link
Member

/rebase

@PVince81 PVince81 added 4. to release Ready to be released and/or waiting for tests to finish and removed 3. to review Waiting for reviews labels Jul 27, 2022
@nextcloud-command nextcloud-command force-pushed the fix/noid/permission-update-allow-public-uploads branch from ca48986 to 5b70820 Compare July 27, 2022 15:11
@artonge
Copy link
Contributor

artonge commented Jul 28, 2022

PHPUnit failure:

  1. Test\Share20\ManagerTest::testLinkCreateChecksNoPublicUpload
    Failed asserting that exception message '' contains 'Public upload is not allowed'.

@julien-nc julien-nc force-pushed the fix/noid/permission-update-allow-public-uploads branch from 5b70820 to 66d09cc Compare August 1, 2022 13:27
Signed-off-by: Julien Veyssier <[email protected]>
@julien-nc julien-nc force-pushed the fix/noid/permission-update-allow-public-uploads branch from 66d09cc to acc68e9 Compare August 1, 2022 23:35
@julien-nc
Copy link
Member Author

julien-nc commented Aug 1, 2022

PHPUnit failure:

  1. Test\Share20\ManagerTest::testLinkCreateChecksNoPublicUpload
    Failed asserting that exception message '' contains 'Public upload is not allowed'.

@artonge I duplicated this test to check this works with files and fails with folders.

I also fixed the 3 other failing tests for which the share was just missing a target user and a Node. This is independent from the changes in this PR.

@juliusknorr
Copy link
Member

Failure unrelated

@juliusknorr juliusknorr merged commit 9475cc0 into master Aug 2, 2022
@juliusknorr juliusknorr deleted the fix/noid/permission-update-allow-public-uploads branch August 2, 2022 14:49
@juliusknorr
Copy link
Member

/backport to stable24

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

Labels

4. to release Ready to be released and/or waiting for tests to finish bug feature: sharing

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants