Skip to content

[sharing] group shares - #10107

Merged
LukasReschke merged 17 commits into
masterfrom
sharing_group_shares
Sep 29, 2014
Merged

LukasReschke merged 17 commits into
masterfrom
sharing_group_shares

Conversation

@schiessle

Copy link
Copy Markdown
Contributor

If a file is shared to multiple groups and to individual users it can happen that a user will end up with multiple mount points. The idea is to group it so that the user will always see only one mount point which adds the permission from every share. Files shared before this changes will not change to avoid confusions because files/folders disappear "magically".

We receive regularly questions regarding this behavior, e.g. #10003

fix #9724
fix #10678

  • what happens if the user decided to unshare from self? In this case we need to unshare all shares not only the mounted one (maybe the share can have a flag "grouped" and a list of shares which are grouped with it)
  • the recipient renames the share and afterwards the owner unshares this particular share. In this case the grouping will be based on a different share and the rename will be lost -> make sure that the rename operation renames all grouped shares
  • don't create unique name if the new share references the same file/folder, instead use the name already in use.

@PVince81

PVince81 commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

@karlitschek @MTRichards @craigpg from what I remember discussing with @schiesbn, this might be a risky fix, so not sure whether we'd want to backport this once it's done.

@MTRichards

Copy link
Copy Markdown
Contributor

If a file is shared to multiple groups and to individual users it can happen that a user will end up with multiple mount points. The idea is to group it so that the user will always see only one mount point which adds the permission from every share.

As a user, this is the behavior I would expect. Anything else will show up as a bug report and we will be forced to apply this anyway.

I can't judge the risk, but I do know getting the same folder as a different mount for the same files would be a real bug. We should consider backporting this.

@PVince81

PVince81 commented Sep 9, 2014

Copy link
Copy Markdown
Contributor

I'll check back with @schiesbn next week and we'll try and evaluate the risk / mitigate it if possible.

@craigpg craigpg modified the milestones: 2014-sprint-05-next, 2014-sprint-04-current Sep 15, 2014
@PVince81 PVince81 mentioned this pull request Sep 16, 2014
@schiessle

Copy link
Copy Markdown
Contributor Author

@georgehrke maybe you can also have a look at it and test it with the calendar to make sure that it doesn't create any issues for you.

@schiessle

Copy link
Copy Markdown
Contributor Author

This is ready for review

@schiessle schiessle changed the title [sharing] group shares (WIP) [sharing] group shares Sep 22, 2014
…ay all checks are executed, e.g. to check if the share is really visible
…sure that we always use this permission, except if the user permission is '0' because in this case the user unshared the group share from self
@schiessle

Copy link
Copy Markdown
Contributor Author
  • d242e51 needs to be backported to stable6

@schiessle

Copy link
Copy Markdown
Contributor Author

@PVince81 all your bugs are fixed. Maybe you can have a final look. Thanks!

@PVince81

Copy link
Copy Markdown
Contributor

👍

@schiessle

Copy link
Copy Markdown
Contributor Author

This PR needs a second reviewer... maybe @LukasReschke all your comments are addressed... or @MorrisJobke @DeepDiver1975 @th3fallen ? Thanks!

@LukasReschke

Copy link
Copy Markdown
Contributor

Works fine 👍

@scrutinizer-notifier

Copy link
Copy Markdown

The inspection completed: 21 new issues, 25 updated code elements

@LukasReschke

Copy link
Copy Markdown
Contributor

Failing test seems unrelated - let's test it again anyways:

�[31mPhantomJS 1.9.7 (Linux) OCA.Files.App tests URL handling navigation clicking on navigation sends "show" and "urlChanged" event FAILED�[39m
    Expected false to equal true.
    Expected false to equal true.

@LukasReschke

Copy link
Copy Markdown
Contributor

@owncloud-bot Retest this please.

@craigpg craigpg modified the milestones: 2014-sprint-06-next, 2014-sprint-05-current Sep 29, 2014
@schiessle

Copy link
Copy Markdown
Contributor Author

yes, seems to be unrelated. Also locally all test run fine. Let's wait until Jenkins finished and then merge it.

@ghost

ghost commented Sep 29, 2014

Copy link
Copy Markdown

🚀 Test PASSed. 🚀
Refer to this link for build results (access rights to CI server needed):
https://ci.owncloud.org//job/pull-request-analyser/7616/

LukasReschke added a commit that referenced this pull request Sep 29, 2014
@LukasReschke
LukasReschke merged commit 8c8e5c1 into master Sep 29, 2014
@LukasReschke
LukasReschke deleted the sharing_group_shares branch September 29, 2014 18:26
@LukasReschke

Copy link
Copy Markdown
Contributor

@schiesbn Can you do the necessary backporting to stable7?

@schiessle

Copy link
Copy Markdown
Contributor Author

stable7: #11363

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Recurring change of file_target in oc_share A folder shared with two groups appears twice for an user in these two groups.

6 participants