diff options
author | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-25 20:22:35 +0100 |
---|---|---|
committer | Roeland Jago Douma <rullzer@owncloud.com> | 2016-02-25 20:40:30 +0100 |
commit | 8213d5df4f40410f851da31082bbb1fb8d84dd1e (patch) | |
tree | 5cb4c2bf7612ca317abc02b73512170624a5b2e6 /build | |
parent | 3772a8acdb611b441bf2ea4fa3e0a37110a9d69f (diff) | |
download | nextcloud-server-8213d5df4f40410f851da31082bbb1fb8d84dd1e.tar.gz nextcloud-server-8213d5df4f40410f851da31082bbb1fb8d84dd1e.zip |
Do not allow sharing of the root folder
Sharing of the users root folder should not be allowed as it is very
weird UX. Also many of our clients have no proper way of displaying
this.
Added unit test
Also added intergration tests to make sure we won't allow it in the
future.
Diffstat (limited to 'build')
-rw-r--r-- | build/integration/features/sharing-v1.feature | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/build/integration/features/sharing-v1.feature b/build/integration/features/sharing-v1.feature index e16de8b6b11..462915cf5ba 100644 --- a/build/integration/features/sharing-v1.feature +++ b/build/integration/features/sharing-v1.feature @@ -506,3 +506,11 @@ Feature: sharing And file "myfile.txt" of user "user0" is shared with user "user1" When User "user1" uploads file "data/textfile.txt" to "/myfile.txt" Then the HTTP status code should be "204" + + Scenario: Don't allow sharing of the root + Given user "user0" exists + And As an "user0" + When creating a share with + | path | / | + | shareType | 3 | + Then the OCS status code should be "403"
\ No newline at end of file |