Modifications to avoid old dav path
Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
This commit is contained in:
parent
88b0af4211
commit
d81f4ea53c
|
@ -368,7 +368,7 @@ trait WebDav {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function makeSabrePath($path) {
|
public function makeSabrePath($path) {
|
||||||
return $this->encodePath($this->davPath . '/' . ltrim($path, '/'));
|
return $this->encodePath($this->davPath . $this->getFilesPath() . ltrim($path, '/'));
|
||||||
}
|
}
|
||||||
|
|
||||||
public function getSabreClient($user) {
|
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;
|
return $response;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -49,7 +49,7 @@ Feature: favorite
|
||||||
|{http://owncloud.org/ns}favorite|
|
|{http://owncloud.org/ns}favorite|
|
||||||
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1"
|
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"
|
Given using dav path "remote.php/dav"
|
||||||
And As an "admin"
|
And As an "admin"
|
||||||
And user "user0" exists
|
And user "user0" exists
|
||||||
|
@ -59,7 +59,7 @@ Feature: favorite
|
||||||
|{http://owncloud.org/ns}favorite|
|
|{http://owncloud.org/ns}favorite|
|
||||||
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value ""
|
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"
|
Given using dav path "remote.php/dav"
|
||||||
And As an "admin"
|
And As an "admin"
|
||||||
And user "user0" exists
|
And user "user0" exists
|
||||||
|
@ -68,7 +68,7 @@ Feature: favorite
|
||||||
|{http://owncloud.org/ns}favorite|
|
|{http://owncloud.org/ns}favorite|
|
||||||
And the single response should contain a property "{http://owncloud.org/ns}favorite" with value "1"
|
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"
|
Given using dav path "remote.php/dav"
|
||||||
And As an "admin"
|
And As an "admin"
|
||||||
And user "user0" exists
|
And user "user0" exists
|
||||||
|
|
Loading…
Reference in New Issue