aboutsummaryrefslogtreecommitdiffstats
path: root/apps/dav/tests
Commit message (Collapse)AuthorAgeFilesLines
* refactor(dav): move shared logic to a dedicated example contact servicerefactor/dav/example-contact-serviceRichard Steinmetz2025-06-192-32/+61
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* feat: create example event when a user logs in for the first timeRichard Steinmetz2025-06-1610-2/+302
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix: use correct format for getlastmodified webdav propertybug/noid/expires-date-formatDaniel Kesselberg2025-06-101-1/+1
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(dav): file drop nicknameskjnldsv2025-06-051-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(caldav): use direct.edit route in event activitiesfix/caldav/use-direct-route-event-activityRichard Steinmetz2025-06-011-10/+2
| | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* test(dav): adjust test cases for PHPUnit 10Ferdinand Thiessen2025-05-281-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* test: Migrate remaining DAV tests to PHPUnit 10Joas Schilling2025-05-2878-1753/+1050
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: Migrate DAV Systemtags tests to PHPUnit 10tests/noid/dav-systemtagJoas Schilling2025-05-2711-386/+250
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: Migrate CardDAV tests to PHPUnit10tests/noid/carddav-testsJoas Schilling2025-05-2523-692/+488
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* test: Migrate CalDAV tests to PHPUnit10tests/noid/caldav-testsJoas Schilling2025-05-2571-1117/+829
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #52810 from ↵Louis2025-05-221-18/+16
|\ | | | | | | nextcloud/artonge/feat/do_not_require_samesite_strict_cookie_on_public.php
| * fix: Move CSRF check from base to PublicAuth for public.phpLouis Chemineau2025-05-211-18/+16
| | | | | | | | | | | | | | | | | | | | | | | | | | | | This currently prevent directly accessing a ressource when clicking on a link on a third party site. Example, clicking on `https://example.com/public.php/dav/files/pqLWcA269zfzXez/?accept=zip` in a GitHub comment. Skipping the check is an issue with password protected shares, as it allows third party sites to request the ressource when the user already entered the password, aka CSRF. So after removing the check from `base.php`, we need to add the it again in the `PublicAuth` plugin. We also add a redirect to be helpful to the user. **Warning**: this adds the limitation that clicking on a direct download link for password protected shares will redirect you to the password form, and then to the main share view. Fix #52482 Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(caldav): don't send invitations to circlesfix/caldav/no-invitations-to-circlesRichard Steinmetz2025-05-211-0/+110
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(dav): correctly handle uploading folders with same name as a filefix/file-dropFerdinand Thiessen2025-05-161-89/+72
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* refactor: Apply rector refactoringschore/deps/rector-2.0provokateurin2025-05-142-4/+7
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(caldav): prevent unshare entry creation for owner unsharingDaniel Kesselberg2025-05-147-89/+485
| | | | | | | | | | | | | - 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>
* feat(dav): allow uploading folders to public sharesJohn Molakvoæ (skjnldsv)2025-05-131-8/+100
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Merge pull request #52586 from nextcloud/bugfix/noid/remove-sleep-from-throttlerDaniel2025-05-061-1/+1
|\ | | | | 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-021-1/+1
| | | | | | | | | | | | | | 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-063-7/+14
|\ \
| * | feat(dav): Enable chunked upload for public sharesprovokateurin2025-05-051-0/+3
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * | refactor(dav): Replace baseuri manipulation with RootCollection for public ↵provokateurin2025-05-052-7/+11
| | | | | | | | | | | | | | | | | | shares Signed-off-by: provokateurin <kate@provokateurin.de>
* | | feat: Calendar Exportfeat/issue-563-calendar-exportSebastianKrupinski2025-05-062-14/+137
|/ / | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* / fix(dav): move orphan cleaning logic to a chunked background jobRichard Steinmetz2025-05-051-0/+171
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix(dav): check the owner displayName scope before giving attributeskjnldsv2025-04-302-0/+124
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: check if config is enabled before creating a default contactHamza Mahjoubi2025-04-281-2/+19
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* Merge pull request #51729 from ↵Louis2025-04-151-13/+59
|\ | | | | | | | | 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-13/+59
| | | | | | | | | | | | To align with the rest of Nextcloud. Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(oauth2): retain support for legacy ownCloud clientsfix/oauth2/retain-legacy-oc-client-supportRichard Steinmetz2025-04-011-1/+7
|/ | | | Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* feat: add example contact on first loginfeat/cardav-example-contactHamza Mahjoubi2025-03-262-0/+153
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* fix(dav): filter user files when updating tagsskjnldsv2025-03-251-0/+10
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(cardav): only show useres from enabled addressBooks in contacts menufix/noid/contactsmenu-ab-enabledHamza Mahjoubi2025-03-172-5/+30
| | | | Signed-off-by: Hamza Mahjoubi <hamzamahjoubi221@gmail.com>
* fix: skip caching lastSeenQuotaUsage for remote sharesbug/noid/skip-quote-cache-for-remote-sharesDaniel Kesselberg2025-03-141-0/+2
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(dav)!: migrate OCA calendar object events to OCPEdward Ly2025-03-072-2/+2
| | | | Signed-off-by: Edward Ly <contact@edward.ly>
* fix(dav): Create SAB at installationfix/dav/create-sab-installChristoph Wurst2025-03-061-0/+47
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-1316-48/+78
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: re-apply current rector configuration to apps folderCôme Chilliet2025-02-131-1/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #49648 from nextcloud/fix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
|\ | | | | Clarify app manager method names
| * fix: Replace getInstalledApps calls with getEnabledAppsfix/clarify-app-manager-methodsCôme Chilliet2025-02-131-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(tests): Order card properties by name to avoid issuesfix/migrate-dav-to-eventsCôme Chilliet2025-02-101-5/+6
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix(dav): Migrate from hooks to user eventsCôme Chilliet2025-02-102-222/+140
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(TasksSearchProviderTest): adjust deep link to Tasks appfix/49473/task-urlRaimund Schlüßler2025-01-241-3/+3
| | | Signed-off-by: Raimund Schlüßler <raimund.schluessler@mailbox.org>
* Merge pull request #50034 from ↵Richard Steinmetz2025-01-111-1/+1
|\ | | | | | | | | nextcloud/rename-deleted-default-calendar-in-trashbin fix(caldav): rename default calendar to keep it in the trashbin instead of purging it
| * fix(caldav): rename default calendar to keep it in the trashbin instead of ↵rename-deleted-default-calendar-in-trashbinThomas Citharel2025-01-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | purging it When doing a PROPFIND on default-calendar-url, if the current default calendar (fallbacking on personal uri) is in the trashbin, it's being purged so that it's recreated. This leads to loss of data. We can simply rename the calendar URI and add a unique suffix so that it doesn't conflict with the new calendar being created. Shares are fine because they reference the resourceid and not the calendar URI. Signed-off-by: Thomas Citharel <tcit@tcit.fr>
* | Merge pull request #49852 from nextcloud/fix/issue-49756-translationsSebastian Krupinski2025-01-071-49/+497
|\ \ | | | | | | fix: change translation logic to handle plurals better
| * | fix: change translation logic to handle plurals betterfix/issue-49756-translationsSebastianKrupinski2025-01-061-49/+497
| |/ | | | | | | Signed-off-by: SebastianKrupinski <krupinskis05@gmail.com>
* / fix: explicitly ignore nested mounts when transfering ownershipmount-move-checksRobin Appelman2025-01-061-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #49731 from ↵Joas Schilling2024-12-161-6/+13
|\ | | | | | | | | nextcloud/bugfix/noid/allow-to-get-permissions-of-a-principal fix(calendar): Fix getting the permissions of the user
| * test: Adjust tests to proof exclusion of other principal permissionsbugfix/noid/allow-to-get-permissions-of-a-principalJoas Schilling2024-12-161-6/+13
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #49528 from nextcloud/fix/issue-47879-property-serializationSebastian Krupinski2024-12-131-0/+18
|\ \ | | | | | | fix: replace null character when serializing