spegling av
https://github.com/nextcloud/server.git
synced 2024-08-25 06:08:18 +02:00
Fix forbidden backslash DAV integration tests
This commit is contained in:
förälder
7b6e4d0dd2
incheckning
d379b197d5
@ -541,40 +541,40 @@ Feature: webdav-related
|
||||
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"
|
||||
When User "user0" moves folder "/testshare" to "/%5C"
|
||||
Then the HTTP status code should be "400"
|
||||
|
||||
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"
|
||||
When User "user0" moves folder "/testshare" to "/%5Ctestshare"
|
||||
Then the HTTP status code should be "400"
|
||||
|
||||
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"
|
||||
When User "user0" moves folder "/testshare" to "/hola%5Chola"
|
||||
Then the HTTP status code should be "400"
|
||||
|
||||
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"
|
||||
When User "user0" moves folder "/testshare" to "/%5C"
|
||||
Then the HTTP status code should be "400"
|
||||
|
||||
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"
|
||||
When User "user0" moves folder "/testshare" to "/%5Ctestshare"
|
||||
Then the HTTP status code should be "400"
|
||||
|
||||
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"
|
||||
When User "user0" moves folder "/testshare" to "/hola%5Chola"
|
||||
Then the HTTP status code should be "400"
|
||||
|
Laddar…
Referens i nytt ärende
Block a user