diff options
author | Roeland Douma <rullzer@users.noreply.github.com> | 2016-04-14 11:50:27 +0200 |
---|---|---|
committer | Thomas Müller <DeepDiver1975@users.noreply.github.com> | 2016-04-14 11:50:27 +0200 |
commit | 411fac892a86814b0625cfcbedbc2d575308cbeb (patch) | |
tree | 6154916fb30a5f88f53e49aca830e97b81baecd8 /build | |
parent | 25fff15487aadad09acc2ba9cd8d2b72245308ee (diff) | |
download | nextcloud-server-411fac892a86814b0625cfcbedbc2d575308cbeb.tar.gz nextcloud-server-411fac892a86814b0625cfcbedbc2d575308cbeb.zip |
On mount make sure multiple shares with same target map to unique ones (#23937)
Scenario:
user0 shares a folder 'foo' with user2
user1 shares a folder 'foo' with user2
user2 logs in
Before: show only the 'foo' from user1
After: show both.
* Added intergration tests
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/sharing-v1.feature | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature index 83b72cc7449..cc591dd51d6 100644 --- a/build/integration/features/sharing-v1.feature +++ b/build/integration/features/sharing-v1.feature @@ -670,3 +670,15 @@ Feature: sharing When as "user1" gets properties of folder "/tmp" with |{http://owncloud.org/ns}share-permissions| Then the single response should contain a property "{http://owncloud.org/ns}share-permissions" with value "15" + + Scenario: unique target names for incomming shares + Given user "user0" exists + And user "user1" exists + And user "user2" exists + And user "user0" created a folder "/foo" + And user "user1" created a folder "/foo" + When file "/foo" of user "user0" is shared with user "user2" + And file "/foo" of user "user1" is shared with user "user2" + Then user "user2" should see following elements + | /foo/ | + | /foo%20(2)/ | |