aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Service
Commit message (Collapse)AuthorAgeFilesLines
* feat: improve occ file:transfer-ownership loggingenh/improve-transfer-ownership-logginggrnd-alt2025-03-061-0/+6
| | | | Signed-off-by: grnd-alt <github@belakkaf.net>
* feat(files): allow to ignore warning to change file typeFerdinand Thiessen2025-02-251-0/+6
| | | | | | | | | | | | | * Missing pieces of https://github.com/nextcloud/server/issues/46528 * Add checkbox to not show this dialog again * Add user config as suggested by designers in files settings to reenable or diable this behavior. * Fix behavior of dialog: It says "keep .ext" but it does not keep the extension but cancels the operation. From the button label the user expects that the operation is continued but with the old extension. * Added more test coverage by adding component tests. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* Merge pull request #49761 from nextcloud/transfer-share-skip-notfoundDaniel2025-01-161-4/+13
|\ | | | | fix: skip transfering shares that we can't find
| * fix: skip transfering shares that we can't findtransfer-share-skip-notfoundRobin Appelman2025-01-031-4/+13
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix: explicitly ignore nested mounts when transfering ownershipmount-move-checksRobin Appelman2025-01-061-1/+1
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* refactor(tags): move favorite event dispatching to tags.phpgrnd-alt2024-12-031-10/+0
| | | | Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
* fix(dav): add activity logging for favorites in davgrnd-alt2024-12-031-40/+2
| | | | Signed-off-by: grnd-alt <salimbelakkaf@outlook.de>
* fix(files_sharing,files): Do not validate shares before adjusting the ownerprovokateurin2024-11-251-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #47425 from ↵Côme Chilliet2024-11-041-10/+10
|\ | | | | | | | | nextcloud/fix/avoid-invalid-share-on-transfer-ownership fix: promote re-shares when deleting the parent share
| * fix: Transfer incomming shares first, do not delete non-migratable onesCôme Chilliet2024-10-141-13/+10
| | | | | | | | | | | | | | | | | | | | Canceling the previous add of deletion of invalid shares in transferownership because in some cases it deletes valid reshares, if incoming shares are not transfered on purpose. Inverting the order of transfer between incoming and outgoing so that reshare can be migrated when incoming shares are transfered. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: delete re-shares when deleting the parent shareLuka Trovic2024-10-141-0/+3
| | | | | | | | | | | | | | 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 #48790 from ↵Kate2024-10-225-44/+22
|\ \ | | | | | | | | | nextcloud/refactor/apps/constructor-property-promotion
| * | refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-215-44/+22
| | | | | | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | | feat(files): Expose chunked upload config via capabilitiesfeat/files/chunked-upload-config-capabilitiesprovokateurin2024-10-211-0/+30
|/ / | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | refactor: Inject IRootFolderChristopher Ng2024-10-161-4/+4
| | | | | | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | fix: Fix "Unknown path" error when source user `files` folder has not been ↵Christopher Ng2024-10-161-0/+2
| | | | | | | | | | | | initialized Signed-off-by: Christopher Ng <chrng8@gmail.com>
* | chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-151-5/+8
|/ | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(transfer-ownership): Improve verbose output of commandCôme Chilliet2024-10-071-0/+2
| | | | | | Makes debbuging way easier Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(transfer-ownership): Improve comments according to code reviewCôme Chilliet2024-09-051-3/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* feat(transfer-ownership): Correctly react to encrypted filesCôme Chilliet2024-09-051-20/+43
| | | | | | | | For E2EE encrypted files, we abort the transfer. For SSE encrypted files, we abort only if not using master key. Also fixed the check for when the path to a single file is used. Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-252-8/+8
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* feat(files): Allow toggling folder treeChristopher Ng2024-08-011-1/+7
| | | | Signed-off-by: Christopher Ng <chrng8@gmail.com>
* feat(files): Allow to configure Windows filename compatibility in the settingsFerdinand Thiessen2024-07-171-0/+63
| | | | | | | | This adds an admin setting to toggle Windows filename compatibility. Co-authored-by: Ferdinand Thiessen <opensource@fthiessen.de> Co-authored-by: Louis <louis@chmn.me> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* feat(files): Use receiving users language for the ownership transfer target ↵Ferdinand Thiessen2024-05-291-8/+13
| | | | | | folder Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* chore: Add SPDX headerAndy Scherzinger2024-05-296-123/+14
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files): Fix ownership transfer encrypted files detectionCôme Chilliet2024-04-301-1/+1
| | | | | | Discovered by psalm update Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files): Also restore shares after ownership transfer for object storageFerdinand Thiessen2024-04-181-38/+73
| | | | | | | | | | When a file is moved between different storages then the file id is not (always) preserved. This means the file id has to be adjusted for all shares. So in case the file id does not exist anymore we try to find the new file id based on the target path of the transfer and the path suffix of the share. Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix(files): Do not require files_trashbin in live photo sync listenerLouis Chemineau2024-03-141-0/+52
| | | | | | Fix https://github.com/nextcloud/server/issues/43299 Signed-off-by: Louis Chemineau <louis@chmn.me>
* Merge pull request #39215 from shdehnavi/replace_substr_calls_in_files_appJohn Molakvoæ2024-02-231-2/+2
|\
| * Merge branch 'master' into replace_substr_calls_in_files_appHamid Dehnavi2023-10-301-0/+6
| |\ | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
| * | Refactor "substr" calls to improve code readabilityHamid Dehnavi2023-09-271-2/+2
| | | | | | | | | | | | Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
* | | fix(files): Consistent sorting for folders before files (user configurable)Ferdinand Thiessen2024-01-271-0/+6
| | | | | | | | | | | | Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* | | chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-233-42/+42
| |/ |/| | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | feat(files): add grid toggle buttonJohn Molakvoæ2023-10-171-0/+6
|/ | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat!: Migrate TagService events to typed eventsJoas Schilling2023-07-281-10/+11
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(files): sort favorites firstJohn Molakvoæ2023-07-051-1/+7
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix(files): Don't throw an error when guests access the controllerJoas Schilling2023-04-191-2/+5
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* feat(files): add view config service to store user-config per viewJohn Molakvoæ2023-04-181-0/+184
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* fix: Always create user directory when transfering files to new usersJulius Härtl2023-04-061-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add SHARE_TYPE_SCIENCEMESHMichiel de Jong2023-03-081-1/+1
| | | | Signed-off-by: Michiel de Jong <michiel@unhosted.org>
* fix(files): Fix controller setup for guestsJoas Schilling2023-02-281-9/+6
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Fix favourite openingJohn Molakvoæ2023-01-041-0/+2
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Fixing testsJohn Molakvoæ2023-01-041-6/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Add component testingJohn Molakvoæ2023-01-041-4/+5
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Port settings to ModalJohn Molakvoæ2023-01-041-0/+142
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* Merge pull request #30953 from ↵Vincent Petry2022-02-101-7/+6
|\ | | | | | | | | nextcloud/feat/init-storage-when-transferring-ownership Init user's file system if not existing on ownership transfer
| * Init user's file system if not existing on ownership transferCarl Schwan2022-02-011-7/+6
| | | | | | | | | | | | | | | | This makes it a bit easier to transfer ownership when the new user hasn't already logged in. This still doesn't support encrypted storages because the keys are not generated yet. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Fix path handling when transferring incoming sharesVincent Petry2022-02-101-1/+5
|/ | | | | | | | | When transferring incoming shares from a guest user without specifying a path, the $path is empty. The fix properly handles that situation to avoid looking for shares in a path with doubled slashes which failed to find shares to transfer. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Do not transfer shares for deleted usersVincent Petry2021-10-041-7/+20
| | | | | | | | | | Whenever a user was deleted but is still recipient of share entries, delete these entries upon transfer. Usually such entries would disappear after running cleanup background jobs. Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Added support for transfering incoming file shares.Immanuel Pasanec2021-08-271-1/+140
| | | | | | | | | - new option --transfer-incoming-shares=1 | 0 - new config.php option 'transfer-incoming-shares' => true | false The command line option overrules the config.php option. Signed-off-by: Vincent Petry <vincent@nextcloud.com>