summaryrefslogtreecommitdiffstats
path: root/lib/private/files/storage/dav.php
Commit message (Collapse)AuthorAgeFilesLines
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-817/+0
|
* if share-permissions exists we use this information as indicator to check if ↵Björn Schießle2016-04-201-0/+3
| | | | the file has changed or not
* ask for share-permissions on propfindBjörn Schießle2016-04-201-1/+2
|
* Verify the getResponse returns a ResponseInterfaceLukas Reschke2016-03-121-1/+3
| | | | | | Can also return `null` as per PHPDoc. Regression added by https://github.com/owncloud/core/commit/97f5c095f4018119e15d7c612a685da1dc91a340 Fixes https://github.com/owncloud/core/issues/23145
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Add proxy support to external storageLukas Reschke2016-02-241-1/+5
| | | | Otherwise debugging issues is a PITA
* Happy new year!Thomas Müller2016-01-121-1/+1
|
* Dont do a seperate request to check if a file exists for dav->fopenRobin Appelman2015-12-101-8/+14
|
* Add DB group to some files_external testsThomas Müller2015-11-301-0/+1
| | | | | | | | | | Adding group Db to federation tests and ldap tests Add group DB to Test_UrlGenerator Adding group DB to trashbin and versions tests Adding group DB to Test_Util_CheckServer for pg
* Adjust sabre changes in coreThomas Müller2015-11-241-3/+6
|
* update licence headers via scriptMorris Jobke2015-10-051-2/+0
|
* dont download the existing file for webdav if we're going to overwrite itRobin Appelman2015-09-211-2/+7
|
* also use httpclient for uploadFileRobin Appelman2015-09-011-35/+18
|
* stream webdav downloads using http clientRobin Appelman2015-08-291-29/+15
|
* Merge pull request #14779 from owncloud/use-iterator-directoryRobin McCorkell2015-08-071-3/+2
|\ | | | | Use the new IteratorDirectory instead of the fakedir wrapper
| * Use the new IteratorDirectory instead of the fakedir wrapperRobin Appelman2015-07-151-3/+2
| |
* | Merge pull request #17282 from owncloud/s2s-catchremotelockexceptionsMorris Jobke2015-07-171-17/+27
|\ \ | |/ |/| Throw lock exceptions if remote share returned 423 status code
| * Throw lock exceptions if remote share returned 423 status codeVincent Petry2015-07-031-17/+27
| |
* | Throw StorageNotAvailable if propfind on root failedVincent Petry2015-07-131-1/+5
|/ | | | | If PROPFIND fails with 404 or 405 on the remote share root, it means the storage is not available. Throw StorageNotAvailable is such case.
* update license headers and authorsMorris Jobke2015-06-251-1/+0
|
* Get etag from remote OC serverVincent Petry2015-06-021-3/+17
|
* Revert "Revert "Revert "FIX for webdav.mediencenter.t-online.de"""Thomas Müller2015-05-261-5/+0
|
* Revert "Revert "FIX for webdav.mediencenter.t-online.de""Oliver Kohl D.Sc2015-05-261-0/+5
|
* Check if cURL supports the desired featuresLukas Reschke2015-05-121-2/+6
| | | | | | Older versions of cURL that are unfortunately still bundled by distributors don't support these features which will result in errors and other possibly unpredictable behaviour. Fixes https://github.com/owncloud/core/issues/16179 for master – stable8 requires another patch.
* Properly import used classesThomas Müller2015-04-131-35/+48
|
* Catch more exceptions when connecting to remote DAV serverVincent Petry2015-04-101-58/+57
| | | | | | | Added InvalidArgumentException to catch HTML parsing errors when XML was expected. Made convertSabreException more generic to be able to handle more exception cases.
* Merge pull request #14120 from owncloud/dav-statcacheMorris Jobke2015-04-081-27/+143
|\ | | | | Stat cache for DAV storage, improves s2s performance a little bit
| * Added stat cache for DAV storageVincent Petry2015-03-261-27/+143
| | | | | | | | | | The stat cache stored known states of files/folders to avoid requerying the DAV server multiple times.
* | Update license headersJenkins for ownCloud2015-03-261-4/+32
|/
* Revert "FIX for webdav.mediencenter.t-online.de"Morris Jobke2015-03-261-5/+0
|
* FIX for webdav.mediencenter.t-online.de Oliver Kohl D.Sc.2015-03-251-0/+5
| | | | | | | | | https://webdav.mediencenter.t-online.de returns invalid response code. e.g. {"reqId":"f9a1c394b98108e4e5ca62bf47829c64","remoteAddr":"81.189.45.224","app":"PHP","message":"Undefined offset: 2 at \/var\/www\/owncloud\/3rdparty\/sabre\/dav\/lib\/Sabre\/DAV\/Client.php#569","level":3,"time":"2015-03-25T18:25:48+00:00","method":"GET","url":"\/index.php\/apps\/files\/ajax\/getstoragestats.php?dir=External%2FT-Cloud%2FTests"} e.g. {"reqId":"3407d66672b3cef206b0af883e49bff4","remoteAddr":"46.74.125.245","app":"PHP","message":"Undefined index: {DAV:}getlastmodified at \/var\/www\/owncloud\/lib\/private\/files\/storage\/dav.php#563","level":3,"time":"2015-03-25T16:33:21+00:00"}
* drop any fallback code related to curl - refs ↵Thomas Müller2015-03-121-5/+1
| | | | https://github.com/owncloud/core/pull/14838#issuecomment-78586447
* Clean-up code and use proper exception typesLukas Reschke2015-03-091-6/+48
|
* Revert "Updating license headers"Morris Jobke2015-02-261-33/+5
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Sabre Update to 2.1Vincent Petry2015-02-231-34/+39
| | | | | | | | | | | | | | | | | | - VObject fixes for Sabre\VObject 3.3 - Remove VObject property workarounds - Added prefetching for tags in sabre tags plugin - Moved oc_properties logic to separate PropertyStorage backend (WIP) - Fixed Sabre connector namespaces - Improved files plugin to handle props on-demand - Moved allowed props from server class to files plugin - Fixed tags caching for files that are known to have no tags (less queries) - Added/fixed unit tests for Sabre FilesPlugin, TagsPlugin - Replace OC\Connector\Sabre\Request with direct call to httpRequest->setUrl() - Fix exception detection in DAV client when using Sabre\DAV\Client - Added setETag() on Node instead of using the static FileSystem - Also preload tags/props when depth is infinity
* Updating license headersJenkins for ownCloud2015-02-231-5/+33
|
* Fix DAV exceptions, some will still return false nowVincent Petry2015-01-301-0/+22
| | | | | | Since the Storage interface isn't ready to work directly with exceptions like Forbidden and NotFound, the DAV storage has been adapted to still return false when expected.
* Catch storage exception in scanner for remote sharesVincent Petry2015-01-261-1/+40
| | | | | | | | Whenever an exception occurs during scan of a remote share, the share is checked for availability. If the storage is gone, it will be removed automatically. Also, getDirectoryContent() will now skip unavailable storages.
* Improve debugging for ServiceUnavailable exceptionsChris Wilson2015-01-061-1/+1
| | | | | | | | | | | | | I was getting a lot of these in my logs for no apparent reason, and file uploads were failing: {"app":"webdav","message":"Sabre\\DAV\\Exception\\ServiceUnavailable: ","level":4,"time":"2015-01-06T15:33:39+00:00"} In order to debug it, I had to add unique messages to all the places where this exception was thrown, to identify which one it was, and that made the logs much more useful: {"app":"webdav","message":"Sabre\\DAV\\Exception\\ServiceUnavailable: Encryption is disabled","level":4,"time":"2015-01-06T15:36:47+00:00"}
* Log exceptions in DAV storageVincent Petry2014-12-031-3/+29
| | | | | In some cases a "NotFound" might be expected, so just return false as before. But for other exceptions, the exception is now logged.
* Replace deprecated constant with new class constantJoas Schilling2014-11-251-12/+12
|
* Fix root path handling for WebDAV ext storageVincent Petry2014-11-111-0/+2
| | | | | | Added missing cleanPath() call that converts "/" to "" when calling SabreDAV. This is needed because SabreDAV will discard its base URL when passing "/".
* Allow specifying protocol in ext storage OC configVincent Petry2014-10-131-2/+2
| | | | | | Allow specifying a protocol in the host field when mounting another ownCloud instance. Note that this was already possible with the WebDAV config but this bug made it inconsistent.
* Do only follow HTTP and HTTPS redirectsLukas Reschke2014-09-221-0/+4
| | | | | | | | We do not want to follow redirects to other protocols since they might allow an adversary to bypass network restrictions. (i.e. a redirect to ftp:// might be used to access files of a FTP server which might be in a secure zone and not be reachable from the net but from the ownCloud server) Get final redirect manually using get_headers() Migrate to HTTPHelper class and add unit tests
* move to public namespaceMorris Jobke2014-08-191-2/+2
|
* Fix STORAGE_* constants usage by moving those constants into ↵Stephan Peijnik2014-08-191-2/+2
| | | | | | | | | | \OC\Files\Filesystem. As constants not defined within a class cannot be automatically found by the autoloader moving those constants into a class makes them accessible to code which uses them. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
* Close open file handles in files libraryMorris Jobke2014-08-131-0/+1
| | | | ref #10392
* silently discard the response body, needed for apache/mod_dav and maybe ↵Philippe Kueck2014-07-031-0/+1
| | | | other dav servers which return an html body
* Add StorageNotAvailableExceptionRobin Appelman2014-06-301-17/+27
|
* Fix parsing of webdav permissionsRobin Appelman2014-06-271-1/+2
|