aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(sharing): Don't change the type of the controller argumentJoas Schilling2024-04-181-2/+2
| | | | | | [EA] New value type (\DateTime) is not matching the resolved parameter type and might introduce types-related false-positives. Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(shareApiController): avoid duplicated expiryDate operationsfenn-cs2024-04-181-27/+10
| | | | | | | | `expireDate` can be set once and used anywhere needed, the current implementation, duplicates this behavior which leads to `parseDate` receiving an a date object it parsed and returend earlier in the createShare method. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* refactor(shareApiController): use contrusctor property promotion & DI loggerfenn-cs2024-04-181-56/+20
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-0211-28/+28
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: add extra check to ensure wrapped shared storage is setRobin Appelman2024-03-201-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(sharing): Align wording for declining a shareJoas Schilling2024-03-191-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix(files_sharing): ShareesAPI - Return empty response when user is not ↵Ferdinand Thiessen2024-03-151-24/+9
| | | | | | | | allowed to share Resolves: https://github.com/nextcloud/server/issues/20950 Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: improve typing for SharedStorage::$storageRobin Appelman2024-03-141-0/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: don't return null for SharedStorage::getWrapperStorage with share recursionRobin Appelman2024-03-141-0/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: add some recrusive detection/preventionRobin Appelman2024-03-081-1/+15
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* chore: remove long depricated share codeRobin Appelman2024-03-061-59/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(sharing): Avoid (dead)locking during orphan deletionChristoph Wurst2024-03-051-12/+66
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* perf: switch places that always use the first getById result to getFirstNodeByIdRobin Appelman2024-03-046-32/+21
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #43428 from nextcloud/feat/share-expiration-with-timeBenjamin Gaussorgues2024-02-261-1/+4
|\
| * feat(share): save date and time for expirationBenjamin Gaussorgues2024-02-221-1/+4
| | | | | | | | | | | | | | | | 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>
* | Merge branch 'master' into share-external-watcherJohn Molakvoæ2024-02-2345-306/+386
|\ \ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * \ Merge pull request #43605 from nextcloud/orphan-share-dailyJohn Molakvoæ2024-02-231-6/+2
| |\ \
| | * | fix: only cleanup orphaned shared dalyRobin Appelman2024-02-151-6/+2
| | |/ | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * / fix truncated circleId returned from Share APIAragon Gouveia2024-02-231-3/+4
| |/
| * Merge pull request #43461 from nextcloud/fix/get-rid-of-getloggerF. E Noel Nfebe2024-02-144-11/+20
| |\ | | | | | | chore: Migrate away from OC::$server->getLogger
| | * chore: Migrate away from OC::$server->getLoggerCôme Chilliet2024-02-134-11/+20
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.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>
| * also improe cache ci for shared cacheRobin Appelman2024-02-092-7/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Use `@nextcloud/capabilities` to obtain share api defaultsfenn-cs2024-02-011-7/+0
| | | | | | | | | | | | | | - Remove redundant initial state added - Call `getCapabilities()` in share config file. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
| * Consider admin defaults when creating sharesfenn-cs2024-02-011-0/+1
| | | | | | | | | | | | | | | | | | | | The current share logic always uses the default `BUNDLED_PERMISSIONS.ALL` which includes everything. This commit updates share creation logic to use `defaultPermissions` if set by admin for the creation of new shares. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
| * fix: Fix template parameter for some listenersCôme Chilliet2024-01-301-1/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore: Fix missing template parameter for IEventListenerCôme Chilliet2024-01-305-1/+5
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * refactor: Migrate IgnoreOpenAPI attributes to OpenAPIprovokateurin2024-01-182-4/+4
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
| * fix(share): use user timezone to parse share expiration dateBenjamin Gaussorgues2024-01-091-17/+6
| | | | | | | | | | | | | | | | 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>
| * fix: public dav and files_sharing testing fixesJohn Molakvoæ2024-01-093-5/+5
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * feat: public dav endpoint v2John Molakvoæ2024-01-091-1/+6
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-2331-97/+89
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * fix: Also cleanup orphaned shares user cannot be found anymoreJulius Härtl2023-11-201-1/+6
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
| * optimize builtin storage wrappersRobin Appelman2023-11-083-2/+31
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * refactor: Rename OpenAPI type aliases to their namespacesjld31032023-11-026-84/+84
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * Merge pull request #39044 from nextcloud/more-empty-mount-checkingRobin Appelman2023-10-241-0/+4
| |\ | | | | | | Fix root mounts not being setup in some cases
| | * add more checks to ensure mounts aren't emptyRobin Appelman2023-09-121-0/+4
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | fix(sharing): set name to target name in sharing cacheMax2023-10-181-0/+4
| | | | | | | | | | | | | | | | | | Fixes #39879. Signed-off-by: Max <max@nextcloud.com>
| * | fix(federation): Use `sharing.federation.allowSelfSignedCertificates` config ↵Joas Schilling2023-10-112-18/+13
| | | | | | | | | | | | | | | | | | for all OCM requests Signed-off-by: Joas Schilling <coding@schilljs.com>
| * | Convert isset ternary to null coalescing operatorHamid Dehnavi2023-09-281-1/+1
| | | | | | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
| * | Add single status code descriptions for OpenAPIjld31032023-09-274-0/+10
| | | | | | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * | Merge pull request #39574 from nextcloud/fix/noid/ocm-controllerArthur Schiwon2023-09-203-54/+75
| |\ \ | | | | | | | | OCM Services
| | * | small fixesMaxence Lange2023-09-201-1/+4
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| | * | set authType to basicMaxence Lange2023-09-201-0/+1
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| | * | ocm controllerMaxence Lange2023-09-203-54/+71
| | | | | | | | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * | | feat(files): add files_sharing indicatorJohn Molakvoæ (skjnldsv)2023-09-201-1/+1
| |/ / | | | | | | | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
| * / Enfore allowPublicShares admin settingfenn-cs2023-09-121-2/+21
| |/ | | | | | | | | | | | | Use the the modern intial-state library to pass data about `allowPublicUploads` to the sharing frontend. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* / improve logic for getting the watcher for a shared external storageRobin Appelman2023-09-111-8/+17
|/ | | | | | with the new-ish lazy mount loading the underlying mount might not be loaded yet, so ask the mount cache instead Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(cache): Remove displayname cache entry on deleteJoas Schilling2023-08-281-0/+4
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #39944 from nextcloud/share-cache-shareRobin Appelman2023-08-282-5/+14
|\ | | | | pass the share to the cache instead of having to ask the storage