From 411fac892a86814b0625cfcbedbc2d575308cbeb Mon Sep 17 00:00:00 2001 From: Roeland Douma Date: Thu, 14 Apr 2016 11:50:27 +0200 Subject: 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 --- build/integration/features/sharing-v1.feature | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'build/integration') 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)/ | -- cgit v1.2.3