aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Share20
Commit message (Collapse)AuthorAgeFilesLines
* fix(share): Don't print twice the same informationprintOnlyOnceTextGit'Fellow2024-12-101-10/+9
| | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* fix(files_sharing,files): Do not validate shares before adjusting the ownerprovokateurin2024-11-251-10/+14
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Share20\Manager): Ensure node is still accessible when checking shareprovokateurin2024-11-251-0/+9
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* feat(Share20\Manager): Return all shares on IShareOwnerlessMountprovokateurin2024-11-251-11/+30
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Share20\DefaultShareProvider): Return link shares in getSharesByPath()provokateurin2024-11-251-1/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(Share20\DefaultShareProvider): Sort getSharesByPath() resultsprovokateurin2024-11-251-0/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #47425 from ↵Côme Chilliet2024-11-041-0/+88
|\ | | | | | | | | 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-1/+2
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Fix promotion of reshares from subsubfoldersCôme Chilliet2024-10-141-9/+16
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore: Add comment to make code clearerCôme Chilliet2024-10-141-0/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * chore: Turn method description into phpdocCôme Chilliet2024-10-141-1/+1
| | | | | | | | Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com>
| * fix(shares): Promote reshares into direct shares when share is deletedCôme Chilliet2024-10-141-6/+14
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Tidy up code for reshare deletionCôme Chilliet2024-10-141-14/+16
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: delete re-shares when deleting the parent shareLuka Trovic2024-10-141-0/+69
| | | | | | | | | | | | | | 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>
* | Merge pull request #47329 from nextcloud/feat/add-datetime-qbmapper-supportFerdinand Thiessen2024-10-181-4/+4
|\ \ | | | | | | feat(AppFramework): Add full support for date / time / datetime columns
| * | fix: Prevent breaking change in IQueryBuilderFerdinand Thiessen2024-10-171-4/+4
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
| * | fix: Adjust parameter type usage and add SQLite supportFerdinand Thiessen2024-10-171-4/+4
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | chore(db): Apply query prepared statementsdbQueriesExecStmt2Git'Fellow2024-10-171-31/+30
|/ / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fix: psalm fix: bad file fix: bug chore: add batch chore: add batch chore: add batch fix: psalm
* / fix(share): Return empty string if no label is setFerdinand Thiessen2024-10-141-2/+2
|/ | | | | | | | | * 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>
* feat(share): make sharelink token length configurableernolf/configurable_sharetoken_lengthernolf2024-09-281-7/+37
| | | | | | - ensure unique share token with dynamic length adjustment Signed-off-by: ernolf <raphael.gradenwitz@googlemail.com>
* fix(l10n): Rephrasing some exceptions to be translatedGit'Fellow2024-09-201-14/+13
| | | | | | | | | | | | 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: Add proper deprecation dates where missingFerdinand Thiessen2024-09-201-2/+2
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-191-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(ProviderFactory): Remove usage of ILogger and use non-deprecated stuffFerdinand Thiessen2024-09-191-10/+9
| | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore(i18n): Spelling of IDrakekniven2024-09-061-2/+2
| | | | | Reported at Transifex Signed-off-by: rakekniven <2069590+rakekniven@users.noreply.github.com>
* chore: adjust code to adhere to coding standardAnna Larch2024-09-051-2/+2
| | | | Signed-off-by: Anna Larch <anna@nextcloud.com>
* fix: adjust sharing controller exceptions caseJohn Molakvoæ2024-09-041-2/+2
| | | | | Co-authored-by: F. E Noel Nfebe <fenn25.fn@gmail.com> Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
* fix(l10n): Translate all share exceptionsGit'Fellow2024-09-041-70/+63
| | | | | | | | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com> Fix drone 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(files_sharing): Add missing check for null & use bool instead of int for ↵Stefan Cherniakov2024-09-031-3/+3
| | | | | | reminder_sent field Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
* fix(files_sharing): Make share reminders more stable & fix issuesStefan Cherniakov2024-09-032-3/+6
| | | | Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
* feat(files_sharing): reminder for link shares with expiration dateStefan Cherniakov2024-09-031-0/+11
| | | | Signed-off-by: Stefan Cherniakov <luka-sama@pm.me>
* fix: fix share cleanup for deleted groups with shardingRobin Appelman2024-08-281-10/+18
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat: add option to automatically partition queries by specific tablesRobin Appelman2024-08-281-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-255-15/+15
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* fix: check for correct storage class when checking for link parentRobin Appelman2024-08-161-1/+2
| | | | | | fixes #39123 Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Remove shares only if there are no more common groups between usersCôme Chilliet2024-08-121-38/+36
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files_sharing): Delete user shares if needed when user is removed from a ↵Louis Chemineau2024-08-122-2/+47
| | | | | | group Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix: Add `acceptShare` as an interfaceFerdinand Thiessen2024-07-302-4/+6
| | | | | | | | | It was commented out because at that time no other share provider supported the `acceptShare` method. Today it is the same no other provider supports it, but we should make it discoverable by adding it to the public API as an additional interface. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files_sharing): adjust IAttributes API and files_versionsskjnldsv2024-07-121-4/+4
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): phpunit & openapi fixesskjnldsv2024-07-121-5/+9
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix: psalm, cs, autoloader and lintskjnldsv2024-07-121-1/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): allow mixed values in share attributes and allow ↵skjnldsv2024-07-122-8/+8
| | | | | | storing email arrays Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* chore(files_sharing): refactor mail handlingskjnldsv2024-07-121-24/+22
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* feat(files_sharing): implement IShareProviderWithNotification and refactor ↵skjnldsv2024-07-123-159/+150
| | | | | | sendMailNotification Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_sharing): Store the expiration date relative to the server's timezoneLouis Chemineau2024-06-262-20/+29
| | | | | | 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>
* use LazyUser in DefaultShareProviderRobin Appelman2024-06-171-5/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(dav): also return shared-with-me shares dataskjnldsv2024-06-121-1/+1
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* Merge branch 'master' into refactor/OC-Server-getSecureRandomJohn Molakvoæ2024-05-301-4/+7
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * Merge branch 'master' into refactor/OC-Server-getL10NFactoryJohn Molakvoæ2024-05-301-3/+5
| |\ | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| | * Merge pull request #40151 from summersab/refactor/OC-Server-getMailerJohn Molakvoæ2024-05-301-2/+3
| | |\