aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_sharing/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Merge pull request #46881 from nextcloud/try-non-recursive-sourceStephan Orbaugh2024-08-011-6/+18
|\ | | | | fix: try to find non-recursive share source
| * fix: try to find non-recursive share sourceRobin Appelman2024-07-301-6/+18
| | | | | | | | | | | | instead of always picking the first one, try to find one that won't blow up Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(activity): regroup Files and spltit sharing activityskjnldsv2024-08-011-2/+2
| | | | | | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* | Merge pull request #46810 from ↵Kate2024-08-0110-75/+57
|\ \ | |/ |/| | | nextcloud/refactor/files_sharing/security-attributes
| * refactor(files_sharing): Replace security annotations with respective attributesprovokateurin2024-07-2710-75/+57
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix: fix recursive share checkRobin Appelman2024-07-301-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(files_sharing): add public name prompt for files requestsskjnldsv2024-07-183-31/+84
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): use label as title and file drop destination if availableskjnldsv2024-07-181-0/+6
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): file request creation permissions and link copy displayskjnldsv2024-07-181-2/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): remove undesirable translations from ShareAPIControllerskjnldsv2024-07-161-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): lint & refactor fixesskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): adjust IAttributes API and files_versionsskjnldsv2024-07-121-17/+10
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-2/+8
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): cleanup NewFileRequestDialog vueskjnldsv2024-07-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: psalm, cs, autoloader and lintskjnldsv2024-07-121-16/+19
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor share password mailskjnldsv2024-07-121-9/+29
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-122-2/+9
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor mail handlingskjnldsv2024-07-121-1/+32
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): implement IShareProviderWithNotification and refactor ↵skjnldsv2024-07-121-36/+20
| | | | | | sendMailNotification Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): add `new file request` optionskjnldsv2024-07-121-0/+49
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* docs(ShareApiController): Correct note about expiry date timezonefenn-cs2024-07-011-1/+1
| | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* fix(files_sharing): Store the expiration date relative to the server's timezoneLouis Chemineau2024-06-261-3/+0
| | | | | | This is needed as we want to store the difference between the server's and the user's timezones. Signed-off-by: Louis Chemineau <louis@chmn.me>
* feat(notifications): Migrate server INotifiers to new exceptionsJoas Schilling2024-06-251-4/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-132-38/+4
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* Merge pull request #44967 from nextcloud/perf/sharing-eventsFerdinand Thiessen2024-06-103-64/+154
|\ | | | | perf(files_sharing): Move events to listener classes and registration instead of boot
| * perf(files_sharing): Move events to listener classes and registration ↵Julius Härtl2024-05-133-64/+154
| | | | | | | | | | | | instead of boot Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | chore: Add SPDX headerAndy Scherzinger2024-06-0678-1694/+187
| | | | | | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* | fix(ShareApiClients): Maintain meaning of `''` and null for share api clientsfenn-cs2024-05-291-3/+3
| | | | | | | | Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* | fix(shareManager): Respect empty `expireDate` in serverfenn-cs2024-05-231-8/+15
| | | | | | | | | | | | If `expireDate` is an empty string and not `null` then the server should not set a default. Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
* | refactor: remove non-shallow getSharesInFolderRobin Appelman2024-05-011-5/+27
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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