aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files/lib/Service
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Log exception message during failed ownership transfer share restoreChristoph Wurst2021-08-241-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update php licensesJohn Molakvoæ (skjnldsv)2021-06-043-6/+2
| | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* Only perform login check during ownership transfer for encryptionChristoph Wurst2021-03-191-2/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update all license headers for Nextcloud 21Christoph Wurst2020-12-162-2/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Introduce deck share type to ShareAPIControllerJulius Härtl2020-12-091-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #22648 from nextcloud/bugfix/noid/transfer-all-sharesJoas Schilling2020-09-091-2/+2
|\ | | | | Transfer shares if no path provided
| * Transfer shares if no path providedJulius Härtl2020-09-071-2/+2
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Update license headers for Nextcloud 20 (again)Christoph Wurst2020-09-071-0/+1
|/ | | | | | | There are still lots of outdated headers, so time for another round of updates. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Do not expose direct editing if no master key is availableJulius Härtl2020-09-011-0/+4
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Transfer shares of the transferred root nodeJulius Härtl2020-08-311-3/+36
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update the license headers for Nextcloud 20Christoph Wurst2020-08-241-0/+2
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #21797 from rawtaz/patch-1Morris Jobke2020-08-201-1/+1
|\ | | | | Include e-mail shares when transferring ownership
| * Include circle shares when transferring ownershiprawtaz2020-07-151-1/+1
| |
| * Include e-mail shares when transferring ownershiprawtaz2020-07-111-1/+1
| | | | | | E-mail shares weren't included in the processing of shares when using the `occ files:transfer-ownership` command, so they'd be lost (not visible in either the former or the new account). This commit fixes that.
* | Use constant instead of magic number Morris Jobke2020-08-111-1/+1
| | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Do not exit if available space cannot be determined on file transferJulius Härtl2020-08-111-1/+1
|/ | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Update share type constant usageJoas Schilling2020-06-241-2/+3
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 19Christoph Wurst2020-04-291-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>