-
Notifications
You must be signed in to change notification settings - Fork 2.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add bug demonstration test for sending PUT request to other user's we…
…bdav endpoint
- Loading branch information
Showing
2 changed files
with
27 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
23 changes: 23 additions & 0 deletions
23
tests/acceptance/features/apiAuthWebDav/webDavPUTAuthOC10Issue39597.feature
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
@api @issue-39597 @skipOnOcV10.3 @skipOnOcV10.4 @skipOnOcV10.5 @skipOnOcis | ||
Feature: get file info using PUT | ||
|
||
Background: | ||
Given these users have been created with default attributes and without skeleton files: | ||
| username | | ||
| Alice | | ||
| Brian | | ||
And user "Alice" has uploaded file with content "some data" to "/textfile1.txt" | ||
And user "Alice" has created folder "/PARENT" | ||
And user "Alice" has uploaded file with content "some data" to "/PARENT/parent.txt" | ||
|
||
|
||
Scenario: send PUT requests to another user's webDav endpoints as normal user | ||
When user "Brian" requests these endpoints with "PUT" including body "doesnotmatter" about user "Alice" | ||
| endpoint | | ||
| /remote.php/dav/files/%username%/textfile1.txt | | ||
| /remote.php/dav/files/%username%/PARENT | | ||
Then the HTTP status code of responses on all endpoints should be "403" | ||
When user "Brian" requests these endpoints with "PUT" including body "doesnotmatter" about user "Alice" | ||
| endpoint | | ||
| /remote.php/dav/files/%username%/PARENT/parent.txt | | ||
Then the HTTP status code of responses on all endpoints should be "409" |