diff --git a/tests/acceptance/features/apiWebdavMove1/moveFolder.feature b/tests/acceptance/features/apiWebdavMove1/moveFolder.feature index 32d85af5ddc6..d30258541db0 100644 --- a/tests/acceptance/features/apiWebdavMove1/moveFolder.feature +++ b/tests/acceptance/features/apiWebdavMove1/moveFolder.feature @@ -8,7 +8,7 @@ Feature: move (rename) folder Given using OCS API version "1" And user "Alice" has been created with default attributes and without skeleton files - @issue-ocis-reva-211 + Scenario Outline: Renaming a folder to a backslash should return an error Given using DAV path And user "Alice" has created folder "/testshare" @@ -21,7 +21,12 @@ Feature: move (rename) folder | old | | new | - @issue-ocis-reva-211 + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + + Scenario Outline: Renaming a folder beginning with a backslash should return an error Given using DAV path And user "Alice" has created folder "/testshare" @@ -34,7 +39,12 @@ Feature: move (rename) folder | old | | new | - @issue-ocis-reva-211 + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + + Scenario Outline: Renaming a folder including a backslash encoded should return an error Given using DAV path And user "Alice" has created folder "/testshare" @@ -47,6 +57,12 @@ Feature: move (rename) folder | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + + Scenario Outline: Move a folder into an other one Given using DAV path And user "Alice" has created folder "/testshare" @@ -62,6 +78,12 @@ Feature: move (rename) folder | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + + Scenario Outline: Move a folder into a nonexistent one Given using DAV path And user "Alice" has created folder "/testshare" @@ -74,6 +96,12 @@ Feature: move (rename) folder | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + + Scenario Outline: renaming folder with dots in the path Given using DAV path And user "Alice" has created folder "" @@ -94,6 +122,15 @@ Feature: move (rename) folder | new | /... | | new | /..upload | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | folder_name | + | spaces | /upload. | + | spaces | /upload.1 | + | spaces | /upload...1.. | + | spaces | /... | + | spaces | /..upload | + @issue-ocis-3023 Scenario Outline: Moving a folder into a sub-folder of itself Given using DAV path @@ -109,3 +146,8 @@ Feature: move (rename) folder | dav_version | | old | | new | + + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | diff --git a/tests/acceptance/features/apiWebdavMove1/moveFolderToBlacklistedName.feature b/tests/acceptance/features/apiWebdavMove1/moveFolderToBlacklistedName.feature index 085d158235fc..8fe71b8ef52b 100644 --- a/tests/acceptance/features/apiWebdavMove1/moveFolderToBlacklistedName.feature +++ b/tests/acceptance/features/apiWebdavMove1/moveFolderToBlacklistedName.feature @@ -8,7 +8,7 @@ Feature: users cannot move (rename) a folder to a blacklisted name Given using OCS API version "1" And user "Alice" has been created with default attributes and without skeleton files - @issue-ocis-reva-211 + Scenario Outline: Rename a folder to a name that is banned by default Given using DAV path And user "Alice" has created folder "/testshare" @@ -21,6 +21,11 @@ Feature: users cannot move (rename) a folder to a blacklisted name | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + Scenario Outline: Rename a folder to a banned name Given using DAV path @@ -35,6 +40,11 @@ Feature: users cannot move (rename) a folder to a blacklisted name | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + @skipOnOcV10.3 Scenario Outline: rename a folder to a folder name that matches (or not) blacklisted_files_regex Given using DAV path @@ -70,3 +80,8 @@ Feature: users cannot move (rename) a folder to a blacklisted name | dav_version | | old | | new | + + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | diff --git a/tests/acceptance/features/apiWebdavMove1/moveFolderToExcludedDirectory.feature b/tests/acceptance/features/apiWebdavMove1/moveFolderToExcludedDirectory.feature index 7ec3abf267d8..d30b1442616a 100644 --- a/tests/acceptance/features/apiWebdavMove1/moveFolderToExcludedDirectory.feature +++ b/tests/acceptance/features/apiWebdavMove1/moveFolderToExcludedDirectory.feature @@ -8,6 +8,7 @@ Feature: users cannot move (rename) a folder to or into an excluded directory Given using OCS API version "1" And user "Alice" has been created with default attributes and without skeleton files + Scenario Outline: Rename a folder to an excluded directory name Given using DAV path And user "Alice" has created folder "/testshare" @@ -21,6 +22,12 @@ Feature: users cannot move (rename) a folder to or into an excluded directory | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + + Scenario Outline: Rename a folder to an excluded directory name inside a parent directory Given using DAV path And user "Alice" has created folder "/testshare" @@ -35,6 +42,11 @@ Feature: users cannot move (rename) a folder to or into an excluded directory | old | | new | + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | + @skipOnOcV10.3 Scenario Outline: rename a folder to a folder name that matches (or not) excluded_directories_regex Given using DAV path @@ -71,3 +83,8 @@ Feature: users cannot move (rename) a folder to or into an excluded directory | dav_version | | old | | new | + + @skipOnOcV10 @personalSpace + Examples: + | dav_version | + | spaces | diff --git a/tests/acceptance/features/bootstrap/WebDav.php b/tests/acceptance/features/bootstrap/WebDav.php index 632024602479..d877d4c000aa 100644 --- a/tests/acceptance/features/bootstrap/WebDav.php +++ b/tests/acceptance/features/bootstrap/WebDav.php @@ -286,7 +286,7 @@ public function usingSpacesDavPath():void { public function getFullDavFilesPath(string $user):string { if ($this->getDavPathVersion() === WebDavHelper::DAV_VERSION_SPACES) { $spaceId = $this->getPersonalSpaceIdForUser($user); - $spaceDavPath = "dav/spaces/users/" . $spaceId . '/'; + $spaceDavPath = "dav/spaces/" . $spaceId . '/'; $path = $this->getBasePath() . "/" . $spaceDavPath; } else {