summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/Storage/DAV.php
Commit message (Collapse)AuthorAgeFilesLines
* composer run cs:fixCôme Chilliet2022-04-261-1/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Remove ILogger usages in lib/private/Files/StorageCôme Chilliet2022-04-261-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* use the same cached propfind for free space for dav storageRobin Appelman2022-04-041-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use the null coalescing operator to set the value of `size`.Max Kunzelmann2022-03-281-1/+1
| | | | Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
* Set `mtime` to null instead of false if `getlastmodified` does not exist.Max Kunzelmann2022-03-231-1/+1
| | | | Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
* Fix typo.Max Kunzelmann2022-03-201-1/+1
| | | | Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
* Fixes the undefined index error with the DAV property getlastmodifiedMax Kunzelmann2022-03-201-2/+5
| | | | Signed-off-by: Max Kunzelmann <maxdev@posteo.de>
* Remove redundant if clauseCôme Chilliet2022-01-251-4/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix OC\Files\Storage\DAV::hasUpdated when cache is not setCôme Chilliet2022-01-251-1/+1
| | | | | | | Fixes the test OCA\Files_External\Tests\Storage\WebdavTest::testStat on PHP>=7.4 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-041-1/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Fix RedundantPropertyInitializationCheckRoeland Jago Douma2021-03-091-2/+2
| | | | | | For #25839 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Update license headersChristoph Wurst2020-12-301-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #24594 from kofemann/dcacheJulius Härtl2020-12-221-2/+2
|\
| * storage: update IStorage#file_put_contents docs to match usageTigran Mkrtchyan2020-12-211-2/+2
| | | | | | | | | | | | | | The current phpdoc of IStorage#file_put_contents doesnt corresponds to it's actual usage in code, e.g. Signed-off-by: Tigran Mkrtchyan <tigran.mkrtchyan@desy.de>
* | Update all license headers for Nextcloud 21Christoph Wurst2020-12-161-1/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Improve CertificateManager to not be user context dependentMorris Jobke2020-11-031-3/+0
| | | | | | | | | * removes the ability for users to import their own certificates (for external storage) * reliably returns the same certificate bundles system wide (and not depending on the user context and available sessions) The user specific certificates were broken in some cases anyways, as they are only loaded if the specific user is logged in and thus causing unexpected behavior for background jobs and other non-user triggered code paths. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Set retry = false for forbidden exception.Daniel Kesselberg2020-06-251-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-101-4/+7
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-101-11/+11
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use the short array syntax, everywhereChristoph Wurst2020-03-261-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update license headersChristoph Wurst2019-12-051-2/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* delay creation of the cert bundleArthur Schiwon2019-11-281-11/+17
| | | | | | fixes #18148 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Some php-cs fixesRoeland Jago Douma2019-11-221-5/+4
| | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Catch forbidden http status codeRoeland Jago Douma2019-11-171-0/+5
| | | | | | | | | | | | If you try to do something on a DAV mount (external or federated share) that is not allowed. We should not mark the storage as not available but just fail somewhat gracefully. Now by catching this and just properly returning the operation will just fail (and notify the user) which is already a lot better then marking the storage as unavailable and doing boom. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Undefined variable response when server is no nextcloud anymoreJoas Schilling2019-08-201-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* handle long etags from dav external storageRobin Appelman2019-03-141-1/+5
| | | | | | we can only store etags up to 40 characters long in the database, so when we get an etag that's longer we simply hash it to bring down the length Signed-off-by: Robin Appelman <robin@icewind.nl>
* Do not log to error loglevel when converting the errorRoeland Jago Douma2018-08-061-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Request a valid property for DAV opendirRoeland Jago Douma2018-06-211-1/+1
| | | | | | | | Apperently Sabre and Onedrive are not friends when requesting a single 404 property. I need to dig deeper on why this is. Anyways requesting a valid property makes it work like a charm. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Fix undefined variable - found by PhanMorris Jobke2018-04-231-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Adjust dav client to new guzzleRobin Appelman2018-02-091-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Use index based string access for substr with length of 1Morris Jobke2018-01-261-7/+3
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6682 from nextcloud/dav-mimetype-fallbackRoeland Jago Douma2017-12-111-9/+17
|\ | | | | Fallback to filename based detection if the remote dav server doesn't…
| * Fallback to filename based detection if the remote dav server doesn't know ↵Robin Appelman2017-09-281-9/+17
| | | | | | | | | | | | the mimetype Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Run updated license header updaterMorris Jobke2017-11-071-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Update license headersMorris Jobke2017-11-061-1/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow configuring authType for DAV backendJörn Friedrich Dreyer2017-03-221-2/+10
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Make it easier to subclass DAV storageRobin Appelman2017-02-151-7/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* bug when connect to yandex webdav servervkuimov2017-02-101-1/+1
| | | | | | | | | server think that request like <?xml version="1.0" encoding="UTF-8"?> <d:propfind xmlns:d="DAV:"> <d:prop/> </d:propfind> is 400: Bad Request
* Make DAV external storage test more reliableRobin Appelman2017-01-241-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #2744 from nextcloud/oc_26324Roeland Jago Douma2017-01-111-52/+53
|\ | | | | [downstream] Fix DAV stat cache to properly cache 404
| * Fix DAV stat cache to properly cache 404Vincent Petry2017-01-051-52/+53
| | | | | | | | | | | | 404 errors were not properly cached due to catching the wrong exception. Now catching ClientHttpException and checking the error code. In case of 404, adjust the stat cache accordingly.
* | replace close:// streamwrapper with CallBackWrapperRobin Appelman2017-01-061-10/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update with robinJoas Schilling2016-07-211-1/+1
|
* Fix othersJoas Schilling2016-07-211-1/+2
|
* Fix getting the certificate bundle for dav external storage (#25274)Robin Appelman2016-06-271-1/+6
| | | | | | * Fix getting the certificate bundle for dav external storages * Log the original exception in dav external storage