summaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/tests
Commit message (Collapse)AuthorAgeFilesLines
* refactor: make share manager buildableRobin Appelman2024-06-131-2/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor(shareApiController): use contrusctor property promotion & DI loggerfenn-cs2024-06-102-61/+46
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(sharing): Avoid (dead)locking during orphan deletionChristoph Wurst2024-05-291-2/+1
| | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at> [skip ci]
* fix(files_sharing): ShareesAPI - Return empty response when user is not ↵Ferdinand Thiessen2024-03-151-40/+74
| | | | | | | | allowed to share Resolves: https://github.com/nextcloud/server/issues/20950 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-263-9/+17
| | | | | | | | 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(tests): Adjust legacy tests for nextcloud-router updateFerdinand Thiessen2024-01-241-3/+3
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(share): use user timezone to parse share expiration dateBenjamin Gaussorgues2024-01-152-2/+19
| | | | | | | | If an user in UTC+1 try to create a share at 00:00, it's day D for him, but D-1 for the server (UTC). This fix aims to apply the correct offset Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-239-32/+30
| | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-241-3/+10
|\ | | | | Fix root mounts not being setup in some cases
| * add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-3/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | test(files_sharing): Test if recent files result use actual share target nameJulius Härtl2023-10-181-0/+37
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Fix unit tests on PHP 8.3Joas Schilling2023-10-161-0/+3
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Fix unit testsJoas Schilling2023-10-121-1/+4
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-2/+2
| | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | ocm controllerMaxence Lange2023-09-201-1/+3
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #39863 from nextcloud/sharing-mask-wrapperRobin Appelman2023-09-042-1/+7
|\ | | | | move share permission logic to storage wrapper
| * cleanup di for share permissions wrapperRobin Appelman2023-08-161-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * more share permission logic to storage wrapperRobin Appelman2023-08-141-0/+4
| | | | | | | | | | | | this way we only have to determine the share permissions once Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix sharing creation insert and getJohn Molakvoæ (skjnldsv)2023-09-021-4/+1
| | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* | fix(tests): Specify all positional parameters again to fix testsJoas Schilling2023-08-231-12/+16
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #39605 from nextcloud/bugfix/noid/final-events-cleanupJoas Schilling2023-08-041-2/+0
|\ | | | | fix!: Final round of moving to IEventDispatcher
| * fix: Remove legacy dispatcher from share managerJoas Schilling2023-07-281-2/+0
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #39330 from nextcloud/feature/openapi/files_sharingKate2023-08-011-6/+0
|\ \ | |/ |/| files_sharing: Add OpenAPI spec
| * files_sharing: Add OpenAPI specjld31032023-07-311-6/+0
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
* | fix(dispatcher): Move remaining simple cases in apps/ folder to IEventDispatcherJoas Schilling2023-07-251-6/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: adjust testingJohn Molakvoæ2023-07-112-157/+88
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Migrate files sharing to PSR LoggerInterfaceBenjamin Gaussorgues2023-07-062-11/+7
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* repair -1 folder sizes for object store background scanRobin Appelman2023-05-101-2/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-082-5/+11
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* Revert "fix(performance): Do not set up filesystem on every call"Joas Schilling2023-02-212-13/+1
|
* tests: Fix test isolation on object storageJulius Härtl2023-02-172-1/+13
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Skip buggy tests for 32bits CICôme Chilliet2023-02-071-4/+15
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Pluggable share providerLouis Chemineau2023-02-021-1/+24
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> Signed-off-by: Louis Chemineau <louis@chmn.me>
* add test for shared mount conflict resolutionRobin Appelman2023-01-092-0/+119
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #35213 from PLUTEX/32611-ocs-api-share-permissionsJulius Härtl2022-12-222-6/+5
|\ | | | | Honor permissions of new link share via OCS API
| * Honor permissions of new link share via OCS APIJan-Philipp Litza2022-12-062-6/+5
| | | | | | | | | | | | | | | | | | | | | | The API currently overrides the supplied permissions with "read only" when a file is shared via link. It allows to update the permissions later, however. This keeps the default to "read only" but honors the permissions supplied by API call if any. Signed-off-by: Jan-Philipp Litza <jpl@plutex.de>
* | Adapt tests to new job constructorsCôme Chilliet2022-12-051-2/+2
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Fix errors from PHP 8.2 testingCôme Chilliet2022-11-141-3/+5
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* More fixesCarl Schwan2022-10-181-8/+18
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Small progress with fixing unit testsCarl Schwan2022-10-111-167/+82
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #33941 from nextcloud/fix/public-sharingCarl Schwan2022-09-151-3/+3
|\ | | | | Only normalize data in public shares and not crud
| * Only normalize data in public shares and not crudCarl Schwan2022-09-081-3/+3
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix typos in apps/ subdirectoryluz paz2022-09-052-2/+2
|/ | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* Fix jsunit testsJulius Härtl2022-09-011-2/+2
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* adjusts tests for CloudIdManagerRobin Appelman2022-08-312-5/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #33430 from nextcloud/fix/remove-broken-resetstorageVincent Petry2022-08-251-13/+0
|\ | | | | Remove broken function resetStorage from test cases
| * Remove broken function resetStorage from test casesCôme Chilliet2022-08-021-13/+0
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | Revert "Revert "Remove inefficient fed share scanner""Carl Schwan2022-08-031-12/+0
|/ | | | | | This reverts commit 6667007bf235b90a7dd105c881cf5802b2a3f83e. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Multiple fixesCarl Schwan2022-07-312-67/+167
| | | | | | | | | | | - Fix tests - Use non deprecated event stuff - Add a bit of type hinting to the new stuff - More safe handling of instanceOfStorage (share might not be the first wrapper) - Fix resharing Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix share attribute related tests + code styleVincent Petry2022-07-284-24/+47
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>