| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
|
|
| |
the file has changed or not
|
| |
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
| |
Otherwise debugging issues is a PITA
|
| |
|
| |
|
|
|
|
|
|
|
|
|
|
| |
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
|
| |
|
| |
|
| |
|
| |
|
| |
|
|\
| |
| | |
Use the new IteratorDirectory instead of the fakedir wrapper
|
| | |
|
|\ \
| |/
|/| |
Throw lock exceptions if remote share returned 423 status code
|
| | |
|
|/
|
|
|
| |
If PROPFIND fails with 404 or 405 on the remote share root, it means the
storage is not available. Throw StorageNotAvailable is such case.
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
|
| |
Added InvalidArgumentException to catch HTML parsing errors when XML was
expected.
Made convertSabreException more generic to be able to handle more
exception cases.
|
|\
| |
| | |
Stat cache for DAV storage, improves s2s performance a little bit
|
| |
| |
| |
| |
| | |
The stat cache stored known states of files/folders to avoid requerying
the DAV server multiple times.
|
|/ |
|
| |
|
|
|
|
|
|
|
|
|
| |
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"}
|
|
|
|
| |
https://github.com/owncloud/core/pull/14838#issuecomment-78586447
|
| |
|
|
|
|
| |
This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
- 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
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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"}
|
|
|
|
|
| |
In some cases a "NotFound" might be expected, so just return false as
before. But for other exceptions, the exception is now logged.
|
| |
|
|
|
|
|
|
| |
Added missing cleanPath() call that converts "/" to "" when calling
SabreDAV. This is needed because SabreDAV will discard its base URL when
passing "/".
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
| |
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
|
| |
|
|
|
|
|
|
|
|
|
|
| |
\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>
|
|
|
|
| |
ref #10392
|
|
|
|
| |
other dav servers which return an html body
|
| |
|
| |
|