aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib/Connector
Commit message (Collapse)AuthorAgeFilesLines
* fix(dav): Emit `BeforeZipCreatedEvent` when creating folder zip archivefix/bring-back-zip-eventFerdinand Thiessen2024-09-292-36/+37
| | | | | | This is required to not break behavior on zip download (apps should be able to react to zip download especially for shares). Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(dav): New `ZipFolderPlugin` which allows to download folders using GET ↵Ferdinand Thiessen2024-09-282-0/+160
| | | | | | requests Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-203-6/+6
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-196-7/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Override start method of \Sabre\DAV\Server to remove exception outputartonge/fix/remove_unnecessary_formatingLouis Chemineau2024-09-181-0/+23
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-6/+8
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #48031 from nextcloud/fix/filesreport-cast-fileId-to-intAnna2024-09-161-1/+1
|\ | | | | fix(filesreport): cast fileId to integer
| * fix(filesreport): cast fileId to integerfix/filesreport-cast-fileId-to-intAnna Larch2024-09-151-1/+1
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | fix(dav): set string type for sanitizeMtimefix/add-function-type-for-mimetype-sanitizerAnna Larch2024-09-151-1/+1
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: Adjust unit tests and protect against XSSFerdinand Thiessen2024-09-062-6/+14
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(dav): Update 403 error messageCamila2024-09-061-1/+2
| | | | | | | | * The user should get a more friendly warning when their desktop client version is not supported anymore by the server. See #nextcloud/desktop/issues/6273 * Update BlockLegacyClientPluginTest to reflect the new 403 error message. Signed-off-by: Camila Ayres <hello@camilasan.com>
* fix(dav): Always respond custom error page on exceptionsLouis Chemineau2024-09-051-4/+2
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Allow read-only filename validation to allow reading filesFerdinand Thiessen2024-08-281-1/+1
| | | | | | Needed to read files with the "Windows compatibility" feature. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Renaming does not need update but delete permissionsFerdinand Thiessen2024-08-281-3/+3
| | | | | | | Renaming is basically copy + delete (a move), so no need to update permissions. Especially if the node is in a invalid directory the node should be moveable but not editable. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(dav): Pre-check if node can be copied or moved in DAV files pluginFerdinand Thiessen2024-08-282-38/+72
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat: Delegate is-encrypted handling to the e2ee appLouis Chemineau2024-08-261-6/+0
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-2511-17/+17
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat: Make `ISharedStorage` public API and reuse where possibleFerdinand Thiessen2024-08-122-18/+18
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(dav): Ensure share properties are also set on public remote endpointFerdinand Thiessen2024-08-122-24/+17
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: keep previous exception when wrapping dav exceptionsRobin Appelman2024-07-231-10/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(caldav): stricter default calendar checksRichard Steinmetz2024-07-221-1/+3
| | | | | | | | | | | Reject calendars that - are subscriptions - are not writable - are shared with a user - are deleted - don't support VEVENTs Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #46225 from nextcloud/fix/issue-11633Andy Scherzinger2024-07-191-7/+14
|\ | | | | fix(dav): Thrown forbidden error for authenticated user instead of no…
| * fix(dav): Thrown forbidden error for authenticated user instead of not foundSebastianKrupinski2024-07-101-7/+14
| | | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* | fix(dav): Verify target path in `setName` instead of source pathFerdinand Thiessen2024-07-161-5/+8
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: Authorization header can be an empty stringJulius Härtl2024-06-281-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #45973 from nextcloud/remove-chunking-v1Julius Härtl2024-06-246-218/+4
|\ | | | | chore: remove chunking-v1
| * chore: remove chunking-v1Robin Appelman2024-06-196-218/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(dav): Try basic auth for ajax WebDAV requestsFerdinand Thiessen2024-06-181-7/+5
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(dav): also return shared-with-me shares dataskjnldsv2024-06-121-32/+43
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge pull request #45120 from ↵Ferdinand Thiessen2024-06-101-0/+3
|\ | | | | | | | | nextcloud/bugfix/noid/sensitive-dav-forbidden-logging fix(dav): Don't log access control as error
| * fix(dav): Don't log access control as errorJoas Schilling2024-04-301-0/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | chore: Add SPDX headerAndy Scherzinger2024-05-2745-1038/+157
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | feat(caldav): expose calendar subscriptionsDaniel Kesselberg2024-05-071-0/+2
|/ | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: Fix incorrect phpdoc typing in dav appCôme Chilliet2024-04-301-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(DAV): Migrate known exceptions to Sabre exceptions when copyingJoas Schilling2024-04-241-11/+19
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #44332 from nextcloud/fix/fix-chunkupload-quota-checkCôme Chilliet2024-04-021-4/+6
|\ | | | | fix(dav): Fix quota check for chunk upload
| * fix(dav): Fix quota check for chunk uploadCôme Chilliet2024-04-021-4/+6
| | | | | | | | | | | | | | Do not ignore OC-Total-Length when Content-Length and X-Expected-Entity-Length are missing Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | chore: Improve phpdoc typing to silence psalm errorsCôme Chilliet2024-04-022-1/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Apply new coding standard to all filesCôme Chilliet2024-04-028-10/+10
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(metadata): get deprecated status using file etagMaxence Lange2024-03-071-6/+2
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-041-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(dav): update a principal's schedule-default-calendar-URLRichard Steinmetz2024-02-282-0/+2
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #39214 from shdehnavi/replace_substr_calls_in_dav_appJohn Molakvoæ2024-02-233-3/+3
|\
| * Refactors "substr" calls to improve code readabilityHamid Dehnavi2024-02-233-3/+3
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | Merge pull request #42459 from nextcloud/fix/dav/fallback-realmJohn Molakvoæ2024-02-233-3/+3
|\ \ | |/ |/|
| * fix(dav): fallback realm for HTTP authenticationMichaIng2024-02-143-3/+3
| | | | | | | | | | | | | | | | | | | | By default, the name of the Nextcloud instance is an empty string, until changed by the admin. This leads to an empty realm sent with the WWW-Authenticate header, while the realm is mandatory for Basic HTTP authentication. Some clients have issues with an empty realm, e.g. Thunderbird cannot store passwords in this case. This commit applies "Nextcloud" as fallback for the realm, in case the name of the Nextcloud instance is not set. Solves: https://help.nextcloud.com/t/thunderbird-dont-save-caldav-password-because-of-missing-httprealm-or-formsubmiturl/93233 Signed-off-by: MichaIng <micha@dietpi.com>
* | Check share attributes when downloading versionsLouis Chemineau2024-02-211-1/+1
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | perf: skip request without read permissionRichard Steinmetz2024-02-191-4/+9
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | enh(sharing): enable unsharing for sharees for DAV shares (addressbooks and ↵Anna Larch2024-02-151-0/+4
|/ | | | | | calendars) Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(files): add mount root property and adjust delete wordingJohn Molakvoæ2024-02-061-0/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>