Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/build
diff options
context:
space:
mode:
authorSergio Bertolin <sbertolin@solidgear.es>2017-03-29 12:21:13 +0300
committerJoas Schilling <coding@schilljs.com>2017-04-26 16:29:01 +0300
commita761d4cce725435036c980667109ddb25126aa31 (patch)
tree5cf2dc89668cd36a969fc6f80a109bb3b08f0110 /build
parent9bff66e68d9b2a5712eae406b54d103b51a8c7e9 (diff)
Added test cases from core 16825
Diffstat (limited to 'build')
-rw-r--r--build/integration/features/webdav-related.feature41
1 files changed, 41 insertions, 0 deletions
diff --git a/build/integration/features/webdav-related.feature b/build/integration/features/webdav-related.feature
index 14033a69a72..d0eb3fb4bf4 100644
--- a/build/integration/features/webdav-related.feature
+++ b/build/integration/features/webdav-related.feature
@@ -537,3 +537,44 @@ Feature: webdav-related
When user "user0" moves new chunk file with id "chunking-42" to "/existingFile.txt"
Then User "user0" checks id of file "/existingFile.txt"
+ Scenario: Renaming a folder to a backslash encoded should return an error using old endpoint
+ Given using old dav path
+ And user "user0" exists
+ And user "user0" created a folder "/testshare"
+ When User "user0" moves folder "/testshare" to "/%2F"
+ Then the HTTP status code should be "403"
+
+ Scenario: Renaming a folder beginning with a backslash encoded should return an error using old endpoint
+ Given using old dav path
+ And user "user0" exists
+ And user "user0" created a folder "/testshare"
+ When User "user0" moves folder "/testshare" to "/%2Ftestshare"
+ Then the HTTP status code should be "403"
+
+ Scenario: Renaming a folder including a backslash encoded should return an error using old endpoint
+ Given using old dav path
+ And user "user0" exists
+ And user "user0" created a folder "/testshare"
+ When User "user0" moves folder "/testshare" to "/hola%2Fhola"
+ Then the HTTP status code should be "403"
+
+ Scenario: Renaming a folder to a backslash encoded should return an error using new endpoint
+ Given using new dav path
+ And user "user0" exists
+ And user "user0" created a folder "/testshare"
+ When User "user0" moves folder "/testshare" to "/%2F"
+ Then the HTTP status code should be "403"
+
+ Scenario: Renaming a folder beginning with a backslash encoded should return an error using new endpoint
+ Given using new dav path
+ And user "user0" exists
+ And user "user0" created a folder "/testshare"
+ When User "user0" moves folder "/testshare" to "/%2Ftestshare"
+ Then the HTTP status code should be "403"
+
+ Scenario: Renaming a folder including a backslash encoded should return an error using new endpoint
+ Given using new dav path
+ And user "user0" exists
+ And user "user0" created a folder "/testshare"
+ When User "user0" moves folder "/testshare" to "/hola%2Fhola"
+ Then the HTTP status code should be "403"