diff --git a/tests/acceptance/features/apiAuthWebDav/webDavMCKOLAuthOC10Issue40485.feature b/tests/acceptance/features/apiAuthWebDav/webDavMCKOLAuthOC10Issue40485.feature index 4bced328e2cc..1c10e382d262 100644 --- a/tests/acceptance/features/apiAuthWebDav/webDavMCKOLAuthOC10Issue40485.feature +++ b/tests/acceptance/features/apiAuthWebDav/webDavMCKOLAuthOC10Issue40485.feature @@ -16,4 +16,15 @@ Feature: create folder using MKCOL | /remote.php/dav/files/%username%/PARENT | | /remote.php/dav/files/%username%/does-not-exist | | /remote.php/dav/files/%username%/PARENT/parent.txt | - Then the HTTP status code of responses on each endpoint should be "403, 403, 403, 409" respectively \ No newline at end of file + Then the HTTP status code of responses on each endpoint should be "403, 403, 403, 409" respectively + + + Scenario: send MKCOL requests to non-existent user's webDav endpoints as normal user + Given user "Brian" has been created with default attributes and without skeleton files + When user "Brian" requests these endpoints with "MKCOL" including body "" about user "non-existent-user" + | endpoint | + | /remote.php/dav/files/non-existent-user/textfile0.txt | + | /remote.php/dav/files/non-existent-user/PARENT | + | /remote.php/dav/files/non-existent-user/does-not-exist | + | /remote.php/dav/files/non-existent-user/PARENT/parent.txt | + Then the HTTP status code of responses on all endpoints should be "409" \ No newline at end of file diff --git a/tests/acceptance/features/apiAuthWebDav/webDavMKCOLAuth.feature b/tests/acceptance/features/apiAuthWebDav/webDavMKCOLAuth.feature index 29b59e4ccbf8..9f49fd4d650d 100644 --- a/tests/acceptance/features/apiAuthWebDav/webDavMKCOLAuth.feature +++ b/tests/acceptance/features/apiAuthWebDav/webDavMKCOLAuth.feature @@ -48,7 +48,7 @@ Feature: create folder using MKCOL | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "401" - @skipOnOcV10 @issue-ocis-reva-9 @issue-ocis-reva-197 + @skipOnOcV10 @issue-ocis-5049 @issue-ocis-reva-9 @issue-ocis-reva-197 Scenario: send MKCOL requests to another user's webDav endpoints as normal user Given user "Brian" has been created with default attributes and without skeleton files When user "Brian" requests these endpoints with "MKCOL" including body "" about user "Alice" @@ -59,14 +59,36 @@ Feature: create folder using MKCOL | /remote.php/dav/files/%username%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "404" + @skipOnOcV10 @issue-ocis-5049 @issue-ocis-reva-9 @issue-ocis-reva-197 + Scenario: send MKCOL requests to non-existent user's webDav endpoints as normal user + Given user "Brian" has been created with default attributes and without skeleton files + When user "Brian" requests these endpoints with "MKCOL" including body "" about user "non-existent-user" + | endpoint | + | /remote.php/dav/files/non-existent-user/textfile0.txt | + | /remote.php/dav/files/non-existent-user/PARENT | + | /remote.php/dav/files/non-existent-user/does-not-exist | + | /remote.php/dav/files/non-existent-user/PARENT/parent.txt | + Then the HTTP status code of responses on all endpoints should be "404" + @skipOnOcV10 @personalSpace @issue-ocis-reva-9 @issue-ocis-reva-197 Scenario: send MKCOL requests to another user's webDav endpoints as normal user using the spaces WebDAV API Given user "Brian" has been created with default attributes and without skeleton files When user "Brian" requests these endpoints with "MKCOL" including body "" about user "Alice" - | endpoint | - | /remote.php/dav/spaces/%spaceid%/textfile0.txt | - | /remote.php/dav/spaces/%spaceid%/PARENT | - | /remote.php/dav/spaces/%spaceid%/does-not-exist | + | endpoint | + | /remote.php/dav/spaces/%spaceid%/textfile0.txt | + | /remote.php/dav/spaces/%spaceid%/PARENT | + | /remote.php/dav/spaces/%spaceid%/does-not-exist | + | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | + Then the HTTP status code of responses on all endpoints should be "404" + + @skipOnOcV10 @issue-ocis-5049 @personalSpace @issue-ocis-reva-9 @issue-ocis-reva-197 + Scenario: send MKCOL requests to non-existent user's webDav endpoints as normal user using the spaces WebDAV API + Given user "Brian" has been created with default attributes and without skeleton files + When user "Brian" requests these endpoints with "MKCOL" including body "" about user "non-existent-user" + | endpoint | + | /remote.php/dav/spaces/%spaceid%/textfile0.txt | + | /remote.php/dav/spaces/%spaceid%/PARENT | + | /remote.php/dav/spaces/%spaceid%/does-not-exist | | /remote.php/dav/spaces/%spaceid%/PARENT/parent.txt | Then the HTTP status code of responses on all endpoints should be "404"