Skip to content

Commit

Permalink
Merge pull request #200 from owncloud/savredav-2.1.7
Browse files Browse the repository at this point in the history
Update sabre/dav to 2.1.7
  • Loading branch information
DeepDiver1975 committed Sep 29, 2015
2 parents e2a142c + 6b502c8 commit 1914e92
Show file tree
Hide file tree
Showing 8 changed files with 119 additions and 89 deletions.
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -153,3 +153,7 @@ deepdiver1975/tarstreamer/tests

patchwork/jsqueeze/tests
patchwork/jsqueeze/phpunit.xml.dist

sabre/dav/examples
sabre/dav/tests

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"vendor-dir": "."
},
"require": {
"sabre/dav" : "2.1.6",
"sabre/dav" : "2.1.7",
"doctrine/dbal": "2.5.1",
"mcnetic/zipstreamer": "v0.7",
"phpseclib/phpseclib": "~2.0@dev",
Expand Down
14 changes: 7 additions & 7 deletions composer.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

152 changes: 76 additions & 76 deletions composer/installed.json
Original file line number Diff line number Diff line change
Expand Up @@ -1866,82 +1866,6 @@
],
"description": "Provides a simple API and specification that abstracts away the details of HTTP into a single PHP function."
},
{
"name": "sabre/dav",
"version": "2.1.6",
"version_normalized": "2.1.6.0",
"source": {
"type": "git",
"url": "https://github.com/fruux/sabre-dav.git",
"reference": "393dc0e3cb7dbc82ba0bb597e8c3c0d596d55b71"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fruux/sabre-dav/zipball/393dc0e3cb7dbc82ba0bb597e8c3c0d596d55b71",
"reference": "393dc0e3cb7dbc82ba0bb597e8c3c0d596d55b71",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-date": "*",
"ext-dom": "*",
"ext-iconv": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-pcre": "*",
"ext-simplexml": "*",
"ext-spl": "*",
"php": ">=5.4.1",
"sabre/event": "~2.0.0",
"sabre/http": "~3.0.0",
"sabre/vobject": ">=3.3.4 <4"
},
"require-dev": {
"evert/phpdoc-md": "~0.1.0",
"phpunit/phpunit": "~4.2",
"squizlabs/php_codesniffer": "~1.5.3"
},
"suggest": {
"ext-curl": "*",
"ext-pdo": "*"
},
"time": "2015-07-21 20:13:05",
"bin": [
"bin/sabredav",
"bin/naturalselection"
],
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Sabre\\DAV\\": "lib/DAV/",
"Sabre\\DAVACL\\": "lib/DAVACL/",
"Sabre\\CalDAV\\": "lib/CalDAV/",
"Sabre\\CardDAV\\": "lib/CardDAV/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Evert Pot",
"email": "me@evertpot.com",
"homepage": "http://evertpot.com/",
"role": "Developer"
}
],
"description": "WebDAV Framework for PHP",
"homepage": "http://sabre.io/",
"keywords": [
"CalDAV",
"CardDAV",
"WebDAV",
"framework",
"iCalendar"
]
},
{
"name": "phpseclib/phpseclib",
"version": "2.0.x-dev",
Expand Down Expand Up @@ -2743,5 +2667,81 @@
"compression",
"minification"
]
},
{
"name": "sabre/dav",
"version": "2.1.7",
"version_normalized": "2.1.7.0",
"source": {
"type": "git",
"url": "https://github.com/fruux/sabre-dav.git",
"reference": "49a666925986af425626f223c30b855967e6a830"
},
"dist": {
"type": "zip",
"url": "https://api.github.com/repos/fruux/sabre-dav/zipball/49a666925986af425626f223c30b855967e6a830",
"reference": "49a666925986af425626f223c30b855967e6a830",
"shasum": ""
},
"require": {
"ext-ctype": "*",
"ext-date": "*",
"ext-dom": "*",
"ext-iconv": "*",
"ext-libxml": "*",
"ext-mbstring": "*",
"ext-pcre": "*",
"ext-simplexml": "*",
"ext-spl": "*",
"php": ">=5.4.1",
"sabre/event": "~2.0.0",
"sabre/http": "~3.0.0",
"sabre/vobject": ">=3.3.4 <4"
},
"require-dev": {
"evert/phpdoc-md": "~0.1.0",
"phpunit/phpunit": "~4.2",
"squizlabs/php_codesniffer": "~1.5.3"
},
"suggest": {
"ext-curl": "*",
"ext-pdo": "*"
},
"time": "2015-09-04 22:20:39",
"bin": [
"bin/sabredav",
"bin/naturalselection"
],
"type": "library",
"installation-source": "dist",
"autoload": {
"psr-4": {
"Sabre\\DAV\\": "lib/DAV/",
"Sabre\\DAVACL\\": "lib/DAVACL/",
"Sabre\\CalDAV\\": "lib/CalDAV/",
"Sabre\\CardDAV\\": "lib/CardDAV/"
}
},
"notification-url": "https://packagist.org/downloads/",
"license": [
"BSD-3-Clause"
],
"authors": [
{
"name": "Evert Pot",
"email": "me@evertpot.com",
"homepage": "http://evertpot.com/",
"role": "Developer"
}
],
"description": "WebDAV Framework for PHP",
"homepage": "http://sabre.io/",
"keywords": [
"CalDAV",
"CardDAV",
"WebDAV",
"framework",
"iCalendar"
]
}
]
21 changes: 21 additions & 0 deletions sabre/dav/ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,16 @@
ChangeLog
=========

