Skip to content

Sharing behaviour change in 9.0 - #60

Merged
moscicki merged 5 commits into
cernbox:masterfrom
owncloud:cern-sharing-2.0
Nov 10, 2017
Merged

moscicki merged 5 commits into
cernbox:masterfrom
owncloud:cern-sharing-2.0

Conversation

@nickvergessen

Copy link
Copy Markdown
Contributor

In 9.0 ownCloud changes how reshares are handled.

  1. User A shares file to User B
  2. User B shares the same file to User C
  3. User A removes User B from the share list

pre 9.0

User C can not see the file anymore

9.0+

User C still has the file shared

Therefor the tests need to be adjusted to reflect that behaviour:

  • I added a method to allow comparing the owncloud version, so we can make sure that works as intended for each version and we don't need to duplicate all the tests with pre and post 9.0 logic.
  • I modified the check for "sharing failed" to rely on the status code (403) rather then the message, because that was changed as well:
    • Previous: You are not allowed to share /TEST_FILE_USER_RESHARE.dat
    • New: Path is not shareable

@moscicki

ref owncloud#140

@moscicki

Copy link
Copy Markdown
Contributor

Thanks for the update.

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants