Update dependencies
This commit is contained in:
parent
7f0a87be44
commit
4db04614da
|
@ -101,6 +101,12 @@ Here is a list of clients tested with KaraDAV:
|
|||
* [DAVx⁵](https://www.davx5.com/), see [the manual](https://manual.davx5.com/webdav_mounts.html) for how to set up a WebDAV mount
|
||||
* [X-Plore](https://www.lonelycatgames.com/apps/xplore)
|
||||
|
||||
Other untested:
|
||||
|
||||
* [EasySync](https://github.com/phpbg/easysync)
|
||||
* [WebDAV provider](https://github.com/alexbakker/webdav-provider)
|
||||
* [WebDAV Sync](https://github.com/SakiiCode/WebDavSync)
|
||||
|
||||
## WOPI clients compatibility
|
||||
|
||||
* Tested successfully with Collabora Development Edition (see [COLLABORA.md](doc/COLLABORA.md))
|
||||
|
|
|
@ -1,3 +1,7 @@
|
|||
## 0.4.4 - January 1st, 2024
|
||||
|
||||
* Update dependencies
|
||||
|
||||
## 0.4.3 - December 31, 2023
|
||||
|
||||
* Add support for `PROPPATCH`-ing last modification time
|
||||
|
|
|
@ -213,7 +213,7 @@ abstract class NextCloud
|
|||
// So to avoid that you can just redirect to the file if it's not too large
|
||||
// But you are free to extend this method and resize the image on the fly instead.
|
||||
else {
|
||||
$size = $this->server->getStorage()->properties($uri, ['DAV::getcontentlength'], 0);
|
||||
$size = $this->server->getStorage()->propfind($uri, ['DAV::getcontentlength'], 0);
|
||||
$size = count($size) ? current($size) : null;
|
||||
|
||||
if ($size > 1024*1024 || !$size) {
|
||||
|
@ -821,7 +821,7 @@ abstract class NextCloud
|
|||
|
||||
header('X-OC-MTime: accepted');
|
||||
|
||||
$props = $this->storage->properties($dest, [self::PROP_OC_ID], 0);
|
||||
$props = $this->storage->propfind($dest, [self::PROP_OC_ID], 0);
|
||||
|
||||
if (count($props)) {
|
||||
header('OC-FileId: ' . current($props));
|
||||
|
|
|
@ -67,8 +67,6 @@ class Server
|
|||
'DAV::quota-available-bytes',
|
||||
];
|
||||
|
||||
const PROP_NAMESPACE_MICROSOFT = 'urn:schemas-microsoft-com:';
|
||||
|
||||
/**
|
||||
* File modification time accepted properties
|
||||
* @see https://github.com/mar10/wsgidav/issues/112
|
||||
|
|
|
@ -127,7 +127,7 @@ class WOPI
|
|||
|
||||
protected function getInfo(string $uri): bool
|
||||
{
|
||||
$props = $this->storage->properties($uri, [
|
||||
$props = $this->storage->propfind($uri, [
|
||||
'DAV::getcontentlength',
|
||||
'DAV::getlastmodified',
|
||||
'DAV::getetag',
|
||||
|
@ -305,7 +305,7 @@ class WOPI
|
|||
// You need to extend this method by creating a token for the document_uri first!
|
||||
// Return the token with the document properties using ::PROP_TOKEN
|
||||
|
||||
$props = $this->storage->properties($document_uri, [self::PROP_TOKEN, self::PROP_TOKEN_TTL, self::PROP_FILE_URL], 0);
|
||||
$props = $this->storage->propfind($document_uri, [self::PROP_TOKEN, self::PROP_TOKEN_TTL, self::PROP_FILE_URL], 0);
|
||||
|
||||
if (count($props) != 3) {
|
||||
throw new Exception('Missing properties for document', 500);
|
||||
|
|
Loading…
Reference in a new issue