summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
Commit message (Collapse)AuthorAgeFilesLines
* Set the file's mtime from the headers in bulk uploadLouis Chemineau2022-01-112-14/+43
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #29948 from nextcloud/enh/webdav-creationdateJohn Molakvoæ2021-12-281-0/+14
|\
| * Expose DAV:creationdate for propfind/proppatchJulius Härtl2021-11-291-0/+14
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Prevent writing invalid mtimeJohn Molakvoæ2021-12-071-0/+5
|/ | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #29864 from nextcloud/bugfix/noid/dav-propfind-ctimeVincent Petry2021-11-241-6/+3
|\ | | | | Allow to fetch the creation time of folders
| * Allow to fetch the creation time of foldersJulius Härtl2021-11-231-6/+3
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix dav application tests and code for PHP 8.1Côme Chilliet2021-11-233-3/+3
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Revert "add dav plugin to trigger recalculating of checksums"John Molakvoæ2021-11-013-95/+4
|
* Merge pull request #27378 from nextcloud/dav-recalc-checksumJohn Molakvoæ2021-11-013-4/+95
|\
| * Add dav plugin to trigger recalculating of checksumsRobin Appelman2021-08-233-4/+95
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | use specific email getter where necessaryArthur Schiwon2021-09-091-5/+2
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | always allow dav move for movable mount rootRobin Appelman2021-08-271-1/+1
|/ | | | | | the root of a movable mountpoint can be moved even if it doesn't have update permissions Signed-off-by: Robin Appelman <robin@icewind.nl>
* Expose user language through DAVThomas Citharel2021-08-161-0/+6
| | | | | | | | | Introduces the '{http://nextcloud.com/ns}language' prop that gives the user's language Closes #28449 Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* Make sure that the dav propfind plugins always use the proper user idJulius Härtl2021-07-222-3/+24
| | | | | | | | For old android versions it could happen that the requests are performed with a login name instead of the actual user id, so before this change the property methods used the wrong value for fetching their information Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Throttle on public DAV endpointLukas Reschke2021-06-221-1/+15
| | | | | | We should throttle whenever an invalid request is sent to the public WebDAV endpoint. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Header must contain a colonacsfer2021-06-091-1/+1
|
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-0439-51/+12
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* migration to Circles 22Maxence Lange2021-05-291-4/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* l10n: Spelling unificationValdnet2021-05-041-1/+1
| | | | | Spelling unification in Transifex. Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* Only set copy etag if the destination source can be foundChristoph Wurst2021-04-231-1/+8
| | | | | | | | | | The etag is only set for files, but it's also possible that in edge cases the copy destination node can't be found. In that case we don't need to set any etag. Required for #26083 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Only write checksum if we have a valid file infoChristoph Wurst2021-03-221-1/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add a setting to restrict returning a full match unless in phonebook or same ↵Joas Schilling2021-03-101-13/+23
| | | | | | group Signed-off-by: Joas Schilling <coding@schilljs.com>
* Restrict autocompletion also based on the phonebook known usersJoas Schilling2021-03-101-33/+55
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix the SharesPluginRoeland Jago Douma2021-03-021-19/+41
| | | | | | | | Another attempt to fix all the typing and handling in the sharesplugin. In short we should probably have a lot more type hinting in several places. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Bump nextcloud/coding-standard from 0.3.0 to 0.5.0dependabot-preview[bot]2021-02-189-27/+27
| | | | | | | | | | Bumps [nextcloud/coding-standard](https://github.com/nextcloud/coding-standard) from 0.3.0 to 0.5.0. - [Release notes](https://github.com/nextcloud/coding-standard/releases) - [Changelog](https://github.com/nextcloud/coding-standard/blob/master/CHANGELOG.md) - [Commits](https://github.com/nextcloud/coding-standard/compare/v0.3.0...v0.5.0) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #25383 from nextcloud/bugfix/24893Roeland Jago Douma2021-01-291-0/+3
|\ | | | | Properly handle SMB ACL blocking scanning a directory
| * Properly handle SMB ACL blocking scanning a directoryJulius Härtl2021-01-291-0/+3
| | | | | | | | | | | | | | | | This makes sure that a possible ForbiddenException is properly passed through the storage as a ForbiddenException and can be catched when trying to fetch the quota info of a parent folder Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #25218 from ↵Christoph Wurst2021-01-291-2/+18
|\ \ | |/ |/| | | | | nextcloud/fix/25213/do-no-remove-vali-dav-group-shares do not remove valid group shares
| * do not remove valid group sharesArthur Schiwon2021-01-191-2/+18
| | | | | | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* | Catch NotFoundException when querying quotaVincent Petry2021-01-251-0/+2
| | | | | | | | | | | | | | | | Fixes parent folder that becomes inaccessible when it contains a non-existing / broken entry because the quota check made the PROPFIND on parent fail altogether. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | also use storage copy when dav copying directoriesRobin Appelman2021-01-211-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Bump icewind/streams from 0.7.1 to 0.7.2Christoph Wurst2020-12-291-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-1624-23/+27
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* use a consistent default value for sharing.maxAutocompleteResultsArthur Schiwon2020-12-151-1/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* dav search to honour sharing.maxAutocompleteResults settingArthur Schiwon2020-12-151-1/+2
| | | | | | | - it is being used on frontend by users - user and big instances benefit from quicker results and less load Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Handle deck share type in audit and dav appJulius Härtl2020-12-091-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #24358 from nextcloud/dav-storage-copyMorris Jobke2020-12-031-2/+24
|\ | | | | use storage copy implementation when doing dav copy
| * use storage copy implementation when doing dav copyRobin Appelman2020-11-241-2/+24
| | | | | | | | | | | | | | | | instead of using the sabredav fallback (which does a read+write stream copy) this greatly speeds up dav copies Signed-off-by: Robin Appelman <robin@icewind.nl>
* | A valid user session is required for circles.Daniel Kesselberg2020-11-261-1/+3
| | | | | | | | | | | | The circles app depends on a valid userId. A public shared calender might be viewed by guests without a user session. For such requests the principal is null. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Update phpdoc for circleToPrincipalDaniel Kesselberg2020-11-261-8/+1
|/ | | | | | as the QueryException is already catched inside circleToPrincipal. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Have the CommentsPropertiesPlugin use the new fancy methodRoeland Jago Douma2020-11-041-18/+27
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Format code to a single space around binary operatorsChristoph Wurst2020-10-052-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix numeric folders throwing on markDirtyJoas Schilling2020-09-241-0/+12
| | | | | | | | | | | | | TypeError: strpos() expects parameter 1 to be string, int given The problem is that in cacheNode() we strip of any slashes, so a folder "0/" will be trimmed to "0" and be used as an array key. Since PHP automatically casts numeric array keys to integers, you afterwards get $nodePath as int(0). Since it's now a number, the strpos() function does not accept it anymore. Simply casting $nodePath to a string again in the foreach solves the issue Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #22799 from ↵Morris Jobke2020-09-141-0/+5
|\ | | | | | | | | nextcloud/bugfix/noid/dont-log-microsoft-webdav-client-trying-to-tag Don't log Microsoft WebDAV client trying to tag things
| * Don't log Microsoft WebDAV client trying to tag thingsJoas Schilling2020-09-111-0/+5
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Mitigate encoding issue with user principal uriGeorg Ehrke2020-09-101-1/+5
|/ | | | Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Properly catch exception from writing to stream when copying a fileJulius Härtl2020-09-101-2/+9
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
| | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not keep the part file if the forbidden exception has retry set to falseJulius Härtl2020-09-031-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-244-1/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>