summaryrefslogtreecommitdiffstats
path: root/apps/dav/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(caldav): loop through all events for busy eventsAnna Larch2024-05-141-12/+9
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #45016 from nextcloud/backport/45001/stable27Joas Schilling2024-05-061-11/+19
|\ | | | | [stable27] fix(DAV): Migrate known exceptions to Sabre exceptions when copying
| * fix(DAV): Migrate known exceptions to Sabre exceptions when copyingJoas Schilling2024-04-241-11/+19
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix(CalDAV): remove UNKNOWN from room / resource considerationAnna Larch2024-04-261-1/+1
|/ | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #44472 from nextcloud/backport/44017/stable27Git'Fellow2024-04-171-1/+1
|\ | | | | [stable27] Fix/caldav/eventcomparisionservice uses wrong array comparison
| * fix(dav): wrong comparison method between two eventsRobert C. Schaller2024-03-261-1/+1
| | | | | | | | | | | | | | | | | | Old comparison implementation compares each element of the array against each other with no respect for the associated array label, which leads to wrongful removals because one value is accidentally present in a completely different label. New comparison works 'by-label' individually. Partly fixes #41084 because changes between 'SEQUENCE' not present, 'SEQUENCE:0' and 'SEQUENCE:1' were not detected in the old implementation and thus no email update sent. Co-authored-by: Christoph Wurst <ChristophWurst@users.noreply.github.com> Signed-off-by: Robert C. Schaller <gtbc_robert.schaller@rsxc.de>
* | fix(dav): Fix quota check for chunk uploadCôme Chilliet2024-04-041-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>
* Merge pull request #44385 from nextcloud/backport/44360/stable27Benjamin Gaussorgues2024-03-211-0/+4
|\
| * fix(caldav): add EXDATE and EXRULE to confidential objectAnna Larch2024-03-211-0/+4
| | | | | | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* | Merge pull request #44378 from nextcloud/backport/44376/stable27Andy Scherzinger2024-03-212-2/+7
|\ \ | |/ |/| [stable27] fix(dav): ACLs for shared addressbooks
| * fix(dav): ACLs for shared addressbooksChristoph Wurst2024-03-212-2/+7
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(dav): Add missing use for OCP\ConstantsCôme Chilliet2024-03-191-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | chore: Break closure call on two lines to make it readableCôme Chilliet2024-03-192-2/+4
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(systemtags): Forbid tagging of readonly filesCôme Chilliet2024-03-194-161/+43
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Use proper path when trying to check if a file needs to get copiedJulius Härtl2024-03-081-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #43798 from nextcloud/backport/42459/stable27John Molakvoæ2024-02-293-3/+3
|\
| * fix(dav): fallback realm for HTTP authenticationMichaIng2024-02-233-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>
* | Merge pull request #43799 from nextcloud/backport/39553/stable27John Molakvoæ2024-02-291-2/+4
|\ \
| * | Bug fix: Select the correct table based on CALENDAR_TYPE_CALENDARPatrick Fischer2024-02-231-2/+4
| |/ | | | | | | Signed-off-by: Patrick Fischer <mail@patrickfischer.ch>
* / fix(dav): Init ViewOnlyPlugin after authLouis Chemineau2024-02-281-5/+5
|/ | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #43752 from nextcloud/backport/43732/stable27John Molakvoæ2024-02-223-0/+135
|\
| * fix(dav): Rate limit calendar/subscription creationChristoph Wurst2024-02-223-0/+135
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #43740 from nextcloud/backport/43727/stable27John Molakvoæ2024-02-223-6/+18
|\ \ | |/ |/|
| * Check share attributes when downloading versionsLouis Chemineau2024-02-213-6/+18
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(dav): report statusJohn Molakvoæ2024-02-211-1/+0
|/ | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* perf: skip request without read permissionRichard Steinmetz2024-02-211-4/+9
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(CalDAV): set acls for DeletedCalendarObjectsCollectionJohannes Merkel2024-01-181-1/+24
| | | | Signed-off-by: Johannes Merkel <mail@johannesgge.de>
* fix(dav): allow multiple organizers if possibleRichard Steinmetz2024-01-021-1/+67
| | | | | | | | | This is very hacky! However, we want to allow saving events with multiple organizers. Those events are not RFC compliant, but sometimes imported from major external calendar services (e.g. Google). If the current user is not an organizer of the event we ignore the exception as no scheduling messages will be sent anyway. Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(caldav): don't reuse query builder objectsAnna Larch2023-12-161-0/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(scheduling): don't send iMIP emails to rooms / resourcesAnna Larch2023-11-272-10/+27
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* Merge pull request #41730 from nextcloud/backport/41722/stable27Christoph Wurst2023-11-241-9/+23
|\ | | | | [stable27] fix(dav): Avoid date diffing if PHP is buggy
| * fix(dav): Avoid date diffing if PHP is buggyChristoph Wurst2023-11-241-9/+23
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix: lower threshold for system address book syncDaniel Kesselberg2023-11-221-1/+1
|/ | | | | | | - Switch back to countUsers to have the actual value. countSeenUsers is bad if Nextcloud is connected to a larger directory, but only a part is using Nextcloud and therefore the seen count is much lower because the sync is done for all users. - Lower the threshold to 100 for smaller installations. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #41245 from nextcloud/backport/40665/stable27Christoph Wurst2023-11-151-30/+34
|\ | | | | [stable27] fix(dav): Reduce CalDAV backend memory footprint
| * fix(dav): Reduce CalDAV backend memory footprintChristoph Wurst2023-11-061-30/+34
| | | | | | | | | | | | | | fetchAll inflates memory. Fetching in a loop allows GC to run earlier and more often. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #41371 from nextcloud/backport/41354/stable27Arthur Schiwon2023-11-151-1/+9
|\ \ | | | | | | [stable27] fix: Validate that we have a proper distributed cache configured
| * | fix: Validate that we have a proper distributed cache configuredJulius Härtl2023-11-101-1/+9
| |/ | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* / get children from dav node when preloading system tagsRobin Appelman2023-11-081-2/+4
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(dav): expand recurrences when searchingRichard Steinmetz2023-09-261-1/+12
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix: use faster method to fetch user countDaniel Kesselberg2023-09-181-1/+1
| | | | | | | | | | countUsers: the actual user count reported by the backend. countSeenUsers: count every user who was logged in once. 1: We should avoid expensive operations (like asking every backend for it's user count) in migrations. 2: The current check is wrong because countUsers returns an array. var_dump([] > 1000) => true ;) Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* only triger metadata preload logic when at least one metadata is requestedRobin Appelman2023-09-181-6/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* don't preload metadata for the sub-childenRobin Appelman2023-09-181-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(caldav): add webroot to objectid for activitiesDaniel Kesselberg2023-09-131-1/+1
| | | | | | | | | A calendar uri includes the webroot: example.com/cloud/remote.php/dav/calendars/alice/personal/ The calendar app uses base64(calendar uri) as identifier for calendar objects. Without this patch the links from activity app to calendar app don't work for installations in a subdirectory. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* only determine quota_include_external_storage once for quota wrapperRobin Appelman2023-09-071-0/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only get logger when needed in sabre/directoryRobin Appelman2023-09-071-9/+8
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(CalDAV): check birthday calendar ownerAnna Larch2023-09-072-6/+16
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(CardDAV): allow disabling of the system address book via config optionAnna Larch2023-09-051-1/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(CardDAV): only run upgrade sync if 1000 users or lessAnna Larch2023-08-272-13/+17
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix(CardDAV): set owner-principal, displayname properties for SABAnna Larch2023-08-243-4/+8
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* don't bother checking dav acl's in filesRobin Appelman2023-08-181-0/+5
| | | | | | any permissions for files is handled in the filesystem layer anyway Signed-off-by: Robin Appelman <robin@icewind.nl>