[tests-only] fix MOVE with another user dav path scenarios (#8460)

* test(api): fix MOVE with another user dav path scenarios

* test(api): fix php code style

* test(api): fix dav paths

* test(api): fix dav paths
This commit is contained in:
Sawjan Gurung
2024-02-19 15:46:34 +05:45
committed by GitHub
parent 71b6cbc817
commit 0df64c26cd
8 changed files with 34 additions and 32 deletions
+4 -4
View File
@@ -661,7 +661,7 @@ class WebDavHelper {
$urlParameter = \http_build_query($urlParameter, '', '&');
$path .= '?' . $urlParameter;
}
$fullUrl = self::sanitizeUrl($baseUrl . $davPath . $path);
$fullUrl = self::sanitizeUrl($baseUrl . "/$davPath" . $path);
if ($authType === 'bearer') {
$headers['Authorization'] = 'Bearer ' . $password;
@@ -750,12 +750,12 @@ class WebDavHelper {
// return spaces root path if spaceid is null
// REPORT request uses spaces root path
if ($spaceId === null) {
return "/remote.php/dav/spaces/";
return "remote.php/dav/spaces/";
}
if ($type === "trash-bin") {
return "/remote.php/dav/spaces/trash-bin/" . $spaceId . '/';
return "remote.php/dav/spaces/trash-bin/" . $spaceId . '/';
}
return "/remote.php/dav/spaces/" . $spaceId . '/';
return "remote.php/dav/spaces/" . $spaceId . '/';
} else {
if ($davPathVersionToUse === self::DAV_VERSION_OLD) {
if ($type === "trash-bin") {