Skip to content

Commit

Permalink
Merge pull request #551 from nextcloud/dependencies/sabre-II
Browse files Browse the repository at this point in the history
Bump sabre/dav to 4.1
  • Loading branch information
ChristophWurst committed Dec 29, 2020
2 parents 8a030d7 + c86fa3e commit 4ff56cd
Show file tree
Hide file tree
Showing 185 changed files with 276 additions and 965 deletions.
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
"pimple/pimple": "3.2.3",
"psr/container": "^1.0",
"punic/punic": "^1.6",
"sabre/dav": "^4.0.0",
"sabre/dav": "^4.1.3",
"scssphp/scssphp": "1.0.3",
"stecman/symfony-console-completion": "^0.11.0",
"swiftmailer/swiftmailer": "^6.0",
Expand Down
12 changes: 6 additions & 6 deletions composer/InstalledVersions.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,12 @@ class InstalledVersions
private static $installed = array (
'root' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => 'aea1df9dcc0ae1b774e15edf07a470198b952e45',
'reference' => NULL,
'name' => 'nextcloud/3rdparty',
),
'versions' =>
Expand Down Expand Up @@ -279,12 +279,12 @@ class InstalledVersions
),
'nextcloud/3rdparty' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => 'aea1df9dcc0ae1b774e15edf07a470198b952e45',
'reference' => NULL,
),
'nextcloud/lognormalizer' =>
array (
Expand Down
12 changes: 6 additions & 6 deletions composer/installed.php
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
<?php return array (
'root' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => 'aea1df9dcc0ae1b774e15edf07a470198b952e45',
'reference' => NULL,
'name' => 'nextcloud/3rdparty',
),
'versions' =>
Expand Down Expand Up @@ -256,12 +256,12 @@
),
'nextcloud/3rdparty' =>
array (
'pretty_version' => 'dev-master',
'version' => 'dev-master',
'pretty_version' => '1.0.0+no-version-set',
'version' => '1.0.0.0',
'aliases' =>
array (
),
'reference' => 'aea1df9dcc0ae1b774e15edf07a470198b952e45',
'reference' => NULL,
),
'nextcloud/lognormalizer' =>
array (
Expand Down
11 changes: 3 additions & 8 deletions sabre/dav/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ tests/cov
# Custom settings for tests
tests/config.user.php

# PHPUnit test Cache
.phpunit.result.cache

# ViM
*.swp

Expand All @@ -14,14 +17,9 @@ composer.lock
vendor

# Composer binaries
bin/phing
bin/phpunit
bin/vobject
bin/generate_vcards
bin/phpdocmd
bin/phpunit
bin/php-cs-fixer
bin/sabre-cs-fixer

# Assuming every .php file in the root is for testing
/*.php
Expand All @@ -39,7 +37,4 @@ build.properties
docs/api
docs/wikidocs

# Mac
.DS_Store

.php_cs.cache
22 changes: 21 additions & 1 deletion sabre/dav/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,26 @@
ChangeLog
=========

4.1.3 (2020-11-09)
-------------------------
* #1306: Return 409 when trying to PUT a file into a non-existent collection

4.1.2 (2020-10-04)
-------------------------
* #1296: Add experimental support for PHP 8.0

4.1.1 (2020-07-13)
-------------------------
* Fix PHPdoc of Tree:move method
* Allow using custom SAPI implementations
* Include baseUri in lock responses

4.1.0 (2020-03-20)
-------------------------
* Support PHP 7.4
* Drop support for PHP 7.0
* CalDAV: send MIME-Version header in scheduling emails

4.0.3 (2020-01-10)
-------------------------
* DAV: Streaming PROPFIND server implementation
Expand Down Expand Up @@ -234,7 +254,7 @@ ChangeLog
[sabre/uri 1.1.0][uri] and [sabre/xml 1.4.1][xml].


3.1.5 (????-??-??)
3.1.5 (2018-10-19)
------------------

* Fixed: Creating a new calendar on some MySQL configurations caused an error.
Expand Down
2 changes: 1 addition & 1 deletion sabre/dav/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ Build status

| branch | status | minimum PHP version |
| ------------ | ------ | ------------------- |
| master | [![Build Status](https://travis-ci.org/sabre-io/dav.svg?branch=master)](https://travis-ci.org/sabre-io/dav) | PHP 7.0 |
| master | [![Build Status](https://travis-ci.org/sabre-io/dav.svg?branch=master)](https://travis-ci.org/sabre-io/dav) | PHP 7.1 |
| 3.1 | [![Build Status](https://travis-ci.org/sabre-io/dav.svg?branch=3.0)](https://travis-ci.org/sabre-io/dav) | PHP 5.5 |
| 3.0 | [![Build Status](https://travis-ci.org/sabre-io/dav.svg?branch=3.0)](https://travis-ci.org/sabre-io/dav) | PHP 5.4 |
| 2.1 | [![Build Status](https://travis-ci.org/sabre-io/dav.svg?branch=2.1)](https://travis-ci.org/sabre-io/dav) | PHP 5.4 |
Expand Down
38 changes: 32 additions & 6 deletions sabre/dav/composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,11 @@
}
],
"require": {
"php": ">=7.0.0",
"sabre/vobject": "^4.2.0-alpha1",
"php": "^7.1.0 || ^8.0",
"sabre/vobject": "^4.2.1",
"sabre/event" : "^5.0",
"sabre/xml" : "^2.0.1",
"sabre/http" : "^5.0",
"sabre/http" : "^5.0.5",
"sabre/uri" : "^2.0",
"ext-dom": "*",
"ext-pcre": "*",
Expand All @@ -33,7 +33,9 @@
"ext-json": "*"
},
"require-dev" : {
"phpunit/phpunit" : "^6",
"friendsofphp/php-cs-fixer": "^2.16.7",
"phpstan/phpstan": "^0.12",
"phpunit/phpunit" : "^7.5 || ^8.5 || ^9.0",
"evert/phpdoc-md" : "~0.1.0",
"monolog/monolog": "^1.18"
},
Expand All @@ -50,6 +52,17 @@
"Sabre\\CardDAV\\" : "lib/CardDAV/"
}
},
"autoload-dev" : {
"psr-4" : {
"Sabre\\" : "tests/Sabre/",
"Sabre\\CalDAV\\" : "tests/Sabre/CalDAV",
"Sabre\\CardDAV\\" : "tests/Sabre/CardDAV",
"Sabre\\DAV\\" : "tests/Sabre/DAV",
"Sabre\\DAV\\Property\\" : "tests/Sabre/DAV/Xml/Property",
"Sabre\\DAVACL\\" : "tests/Sabre/DAVACL",
"Sabre\\HTTP\\" : "tests/Sabre/HTTP"
}
},
"support" : {
"forum" : "https://groups.google.com/group/sabredav-discuss",
"source" : "https://github.com/fruux/sabre-dav"
Expand All @@ -58,7 +71,20 @@
"bin/sabredav",
"bin/naturalselection"
],
"config" : {
"bin-dir" : "./bin"
"scripts": {
"phpstan": [
"phpstan analyse lib tests"
],
"cs-fixer": [
"php-cs-fixer fix"
],
"phpunit": [
"phpunit --configuration tests/phpunit.xml"
],
"test": [
"composer phpstan",
"composer cs-fixer",
"composer phpunit"
]
}
}
8 changes: 1 addition & 7 deletions sabre/dav/lib/CalDAV/Backend/AbstractBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ abstract class AbstractBackend implements BackendInterface
*
* Read the PropPatch documentation for more info and examples.
*
* @param mixed $calendarId
* @param \Sabre\DAV\PropPatch $propPatch
* @param mixed $calendarId
*/
public function updateCalendar($calendarId, \Sabre\DAV\PropPatch $propPatch)
{
Expand All @@ -46,7 +45,6 @@ public function updateCalendar($calendarId, \Sabre\DAV\PropPatch $propPatch)
* If the backend supports this, it may allow for some speed-ups.
*
* @param mixed $calendarId
* @param array $uris
*
* @return array
*/
Expand Down Expand Up @@ -103,7 +101,6 @@ public function getMultipleCalendarObjects($calendarId, array $uris)
* to think of.
*
* @param mixed $calendarId
* @param array $filters
*
* @return array
*/
Expand All @@ -125,9 +122,6 @@ public function calendarQuery($calendarId, array $filters)
* This method validates if a filter (as passed to calendarQuery) matches
* the given object.
*
* @param array $object
* @param array $filters
*
* @return bool
*/
protected function validateFilterForObject(array $object, array $filters)
Expand Down
6 changes: 1 addition & 5 deletions sabre/dav/lib/CalDAV/Backend/BackendInterface.php
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ public function getCalendarsForUser($principalUri);
*
* @param string $principalUri
* @param string $calendarUri
* @param array $properties
*
* @return mixed
*/
Expand All @@ -69,8 +68,7 @@ public function createCalendar($principalUri, $calendarUri, array $properties);
*
* Read the PropPatch documentation for more info and examples.
*
* @param mixed $calendarId
* @param \Sabre\DAV\PropPatch $propPatch
* @param mixed $calendarId
*/
public function updateCalendar($calendarId, \Sabre\DAV\PropPatch $propPatch);

Expand Down Expand Up @@ -143,7 +141,6 @@ public function getCalendarObject($calendarId, $objectUri);
* If the backend supports this, it may allow for some speed-ups.
*
* @param mixed $calendarId
* @param array $uris
*
* @return array
*/
Expand Down Expand Up @@ -247,7 +244,6 @@ public function deleteCalendarObject($calendarId, $objectUri);
* to think of.
*
* @param mixed $calendarId
* @param array $filters
*
* @return array
*/
Expand Down
3 changes: 1 addition & 2 deletions sabre/dav/lib/CalDAV/Backend/NotificationSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,7 @@ public function getNotificationsForPrincipal($principalUri);
*
* This may be called by a client once it deems a notification handled.
*
* @param string $principalUri
* @param NotificationInterface $notification
* @param string $principalUri
*/
public function deleteNotification($principalUri, NotificationInterface $notification);

Expand Down
9 changes: 1 addition & 8 deletions sabre/dav/lib/CalDAV/Backend/PDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -117,8 +117,6 @@ class PDO extends AbstractBackend implements SyncSupport, SubscriptionSupport, S

/**
* Creates the backend.
*
* @param \PDO $pdo
*/
public function __construct(\PDO $pdo)
{
Expand Down Expand Up @@ -220,7 +218,6 @@ public function getCalendarsForUser($principalUri)
*
* @param string $principalUri
* @param string $calendarUri
* @param array $properties
*
* @return string
*/
Expand Down Expand Up @@ -290,8 +287,7 @@ public function createCalendar($principalUri, $calendarUri, array $properties)
*
* Read the PropPatch documentation for more info and examples.
*
* @param mixed $calendarId
* @param \Sabre\DAV\PropPatch $propPatch
* @param mixed $calendarId
*/
public function updateCalendar($calendarId, \Sabre\DAV\PropPatch $propPatch)
{
Expand Down Expand Up @@ -483,7 +479,6 @@ public function getCalendarObject($calendarId, $objectUri)
* If the backend supports this, it may allow for some speed-ups.
*
* @param mixed $calendarId
* @param array $uris
*
* @return array
*/
Expand Down Expand Up @@ -760,7 +755,6 @@ public function deleteCalendarObject($calendarId, $objectUri)
* specific components, and VEVENT time-ranges.
*
* @param mixed $calendarId
* @param array $filters
*
* @return array
*/
Expand Down Expand Up @@ -1109,7 +1103,6 @@ public function getSubscriptionsForUser($principalUri)
*
* @param string $principalUri
* @param string $uri
* @param array $properties
*
* @return mixed
*/
Expand Down
3 changes: 0 additions & 3 deletions sabre/dav/lib/CalDAV/Backend/SimplePDO.php
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,6 @@ class SimplePDO extends AbstractBackend

/**
* Creates the backend.
*
* @param \PDO $pdo
*/
public function __construct(\PDO $pdo)
{
Expand Down Expand Up @@ -103,7 +101,6 @@ public function getCalendarsForUser($principalUri)
*
* @param string $principalUri
* @param string $calendarUri
* @param array $properties
*
* @return string
*/
Expand Down
1 change: 0 additions & 1 deletion sabre/dav/lib/CalDAV/Backend/SubscriptionSupport.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,6 @@ public function getSubscriptionsForUser($principalUri);
*
* @param string $principalUri
* @param string $uri
* @param array $properties
*
* @return mixed
*/
Expand Down
Loading

0 comments on commit 4ff56cd

Please sign in to comment.