aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/Share20
Commit message (Collapse)AuthorAgeFilesLines
* fix: Exclude non accepted shares when computing access listartonge/fix/access_list_unaccepted_sharesLouis Chemineau2025-01-301-0/+9
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(sharing): Move permission validation to share managerFerdinand Thiessen2025-01-281-4/+24
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Revert "fix(Share20\Manager): Ensure node is still accessible when checking ↵revert/share-node-accessibleprovokateurin2025-01-241-29/+4
| | | | | | | | share" This reverts commit c2ca99e2f641396b6823c1e675afd3ecb486e744. Signed-off-by: provokateurin <kate@provokateurin.de>
* test: Update testsChristopher Ng2025-01-151-0/+7
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* fix(tests): Adapt ManagerTest to change in Exception class usedfix/remove-share-hint-exception-wrappingCôme Chilliet2024-12-121-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(Share20\Manager): Ensure node is still accessible when checking shareprovokateurin2024-11-251-4/+29
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(Share20\Manager): Return all shares on IShareOwnerlessMountprovokateurin2024-11-251-0/+69
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Share20\DefaultShareProvider): Return link shares in getSharesByPath()provokateurin2024-11-251-0/+85
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #47425 from ↵Côme Chilliet2024-11-041-3/+187
|\ | | | | | | | | nextcloud/fix/avoid-invalid-share-on-transfer-ownership fix: promote re-shares when deleting the parent share
| * fix: Use getRelativePath method to check if node is inside folderfix/avoid-invalid-share-on-transfer-ownershipCôme Chilliet2024-10-141-10/+14
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Fix promotion of reshares from subsubfoldersCôme Chilliet2024-10-141-16/+84
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix(tests): Fix share tests to test new reshare promotion systemCôme Chilliet2024-10-141-17/+17
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Tidy up code for reshare deletionCôme Chilliet2024-10-141-8/+8
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: delete re-shares when deleting the parent shareLuka Trovic2024-10-141-3/+115
| | | | | | | | | | | | | | Note: Removed part about fix command from original PR Signed-off-by: Luka Trovic <luka@nextcloud.com> Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Prevent breaking change in IQueryBuilderFerdinand Thiessen2024-10-172-2/+2
| | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | fix(share): Return empty string if no label is setFerdinand Thiessen2024-10-141-0/+34
|/ | | | | | | | | * Resolves: https://github.com/nextcloud/server/issues/48629 While the database supports NULL, the typing has always said it only returns *string*. So to not break any apps that might trust the typings we should return `''` if the database is set to `NULL`. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(l10n): Rephrasing some exceptions to be translatedGit'Fellow2024-09-201-23/+23
| | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> fix: Fix tests Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-20/+20
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-161-13/+13
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor: Add void return type to PHPUnit test methodsChristoph Wurst2024-09-156-181/+181
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* fix: share manager tests translation stringJohn Molakvoæ2024-09-041-1/+1
| | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* test: fix share provider tests for shardingRobin Appelman2024-08-282-6/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-28/+28
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix(tests): Adapt tests to change of DefaultShareProvider constructorCôme Chilliet2024-08-121-6/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-8/+20
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(tests): Fix tests with new LazyUser usage in DefaultShareProviderCôme Chilliet2024-06-171-11/+19
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: Add SPDX headerAndy Scherzinger2024-05-136-108/+15
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* test: adjust test to new permissions check logicRobin Appelman2024-05-031-6/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(tests): Fix tests when daytime saving time change happened recentlyCôme Chilliet2024-04-021-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(files_sharing): allow to specify allowed groups to share instead of ↵Corentin Damman2024-03-151-2/+9
| | | | | | | | excluded groups Relates to #3387 Signed-off-by: Corentin Damman <c.damman@intopix.com>
* Merge pull request #40131 from summersab/refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-152-4/+6
|\
| * Merge branch 'master' into refactor/OC-Server-getShareManagerJohn Molakvoæ2024-03-153-265/+183
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | Refactor `OC\Server::getShareManager`Andrew Summers2023-08-292-4/+6
| | | | | | | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | | Merge branch 'master' into refactor/OC-Server-getRootFolderJohn Molakvoæ2024-03-152-251/+153
|\ \ \ | | |/ | |/| Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * | refactor: make share manager buildableRobin Appelman2024-03-061-176/+19
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-042-58/+58
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-221-22/+76
| | | | | | | | | | | | | | | | | | | | | | | | Because of timezones, not saving time can lead to unexpected behaviour when sharing an item sooner than timezone offset Example: sharing a file before 9am when in UTC+9 Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * | fix: phpunitJohn Molakvoæ2024-02-131-2/+2
| | | | | | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * | feat: rename users to account or personVincent Petry2024-02-131-2/+2
| | | | | | | | | | | | | | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * | feat(php,vue): Create a new parameterBaptiste Fotia2024-01-311-0/+5
| | | | | | | | | | | | Signed-off-by: Baptiste Fotia <fotia.baptiste@hotmail.com>
| * | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-231-2/+2
| | | | | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | | Refactor `OC\Server::getRootFolder`Andrew Summers2023-11-101-3/+3
|/ / | | | | | | Signed-off-by: Andrew Summers <18727110+summersab@users.noreply.github.com>
* | Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-041-10/+25
|\ \ | | | | | | move share permission logic to storage wrapper
| * | cleanup di for share permissions wrapperRobin Appelman2023-08-161-10/+25
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-16/+17
| | | | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | | sharebymail: remove ILogger and upgrade to PHP 8 syntaxBenjamin Gaussorgues2023-08-301-5/+5
| |/ |/| | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | Fix tests, add test for the new featureCôme Chilliet2023-08-281-13/+77
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Remove legacy dispatcher from share managerJoas Schilling2023-07-282-17/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate unShare events to typed eventsJoas Schilling2023-07-282-41/+64
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat!: Migrate Sharing events to typed eventsJoas Schilling2023-07-282-40/+42
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>