2.1.7 (2015-09-05)
------------------

* #705: A `MOVE` request that gets prevented from deleting the source resource
will still remove the target resource. Now all events are triggered before
any destructive operations.
* The zip release ships with [sabre/vobject 3.4.7][vobj],
[sabre/http 3.0.5][http], and [sabre/event 2.0.2][evnt].


2.1.6 (2015-07-21)
------------------

Expand Down Expand Up @@ -183,6 +193,17 @@ ChangeLog
[sabre/http 3.0.0][http], and [sabre/event 2.0.0][evnt].


2.0.9 (2015-09-04)
------------------

* #705: A `MOVE` request that gets prevented from deleting the source resource
will still remove the target resource. Now all events are triggered before
any destructive operations.
* The zip release ships with [sabre/vobject 3.4.6][vobj],
[sabre/http 2.0.4][http], and [sabre/event 1.0.1][evnt].



2.0.8 (2015-07-11)
------------------

Expand Down
2 changes: 1 addition & 1 deletion sabre/dav/lib/DAV/Collection.php
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ function getChild($name) {

foreach($this->getChildren() as $child) {

if ($child->getName()==$name) return $child;
if ($child->getName()===$name) return $child;

}
throw new Exception\NotFound('File not found: ' . $name);
Expand Down
11 changes: 8 additions & 3 deletions sabre/dav/lib/DAV/CorePlugin.php
Original file line number Diff line number Diff line change
Expand Up @@ -619,14 +619,19 @@ function httpMove(RequestInterface $request, ResponseInterface $response) {
if ($moveInfo['destinationExists']) {

if (!$this->server->emit('beforeUnbind', [$moveInfo['destination']])) return false;

}
if (!$this->server->emit('beforeUnbind',[$path])) return false;
if (!$this->server->emit('beforeBind',[$moveInfo['destination']])) return false;
if (!$this->server->emit('beforeMove', [$path, $moveInfo['destination']])) return false;

if ($moveInfo['destinationExists']) {

$this->server->tree->delete($moveInfo['destination']);
$this->server->emit('afterUnbind', [$moveInfo['destination']]);

}

if (!$this->server->emit('beforeUnbind', [$path])) return false;
if (!$this->server->emit('beforeBind', [$moveInfo['destination']])) return false;
if (!$this->server->emit('beforeMove', [$path, $moveInfo['destination']])) return false;
$this->server->tree->move($path, $moveInfo['destination']);

// Its important afterMove is called before afterUnbind, because it
Expand Down
2 changes: 1 addition & 1 deletion sabre/dav/lib/DAV/Version.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ class Version {
/**
* Full version number
*/
const VERSION = '2.1.6';
const VERSION = '2.1.7';

}

0 comments on commit 1914e92

Please sign in to comment.