Skip to content

Commit

Permalink
Merge pull request #40010 from owncloud/allow-meta-400-status
Browse files Browse the repository at this point in the history
[tests-only] Allow 400 bad request for requests to meta endpoint that do not request meta-path-for-user
  • Loading branch information
phil-davis authored Apr 25, 2022
2 parents a78fccd + 7854be8 commit da04b0c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/acceptance/features/apiVersions/fileVersions.feature
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ Feature: dav-versions
And user "Alice" has uploaded file with content "123" to "/davtest.txt"
And we save it into "FILEID"
When user "Brian" sends HTTP method "PROPFIND" to URL "/remote.php/dav/meta/<<FILEID>>"
Then the HTTP status code should be "404"
Then the HTTP status code should be "400" or "404"

@files_sharing-app-required @notToImplementOnOCIS
Scenario: User can access meta folder of a file which is owned by somebody else but shared with that user
Expand Down Expand Up @@ -385,16 +385,16 @@ Feature: dav-versions
And the number of versions should be "3"


Scenario: User cannot access meta folder of a file which does not exists
Scenario: User cannot access meta folder of a file which does not exist
Given user "Brian" has been created with default attributes and without skeleton files
When user "Brian" sends HTTP method "PROPFIND" to URL "/remote.php/dav/meta/MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU2OjhjY2QyNzUxLTkwYTQtNDBmMi1iOWYzLTYxZWRmODQ0MjFmNA=="
Then the HTTP status code should be "404"
Then the HTTP status code should be "400" or "404"


Scenario Outline: User cannot access meta folder of a file with invalid fileid
Given user "Brian" has been created with default attributes and without skeleton files
When user "Brian" sends HTTP method "PROPFIND" to URL "/remote.php/dav/meta/<file-id>/v"
Then the HTTP status code should be "404"
Then the HTTP status code should be "400" or "404"
Examples:
| file-id | decoded-value | comment |
| MTI4NGQyMzgtYWE5Mi00MmNlLWJkYzQtMGIwMDAwMDA5MTU3PThjY2QyNzUxLTkwYTQtNDBmMi1iOWYzLTYxZWRmODQ0MjFmNA== | 1284d238-aa92-42ce-bdc4-0b0000009157=8ccd2751-90a4-40f2-b9f3-61edf84421f4 | with = sign |
Expand Down

0 comments on commit da04b0c

Please sign in to comment.