Skip to content
This repository has been archived by the owner on Jan 18, 2021. It is now read-only.

when sharing a folder to a user the default permissions are "1" #46

Closed
individual-it opened this issue Jan 28, 2020 · 9 comments
Closed
Assignees
Labels

Comments

@individual-it
Copy link
Member

default permissions when sharing a folder to a user should be 31

@butonic
Copy link
Member

butonic commented Mar 20, 2020

related discussion: owncloud/core#11707

@pmaier1 should we make the default configurable in ocis? or stick to rw? or go with a more secure r?

@pmaier1
Copy link

pmaier1 commented Apr 3, 2020

@pmaier1 should we make the default configurable in ocis? or stick to rw? or go with a more secure r?

The reason for having configurable default permissions in oC10 was that users can only change the permissions after creating a share, meaning there's always a time frame where the recipient has default permissions until the owner changes them. As we took care of this in Phoenix by allowing users to set all the share properties before creating a share this has less importance. It would make a good feature to allow setting a default role for user shares but right now I consider this as nice-to-have. If we have to set a default, I'd take the secure read-only way.

@PVince81
Copy link
Contributor

PVince81 commented May 7, 2020

If we have to set a default, I'd take the secure read-only way.

in this case it means we'd need to adjust the test to accept "1" as default

@individual-it
Copy link
Member Author

ToDo:

  • find an API test that checks the default permissions in oC10 (if there is none add one)
  • create a separate test for ocis, that checks that the default permission is 1 in ocic, tag with this issue (but don't write a note about deleting the scenario when fixing the issue, because it will not be fixed)

@phil-davis
Copy link
Contributor

https://github.com/owncloud/core/blob/master/tests/acceptance/features/apiShareManagementBasic/createShare.feature around line 198 onwards:

Scenario Outline: Creating a share of a folder with a user, the default permissions are all permissions(31)

https://github.com/owncloud/core/blob/master/tests/acceptance/features/webUISharingInternalUsers2/adminDisablesSharePermissions.feature
has scenarios where the admin adjusts the default sharing permissions.

@C0rby C0rby self-assigned this May 18, 2020
@PVince81
Copy link
Contributor

@C0rby if to review, can you link to the PR here ? thanks

@C0rby
Copy link
Contributor

C0rby commented May 19, 2020

Right now Hugo still has to review it upstream.
Now thinking of it that means I should already put this ticket to To Review.

@PVince81
Copy link
Contributor

PVince81 commented May 19, 2020

@C0rby can you link to the upstream PR/ticket ? else it's difficult to find when reading this ticket here

@C0rby
Copy link
Contributor

C0rby commented May 19, 2020

I must have forgot this ticket, because I linked to all other ones.

@C0rby C0rby closed this as completed May 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

6 participants