Modifications to avoid old dav path

Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
Sergio Bertolín 2016-09-20 15:16:39 +00:00 committed by Roeland Jago Douma
parent 88b0af4211
commit d81f4ea53c
No known key found for this signature in database
GPG Key ID: 1E152838F164D13B
2 changed files with 5 additions and 5 deletions

View File

@ -368,7 +368,7 @@ trait WebDav {
}
public function makeSabrePath($path) {
return $this->encodePath($this->davPath . '/' . ltrim($path, '/'));
return $this->encodePath($this->davPath . $this->getFilesPath() . ltrim($path, '/'));
}
public function getSabreClient($user) {
@ -584,7 +584,7 @@ trait WebDav {
];
}
$response = $client->proppatch($this->davPath . '/' . ltrim($path, '/'), $properties, $folderDepth);
$response = $client->proppatch($this->davPath . $this->getFilesPath() . ltrim($path, '/'), $properties, $folderDepth);
return $response;
}

View File

@ -49,7 +49,7 @@ Feature: favorite
|{http://owncloud.org/ns}favorite|
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1"
Scenario: Favorite and unfavorite a folder
Scenario: Favorite and unfavorite a folder new endpoint
Given using dav path "remote.php/dav"
And As an "admin"
And user "user0" exists
@ -59,7 +59,7 @@ Feature: favorite
|{http://owncloud.org/ns}favorite|
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value ""
Scenario: Favorite a file
Scenario: Favorite a file new endpoint
Given using dav path "remote.php/dav"
And As an "admin"
And user "user0" exists
@ -68,7 +68,7 @@ Feature: favorite
|{http://owncloud.org/ns}favorite|
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1"
Scenario: Favorite and unfavorite a file
Scenario: Favorite and unfavorite a file new endpoint
Given using dav path "remote.php/dav"
And As an "admin"
And user "user0" exists