aboutsummaryrefslogtreecommitdiffstats
path: root/build/integration
diff options
context:
space:
mode:
authorStephan Orbaugh <62374139+sorbaugh@users.noreply.github.com>2025-01-07 10:24:06 +0100
committerGitHub <noreply@github.com>2025-01-07 10:24:06 +0100
commitb64b106c13bc7082bab5e8111e7e231aaa6efde4 (patch)
treec5210570ed0a375b31e318f986c7d4fe36297ac0 /build/integration
parent3ab0d672b118a419f1940428ea392059d5ce8784 (diff)
parent9193cd664ea9e229765aedb77eadff121ed521c9 (diff)
downloadnextcloud-server-b64b106c13bc7082bab5e8111e7e231aaa6efde4.tar.gz
nextcloud-server-b64b106c13bc7082bab5e8111e7e231aaa6efde4.zip
Merge pull request #49966 from nextcloud/block-dav-move-parent
fix: block moving files to it's own parent with dav
Diffstat (limited to 'build/integration')
-rw-r--r--build/integration/dav_features/dav-v2.feature10
-rw-r--r--build/integration/dav_features/webdav-related.feature10
2 files changed, 20 insertions, 0 deletions
diff --git a/build/integration/dav_features/dav-v2.feature b/build/integration/dav_features/dav-v2.feature
index 02d90242a05..2c74030c462 100644
--- a/build/integration/dav_features/dav-v2.feature
+++ b/build/integration/dav_features/dav-v2.feature
@@ -12,6 +12,16 @@ Feature: dav-v2
When User "user0" moves file "/textfile0.txt" to "/FOLDER/textfile0.txt"
Then the HTTP status code should be "201"
+ Scenario: Moving and overwriting it's parent
+ Given using new dav path
+ And As an "admin"
+ And user "user0" exists
+ And As an "user0"
+ And user "user0" created a folder "/test"
+ And user "user0" created a folder "/test/test"
+ When User "user0" moves file "/test/test" to "/test"
+ Then the HTTP status code should be "403"
+
Scenario: download a file with range using new endpoint
Given using new dav path
And As an "admin"
diff --git a/build/integration/dav_features/webdav-related.feature b/build/integration/dav_features/webdav-related.feature
index fdf633bd580..f97cc8f6f71 100644
--- a/build/integration/dav_features/webdav-related.feature
+++ b/build/integration/dav_features/webdav-related.feature
@@ -38,6 +38,16 @@ Feature: webdav-related
Then the HTTP status code should be "204"
And Downloaded content when downloading file "/textfile0.txt" with range "bytes=0-6" should be "Welcome"
+ Scenario: Moving and overwriting it's parent
+ Given using old dav path
+ And As an "admin"
+ And user "user0" exists
+ And As an "user0"
+ And user "user0" created a folder "/test"
+ And user "user0" created a folder "/test/test"
+ When User "user0" moves file "/test/test" to "/test"
+ Then the HTTP status code should be "403"
+
Scenario: Moving a file to a folder with no permissions
Given using old dav path
And As an "admin"