Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/3rdparty.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoeland Jago Douma <rullzer@users.noreply.github.com>2019-04-12 09:18:03 +0300
committerGitHub <noreply@github.com>2019-04-12 09:18:03 +0300
commit7a741e937cbc58ad04cb92cc3d9ea3aa12915b15 (patch)
treec875422f50a7916c7d402910ba25e5be4770a707
parent4242a8272a7276d386ddd3c09a0929ac2b4d8973 (diff)
parentbd699a928b61b74e28bb1d50ca26fcafde43e5a3 (diff)
Merge pull request #266 from nextcloud/bump/stable14/sabre/dav/3.2.2v14.0.14RC1v14.0.14v14.0.13RC1v14.0.13v14.0.12v14.0.11RC1v14.0.11stable14
[stable14] Bump sabre/dav to 3.2.3
-rw-r--r--composer.json2
-rw-r--r--composer.lock12
-rw-r--r--composer/installed.json12
-rw-r--r--sabre/dav/CHANGELOG.md6
-rw-r--r--sabre/dav/lib/DAV/CorePlugin.php24
-rw-r--r--sabre/dav/lib/DAV/Tree.php4
6 files changed, 32 insertions, 28 deletions
diff --git a/composer.json b/composer.json
index 623c1ddc..4f29639b 100644
--- a/composer.json
+++ b/composer.json
@@ -39,7 +39,7 @@
"php-opencloud/openstack": "3.0.5",
"pimple/pimple": "3.2.3",
"punic/punic": "^1.6",
- "sabre/dav": "^3.2.0",
+ "sabre/dav": "^3.2.3",
"stecman/symfony-console-completion": "^0.7.0",
"swiftmailer/swiftmailer": "^6.0",
"symfony/console": "3.4.12",
diff --git a/composer.lock b/composer.lock
index c87d1e24..7e28f66a 100644
--- a/composer.lock
+++ b/composer.lock
@@ -4,7 +4,7 @@
"Read more about it at https://getcomposer.org/doc/01-basic-usage.md#installing-dependencies",
"This file is @generated automatically"
],
- "content-hash": "0e5dceb33c26ee3cbbb6f74a758c64d6",
+ "content-hash": "7692b00a8c93de8d710f875c5793344b",
"packages": [
{
"name": "aws/aws-sdk-php",
@@ -2490,16 +2490,16 @@
},
{
"name": "sabre/dav",
- "version": "3.2.2",
+ "version": "3.2.3",
"source": {
"type": "git",
"url": "https://github.com/sabre-io/dav.git",
- "reference": "e987775e619728f12205606c9cc3ee565ffb1516"
+ "reference": "a9780ce4f35560ecbd0af524ad32d9d2c8954b80"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sabre-io/dav/zipball/e987775e619728f12205606c9cc3ee565ffb1516",
- "reference": "e987775e619728f12205606c9cc3ee565ffb1516",
+ "url": "https://api.github.com/repos/sabre-io/dav/zipball/a9780ce4f35560ecbd0af524ad32d9d2c8954b80",
+ "reference": "a9780ce4f35560ecbd0af524ad32d9d2c8954b80",
"shasum": ""
},
"require": {
@@ -2569,7 +2569,7 @@
"framework",
"iCalendar"
],
- "time": "2017-02-15T03:06:08+00:00"
+ "time": "2018-10-19T09:58:27+00:00"
},
{
"name": "sabre/event",
diff --git a/composer/installed.json b/composer/installed.json
index 22b67a27..da058e9c 100644
--- a/composer/installed.json
+++ b/composer/installed.json
@@ -2571,17 +2571,17 @@
},
{
"name": "sabre/dav",
- "version": "3.2.2",
- "version_normalized": "3.2.2.0",
+ "version": "3.2.3",
+ "version_normalized": "3.2.3.0",
"source": {
"type": "git",
"url": "https://github.com/sabre-io/dav.git",
- "reference": "e987775e619728f12205606c9cc3ee565ffb1516"
+ "reference": "a9780ce4f35560ecbd0af524ad32d9d2c8954b80"
},
"dist": {
"type": "zip",
- "url": "https://api.github.com/repos/sabre-io/dav/zipball/e987775e619728f12205606c9cc3ee565ffb1516",
- "reference": "e987775e619728f12205606c9cc3ee565ffb1516",
+ "url": "https://api.github.com/repos/sabre-io/dav/zipball/a9780ce4f35560ecbd0af524ad32d9d2c8954b80",
+ "reference": "a9780ce4f35560ecbd0af524ad32d9d2c8954b80",
"shasum": ""
},
"require": {
@@ -2612,7 +2612,7 @@
"ext-curl": "*",
"ext-pdo": "*"
},
- "time": "2017-02-15T03:06:08+00:00",
+ "time": "2018-10-19T09:58:27+00:00",
"bin": [
"bin/sabredav",
"bin/naturalselection"
diff --git a/sabre/dav/CHANGELOG.md b/sabre/dav/CHANGELOG.md
index 0bccc995..cda2564e 100644
--- a/sabre/dav/CHANGELOG.md
+++ b/sabre/dav/CHANGELOG.md
@@ -1,6 +1,12 @@
ChangeLog
=========
+3.2.3 (2018-10-19)
+------------------
+
+* #982: Make sure that files that are siblings of directories, are reported
+ as files (@nickvergessen)
+
3.2.2 (2017-02-14)
------------------
diff --git a/sabre/dav/lib/DAV/CorePlugin.php b/sabre/dav/lib/DAV/CorePlugin.php
index 95da21f4..676cdd04 100644
--- a/sabre/dav/lib/DAV/CorePlugin.php
+++ b/sabre/dav/lib/DAV/CorePlugin.php
@@ -82,18 +82,14 @@ class CorePlugin extends ServerPlugin {
if (!$node instanceof IFile) return;
- if ($request->getHeader('X-Sabre-Original-Method') === 'HEAD') {
- $body = '';
- } else {
- $body = $node->get();
-
- // Converting string into stream, if needed.
- if (is_string($body)) {
- $stream = fopen('php://temp', 'r+');
- fwrite($stream, $body);
- rewind($stream);
- $body = $stream;
- }
+ $body = $node->get();
+
+ // Converting string into stream, if needed.
+ if (is_string($body)) {
+ $stream = fopen('php://temp', 'r+');
+ fwrite($stream, $body);
+ rewind($stream);
+ $body = $stream;
}
/*
@@ -249,13 +245,13 @@ class CorePlugin extends ServerPlugin {
function httpHead(RequestInterface $request, ResponseInterface $response) {
// This is implemented by changing the HEAD request to a GET request,
- // and telling the request handler that is doesn't need to create the body.
+ // and dropping the response body.
$subRequest = clone $request;
$subRequest->setMethod('GET');
- $subRequest->setHeader('X-Sabre-Original-Method', 'HEAD');
try {
$this->server->invokeMethod($subRequest, $response, false);
+ $response->setBody('');
} catch (Exception\NotImplemented $e) {
// Some clients may do HEAD requests on collections, however, GET
// requests and HEAD requests _may_ not be defined on a collection,
diff --git a/sabre/dav/lib/DAV/Tree.php b/sabre/dav/lib/DAV/Tree.php
index 5d279250..7c04f091 100644
--- a/sabre/dav/lib/DAV/Tree.php
+++ b/sabre/dav/lib/DAV/Tree.php
@@ -298,7 +298,9 @@ class Tree {
*/
protected function copyNode(INode $source, ICollection $destinationParent, $destinationName = null) {
- if (!$destinationName) $destinationName = $source->getName();
+ if ((string)$destinationName === '') {
+ $destinationName = $source->getName();
+ }
if ($source instanceof IFile) {