aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
Commit message (Collapse)AuthorAgeFilesLines
* refactor: Apply rector refactoringschore/deps/rector-2.0provokateurin2025-05-144-17/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(dav): only consider user's principal for unsharing entriesbug/49834/calendar-unsharingDaniel Kesselberg2025-05-142-2/+2
| | | | | | | | | | Before: Find all entries in `dav_shares` with `access = 5` for the user's principal, as well as group and circle memberships. After: Find all entries in `dav_shares` with `access = 5` solely for the user's principal. Future support for unsharing group or circle principals could be considered as a feature enhancement. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(caldav): prevent unshare entry creation for owner unsharingDaniel Kesselberg2025-05-148-29/+355
| | | | | | | | | | | | | - Introduces a `unshare` method in `CalDavBackend` to handle user unshares. - Implements check to determine if unshare entry is needed based on group/circle membership. - Ensures `updateShares` is only used when the calendar owner manages shares. - Resolves issue where unsharing a calendar as owner created an unshare entry in `oc_dav_shares`. Related PRs: - https://github.com/nextcloud/server/pull/43117 - https://github.com/nextcloud/server/pull/47737 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(dav): remove unnecessary plugin getHTTPMethodsfeat/file-drop-recursiveJohn Molakvoæ (skjnldsv)2025-05-131-14/+0
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* feat(dav): allow uploading folders to public sharesJohn Molakvoæ (skjnldsv)2025-05-133-38/+118
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix: add calendar enablefix/noid/calendar-enabledSebastianKrupinski2025-05-094-2/+55
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* Merge pull request #52586 from nextcloud/bugfix/noid/remove-sleep-from-throttlerDaniel2025-05-063-5/+12
|\ | | | | fix(throttler): Always use the sleepDelayOrThrowOnMax instead of deprecated sleepDelay
| * fix(throttler): Remove the sleep from the throttler that throwsbugfix/noid/remove-sleep-from-throttlerJoas Schilling2025-05-023-5/+12
| | | | | | | | | | | | | | The sleep is not adding benefit when it's being aborted with 429 in other cases anyway. Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #52182 from nextcloud/feat/dav/public-share-chunked-uploadJohn Molakvoæ2025-05-0612-42/+175
|\ \
| * | feat(dav): Enable chunked upload for public sharesprovokateurin2025-05-052-1/+14
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * | feat(dav): Allow UploadHome to handle public sharesprovokateurin2025-05-053-6/+21
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * | refactor(dav): Pass UID from UploadHome to UploadFolder and CleanupServiceprovokateurin2025-05-053-15/+27
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * | refactor(dav): Replace baseuri manipulation with RootCollection for public ↵provokateurin2025-05-055-25/+113
| | | | | | | | | | | | | | | | | | shares Signed-off-by: provokateurin <kate@provokateurin.de>
| * | feat(dav): Allow share principalsprovokateurin2025-05-051-0/+5
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | | feat: Calendar Exportfeat/issue-563-calendar-exportSebastianKrupinski2025-05-066-1/+277
|/ / | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* / fix(dav): move orphan cleaning logic to a chunked background jobRichard Steinmetz2025-05-052-62/+114
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* Merge pull request #52228 from nextcloud/fix/issue-50748-calendar-object-moveChristoph Wurst2025-04-302-16/+24
|\ | | | | fix(CalDAV): do not ignore move command object target uri
| * fix: do not ignore move command object target urifix/issue-50748-calendar-object-moveSebastianKrupinski2025-04-162-16/+24
| | | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* | fix(dav): check the owner displayName scope before giving attributeskjnldsv2025-04-303-1/+24
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | perf(caldav): increase chunk size in RemoveOrphanEventsAndContacts repair stepperf/caldav/bigger-chunks-orphan-repairRichard Steinmetz2025-04-291-1/+1
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | Merge pull request #51592 from nextcloud/fix/search-castFerdinand Thiessen2025-04-291-1/+7
|\ \ | | | | | | fix(dav): throw invalid argument when property type does not match
| * | fix(dav): throw invalid argument when property type does not matchfix/search-castFerdinand Thiessen2025-04-271-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Resolves https://github.com/nextcloud/server/issues/49972 Currently a TypeError is thrown when casting fails, this lead to a HTTP 500 error. Instead throw a proper InvalidArgumentError so the user receives a HTTP 400. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | fix: check if config is enabled before creating a default contactfix/default-contactHamza Mahjoubi2025-04-281-0/+7
|/ / | | | | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* | refactor(dav): refactor inline event listenerschore/dav/refactor-inline-listenersRichard Steinmetz2025-04-253-29/+11
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | refactor(dav): use first class callable syntax to boot the appchore/dav/first-class-callableRichard Steinmetz2025-04-251-4/+4
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | Merge pull request #51438 from ↵Daniel2025-04-241-1/+4
|\ \ | | | | | | | | | | | | nextcloud/perf/db/cards-properties-abid-name-value-idx perf(db): Extend index on cards_properties to cover name and value
| * | perf(db): Extend index on cards_properties to cover name and valueperf/db/cards-properties-abid-name-value-idxChristoph Wurst2025-03-121-1/+4
| | | | | | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | | Merge pull request #52241 from ↵Ferdinand Thiessen2025-04-231-1/+1
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/bugfix/noid/fix-room-or-resource-condition fix(caldav): Fix check for ROOM or RESOURCE condition
| * | | fix(caldav): Fix check for ROOM or RESOURCE commentbugfix/noid/fix-room-or-resource-conditionJoas Schilling2025-04-221-1/+1
| | | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | | fix(dav): allow uploading of files with long filenamesfix/path-lengthFerdinand Thiessen2025-04-221-3/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | A filename must be less or equal 255 characters, but when adding the `.part` and `.ocfiletransfer` extensions we might overflow this limit. So we should also use filename hashes for uploading when the file has a long filename, similar like when we are uploading to the user storage directly. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | | refactor(dav): simplify length header handlingFerdinand Thiessen2025-04-221-31/+25
|/ / / | | | | | | | | | | | | | | | Reduce nesting and drop duplicated sections. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | / feat(files_sharing): add WebDAV property for the `hide-download` state of sharesFerdinand Thiessen2025-04-161-2/+15
| |/ |/| | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | Merge pull request #51729 from ↵Louis2025-04-151-14/+25
|\ \ | | | | | | | | | | | | nextcloud/artonge/support_oc_checksum_in_bulk_upload feat: Support OC-Checksum in bulk upload
| * | feat: Support OC-Checksum in bulk uploadartonge/support_oc_checksum_in_bulk_uploadLouis Chemineau2025-04-011-14/+25
| | | | | | | | | | | | | | | | | | To align with the rest of Nextcloud. Signed-off-by: Louis Chemineau <louis@chmn.me>
* | | Revert "feat(bulk-upload): change the default to disabled as there are still ↵revert-51431-enh/noid/disable-bulk-uploadLouis2025-04-111-1/+1
| | | | | | | | | | | | some bugs present"
* | | Merge pull request #51431 from nextcloud/enh/noid/disable-bulk-uploadTobias Kaminsky2025-04-111-1/+1
|\ \ \ | | | | | | | | feat(bulk-upload): change the default to disabled as there are still some bugs present
| * | | feat(bulk-upload): change the default to disabled as there are still some ↵enh/noid/disable-bulk-uploadSimon L.2025-04-101-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | bugs present Signed-off-by: Simon L. <szaimen@e.mail.de>
* | | | fix: fix preloading files with no custom propertiescustom-properties-preload-negativeRobin Appelman2025-04-091-1/+4
|/ / / | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | fix(dav): Really only run the chunk cleanup oncebugfix/noid/only-check-to-cleanup-chunks-onceJoas Schilling2025-04-081-0/+1
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #51010 from nextcloud/uploadfolder-reworkRobin Appelman2025-04-023-24/+41
|\ \ \ | | | | | | | | fix: rework UploadFolder implementation
| * | | fix: rework UploadFolder implementationuploadfolder-reworkRobin Appelman2025-02-253-24/+41
| | | | | | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | | Merge pull request #51845 from nextcloud/zip-download-no-sabre-responseFerdinand Thiessen2025-04-011-0/+17
|\ \ \ \ | | | | | | | | | | fix: don't have sabre/dav send it's own reponse if we already send the zip response
| * | | | fix: don't have sabre/dav send it's own reponse if we already send the zip ↵zip-download-no-sabre-responseRobin Appelman2025-04-011-0/+17
| | |/ / | |/| | | | | | | | | | | | | | | | | | response Signed-off-by: Robin Appelman <robin@icewind.nl>
* / | | fix(oauth2): retain support for legacy ownCloud clientsfix/oauth2/retain-legacy-oc-client-supportRichard Steinmetz2025-04-012-1/+12
|/ / / | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | fix(dav): Give proper HTTP status code on MKCOL when quota exceededfix/mkcol-quota-exceeded-responseMarcel Klehr2025-03-311-1/+33
| | | | | | | | | | | | Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* | | feat: add example contact on first loginfeat/cardav-example-contactHamza Mahjoubi2025-03-265-1/+3762
| | | | | | | | | | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* | | fix(dav): filter user files when updating tagsskjnldsv2025-03-253-2/+62
| | | | | | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | | Merge pull request #51195 from nextcloud/feat/photo-cache-avifKate2025-03-181-0/+1
|\ \ \ | | | | | | | | feat: Allow AVIF content type in PhotoCache
| * | | feat: Allow AVIF content type in PhotoCachefeat/photo-cache-avifMiguel Sánchez de León Peque2025-03-031-0/+1
| | | | | | | | | | | | | | | | Signed-off-by: Miguel Sánchez de León Peque <peque@ieco.io>
* | | | Merge pull request #51457 from nextcloud/fix/dav-csrfFerdinand Thiessen2025-03-171-2/+3
|\ \ \ \ | | | | | | | | | | fix(dav): do not require CSRF for safe and indempotent HTTP methods