summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(external_storage): fix settings saveskjnldsv10 days1-10/+25
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files_external): Move definition parameter to the correct placebackport/51019/stable30provokateurin2025-02-273-4/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: detect deleted items as updated for smb storagebackport/50298/stable30Robin Appelman2025-01-301-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_external): wrong type for external mount idbackport/49843/stable30Benjamin Gaussorgues2024-12-131-1/+1
| | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* Merge pull request #49651 from nextcloud/backport/49288/stable30John Molakvoæ2024-12-121-1/+6
|\ | | | | [stable30] fix: smb: don't fail hard if we can't load acls for a file
| * fix: smb: don't fail hard if we can't load acls for a filebackport/49288/stable30Robin Appelman2024-12-041-1/+6
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix(external_storage): Cast id to intbackport/49602/stable30Oleksander Piskun2024-12-031-2/+2
|/
* feat: Use inline password confirmation in external storage settingsLouis Chemineau2024-11-285-8/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(external_storage): Cast id to intbackport/49464/stable30Marcel Klehr2024-11-251-2/+2
| | | | | | follow up to #49218 Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* fix(BackgroundJobs): Adjust intervals and time sensitivitiesbackport/48600/stable30provokateurin2024-11-251-2/+1
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Clean-up some remaining readdir calls with undesirable false evaluation ↵Josh Richards2024-11-131-2/+2
| | | | | | potential Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* fix(files_external): cast storage id intbackport/49218/stable30skjnldsv2024-11-121-2/+2
| | | | Signed-off-by: skjnldsv <skjnldsv@protonmail.com>
* fix(files-external): set password as sensitivebackport/49009/stable30Maxence Lange2024-10-311-0/+3
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix: add PasswordConfirmationRequired to saveGlobalCredentialsbackport/48992/stable30yemkareems2024-10-301-0/+2
| | | | | Co-authored-by: yemkareems <yemkareems@gmail.com> Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
* fix: cs fix namespacebackport/48788/stable30yemkareems2024-10-291-1/+1
| | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* fix: add PasswordConfirmationRequired to the eternal storages mentioned in ↵yemkareems2024-10-293-0/+7
| | | | | | review Signed-off-by: yemkareems <yemkareems@gmail.com>
* Merge pull request #48748 from nextcloud/backport/48373/stable30Ferdinand Thiessen2024-10-231-0/+4
|\ | | | | [stable30] fix: add PasswordConfirmationRequired to create user storages endpoint
| * fix: add PasswordConfirmationRequired to update and delete methodyemkareems2024-10-181-0/+2
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
| * fix: add PasswordConfirmationRequired to create user storages endpointyemkareems2024-10-181-0/+2
| | | | | | | | Signed-off-by: yemkareems <yemkareems@gmail.com>
* | Merge pull request #48550 from nextcloud/backport/48540/stable30Joas Schilling2024-10-215-13/+13
|\ \ | | | | | | [stable30] fix(filesexternal): Remove unneeded 3rdparty library use
| * | fix(filesexternal): Remove unneeded 3rdparty library usebackport/48540/stable30Joas Schilling2024-10-035-13/+13
| |/ | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | fix: Ensure we only pass string to writeln()Joas Schilling2024-10-212-2/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | ci: Fix psalm by typing the QuestionHelperJoas Schilling2024-10-211-0/+2
|/ | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* fix: Use hashed password in files_external settingsbackport/48359/stable30Louis Chemineau2024-09-261-0/+8
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* fix(files_external): Catch correct exceptionbackport/48345/stable30Marcel Klehr2024-09-261-7/+9
| | | | | | SMB#getFileInfo used to throw an icewind/smb exception, but nowadays throws \OCP\Files\ForbiddenException. This fixes downstream methods to catch the new exception. Signed-off-by: Marcel Klehr <mklehr@gmx.net>
* Merge pull request #47923 from nextcloud/backport/47527/stable30Ferdinand Thiessen2024-09-141-0/+2
|\ | | | | [stable30] fix(files_external): Handling in SFTP UI for custom ports
| * fix: custom port handling in UI for SFTPbackport/47527/stable30Josh Richards2024-09-121-0/+2
| | | | | | | | Signed-off-by: Josh Richards <josh.t.richards@gmail.com>
* | fix(files_external): Check key exists before accessing itGit'Fellow2024-09-141-4/+8
| | | | | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* | fix(files_external): broken credentials dialogJohn Molakvoæ (skjnldsv)2024-09-131-28/+0
|/ | | | Signed-off-by: John Molakvoæ (skjnldsv) <skjnldsv@protonmail.com>
* fix: Fix unmodified placeholder replacing the actual value when updatingDaniel Calviño Sánchez2024-09-042-0/+12
| | | | | | | | | | | | | | When updating global storages and user storages a property is not updated by "StoragesService::updateStorage()" if the value matches the unmodified placeholder. However, userglobal storages are not updated through the "StoragesService"; as only the authentication mechanism is updated it is directly done with "saveBackendOptions()" in "IUserProvided" or "UserGlobalAuth". Due to this the unmodified placeholder value needs to be explicitly checked in those cases and replaced by the actual value (note that in this case it is not possible to just skip updating a specific property). Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* refactor(files_external): Replace security annotations with respective ↵provokateurin2024-08-144-24/+16
| | | | | | attributes Signed-off-by: provokateurin <kate@provokateurin.de>
* feat: add a specialized writeStream implementation for s3 external storageRobin Appelman2024-07-241-0/+21
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #46073 from nextcloud/fix/save_global_credentialsBenjamin Gaussorgues2024-06-251-3/+9
|\
| * fix: allows admin to edit global credentialsBenjamin Gaussorgues2024-06-241-3/+9
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
* | fix: Do not log an error when connecting to SFTP without a logged in userDaniel Calviño Sánchez2024-06-181-5/+7
|/ | | | | | | | | | | | | | | | | | | | | When connecting to a SFTP server from a SFTP storage the host key is checked against the known host keys stored in a file in the data directory of the logged in Nextcloud user. The path to the file is (indirectly) got using "OC_App::getStorage", which logs an error if called when there is no logged in user; this can happen, for example, if the storage is used from a background job or a command. Not being able to read or write the file just causes the host key check to be skipped, but it has no other consequence. Moreover, even with logged in users it is likely that the file can not be read either and the check is also skipped, as the file needs to have been manually created by an admin. Due to all that now the path to the file is directly created using a View rather than relying on "OC_App::getStorage" to prevent the unneeded error from being logged. Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
* chore: Add SPDX headerAndy Scherzinger2024-06-06115-2433/+308
| | | | Signed-off-by: Andy Scherzinger <info@andy-scherzinger.de>
* fix(files_external): Be extra safe with null handling to please psalmCôme Chilliet2024-04-301-0/+3
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #44658 from nextcloud/fix/migrate-away-from-resource-typeCôme Chilliet2024-04-161-6/+3
|\ | | | | fix: Remove obsolete resource typing
| * fix: Fix small psalm errors in FTP and LDAP connectionsCôme Chilliet2024-04-091-4/+1
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * fix: Remove obsolete resource typingCôme Chilliet2024-04-091-2/+2
| | | | | | | | | | | | In PHP>=8.1, LDAP and FTP resources are always typed objects Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | fix: Pass the mountpoint target user to storages without ownerJulius Härtl2024-04-091-0/+1
|/ | | | | | | | | | | | | Storages that do not have a dedicated owner (e.g. groupfolders, external storages) currently always assume the current session user as the owner. This leads to several issues when there is no user session but a node is obtained through a user folder. In order to have the correct user available we need to pass the user that is used to setup a mountpoint along to the storage layer as we generally assume that an owner is available for those. Signed-off-by: Julius Härtl <jus@bitgrid.net>
* chore: Improve phpdoc typing to silence psalm errorsCôme Chilliet2024-04-0211-0/+31
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Apply new coding standard to all filesCôme Chilliet2024-04-0217-17/+17
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: Implement option to temporarily set the user sessionJulius Härtl2024-03-191-4/+5
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* feat: add command to scan external storages directlyRobin Appelman2024-03-063-74/+290
| | | | | | the main use case of this over simply scanning through is the ability to provide a username and/or password for cases where login credentials are used Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: Allow to disable multipart copy on external s3 storageJulius Härtl2024-02-241-0/+3
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* mark MOUNT_TYPE_PERSONAl as deprecatedMaxence Lange2024-02-242-0/+4
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* full uppercase constMaxence Lange2024-02-247-13/+12
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* fix: replace `Account name` by `Login`John Molakvoæ2024-02-1310-11/+11
| | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* feat: rename users to account or personVincent Petry2024-02-1313-15/+15
| | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>