aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* fix(caldav): stricter default calendar checksRichard Steinmetz2024-07-224-9/+249
| | | | | | | | | | | 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>
* feat(files_sharing): add public name prompt for files requestsskjnldsv2024-07-181-0/+15
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat: Improve recurrence invitations messagesSebastianKrupinski2024-07-172-137/+2195
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* Merge pull request #46510 from nextcloud/feat/info-xml-backendsRichard Steinmetz2024-07-171-1/+19
|\ | | | | feat: hide caldav server settings if no app uses the caldav backend
| * feat: hide caldav server settings if no app uses the caldav backendRichard Steinmetz2024-07-161-1/+19
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | fix(dav): Verify target path in `setName` instead of source pathFerdinand Thiessen2024-07-161-2/+2
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | refactor: Migrate filename validation logic from `Storage` to ↵Ferdinand Thiessen2024-07-161-3/+4
|/ | | | | | `FilenameValidator` Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(caldav): limit vevent sizeSebastianKrupinski2024-07-041-0/+73
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* fix(carddav): limit vcard sizeSebastianKrupinski2024-07-041-0/+73
| | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* fix(caldav): when message is a reply compare the message sender not the ↵SebastianKrupinski2024-06-252-1/+72
| | | | | | | recipient Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com> Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #46002 from nextcloud/debt/noid/use-new-http-clientDaniel2024-06-251-59/+314
|\ | | | | Use guzzle for addressbook federation
| * refactor(dav): migrate to new http clientDaniel Kesselberg2024-06-251-59/+314
| | | | | | | | | | | | The request method is available since 29 and thus we can finally use the modern http client to send the report request for the addressbook sync. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #45532 from nextcloud/feat/publish-resources-room-updateRichard Steinmetz2024-06-251-388/+5
|\ \ | | | | | | feat: implement public OCP api to update resources and rooms
| * | feat: implement public OCP api to update resources and roomsRichard Steinmetz2024-05-271-388/+5
| | | | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | | Merge pull request #46095 from ↵Joas Schilling2024-06-251-2/+3
|\ \ \ | |_|/ |/| | | | | | | | nextcloud/techdebt/44770/migrate-server-notifier-to-new-exceptions feat(notifications): Migrate server INotifiers to new exceptions
| * | feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-2/+3
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | fix(userstatus): Fix user status automation in real-life scenarioJoas Schilling2024-06-251-6/+0
|/ / | | | | | | | | | | | | | | | | | | | | Order of applying: - Out-of-office - Availability - Call - Meeting - User status Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #45973 from nextcloud/remove-chunking-v1Julius Härtl2024-06-244-442/+1
|\ \ | | | | | | chore: remove chunking-v1
| * | chore: remove chunking-v1Robin Appelman2024-06-194-442/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #45999 from ↵Richard Steinmetz2024-06-201-6/+47
|\ \ \ | | | | | | | | | | | | | | | | nextcloud/fix/caldav/shared-calendars-activity-umlauts fix(caldav): encode calendar URIs with umlauts for activities
| * | | fix(caldav): encode calendar URIs with umlauts for activitiesRichard Steinmetz2024-06-201-6/+47
| |/ / | | | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* / / fix(dav): Try basic auth for ajax WebDAV requestsFerdinand Thiessen2024-06-181-26/+67
|/ / | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(dav): also return shared-with-me shares dataskjnldsv2024-06-121-1/+21
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | fix(caldav): event links in shared calendar notificationsRichard Steinmetz2024-06-111-2/+37
| | | | | | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | feat(ldap): sync additional properties to profile and SABJake Nabasny2024-05-301-3/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Synced from LDAP to profile: - Date of birth Synced from LDAP to SAB (via the profile): - Biography - Date of birth Original code by Jake Nabasny (GitHub: @slapcat) Co-authored-by: Jake Nabasny <jake@nabasny.com> Co-authored-by: Richard Steinmetz <richard@steinmetz.cloud> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* | Merge pull request #45222 from ↵Daniel2024-05-299-0/+327
|\ \ | | | | | | | | | | | | nextcloud/bug/noid/caldav-search-limit-and-timerange CalDAV fix search with limit and time range
| * | feat(caldav): order the calendar objects by start date for searchDaniel Kesselberg2024-05-283-0/+66
| | | | | | | | | | | | | | | | | | Sorting the events by the start date leads to more predictable results for the search API consumers. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
| * | fix(caldav): event search with limit and timerangeDaniel Kesselberg2024-05-287-0/+261
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Event recurrences are evaluated at runtime because the database only knows the first and last occurrence. Given, a user created 8 events with a yearly reoccurrence and two for events tomorrow. The upcoming event widget asks the CalDAV backend for 7 events within the next 14 days. If limit 7 is applied to the SQL query, we find the 7 events with a yearly reoccurrence and discard the events after evaluating the reoccurrence rules because they are not due within the next 14 days and end up with an empty result even if there are two events to show. The workaround for search requests with a limit and time range is asking for more row than requested and retrying if we have not reached the limit. Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | | chore: Add SPDX headerAndy Scherzinger2024-05-291-1/+1
|/ / | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | Merge pull request #45549 from nextcloud/chore/noid/spdx-batch7Andy Scherzinger2024-05-28213-3839/+667
|\ \ | | | | | | Add SPDX header - batch 7
| * | chore: Add SPDX headerAndy Scherzinger2024-05-28213-3839/+667
| |/ | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* / fix(dav): Rate limit address book creationHamza Mahjoubi2024-05-271-0/+146
|/ | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* feat(caldav): expose calendar subscriptionsDaniel Kesselberg2024-05-076-7/+362
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge pull request #45098 from nextcloud/fix/issue-45081Sebastian Krupinski2024-05-041-17/+67
|\ | | | | Do not load IMipPlugin before user session is initialized also use userSession instead of userId in constructor.
| * fix(caldav): Fixed phpUnit to use userSession instead of userId and userManagerSebastianKrupinski2024-05-021-17/+67
| | | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* | fix(tests): Replace deprecated methods in `FileTest`Ferdinand Thiessen2024-05-021-16/+30
|/ | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #44511 from ↵Daniel2024-04-031-0/+58
|\ | | | | | | | | nextcloud/perf/noid/skip-tree-lookup-for-non-calendar-requests perf(dav): skip non-calendar requests in webcal caching plugin
| * perf(dav): skip non-calendar requests in webcal caching pluginDaniel Kesselberg2024-03-271-0/+58
| | | | | | | | | | | | | | | | | | | | | | | | The webcal caching plugin is active when the X-NC-CalDAV-Webcal-Caching header is there. findPrincipalByUrl sends a request for /remote.php/dav/principals/users/admin/ using the caldavService which sets the header by default.[^1] As X-NC-CalDAV-Webcal-Caching only impacts calendar requests, we can skip non-calendar requests. [^1]: https://github.com/nextcloud/calendar/blob/b3670f1805ef9ef952d6abe4e5334e37b5a14133/src/services/caldavService.js#L43 Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Merge pull request #44332 from nextcloud/fix/fix-chunkupload-quota-checkCôme Chilliet2024-04-021-3/+2
|\ \ | | | | | | fix(dav): Fix quota check for chunk upload
| * | chore(dav): Fix tests for length headers on uploadCôme Chilliet2024-04-021-3/+2
| |/ | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* / fix: Apply new coding standard to all filesCôme Chilliet2024-04-024-28/+28
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(dav): wrong comparison method between two eventsRobert C. Schaller2024-03-251-0/+67
| | | | | | | | | 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): Add retention time to sync token cleanupChristoph Wurst2024-03-213-14/+38
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #44376 from nextcloud/fix/dav/acls-shared-addressbookHamza2024-03-211-1/+1
|\ | | | | fix(dav): ACLs for shared addressbooks
| * fix(dav): ACLs for shared addressbooksChristoph Wurst2024-03-211-1/+1
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | fix(systemtags): Forbid tagging of readonly filesCôme Chilliet2024-03-193-47/+76
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #44130 from nextcloud/fix/dav/occ-fix-caldav-sync-tokensChristoph Wurst2024-03-142-3/+94
|\ | | | | fix(dav): Add occ command to fix missing caldav sync tokens
| * fix(dav): Add occ command to fix missing caldav sync tokensChristoph Wurst2024-03-122-3/+94
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | test(dav): Add unit test for no calendars/subscription limitChristoph Wurst2024-03-121-0/+38
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-044-28/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>