aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib
Commit message (Collapse)AuthorAgeFilesLines
* fix(files_external): Stop building path twice when checking if file exists ↵fix/files_external/smb-case-insensitive-path-buildingprovokateurin2025-03-101-1/+1
| | | | | | on case insensitive SMB storage Signed-off-by: provokateurin <kate@provokateurin.de>
* fix(files_external): Move definition parameter to the correct placefix/files_external/definition-parameterprovokateurin2025-02-253-4/+8
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore: Apply new rector configuration to apps folderCôme Chilliet2025-02-135-22/+32
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore: re-apply current rector configuration to apps folderCôme Chilliet2025-02-131-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix: don't believe sftp when it tells us the mtime is less than we know it issftp-known-mtimeRobin Appelman2025-02-051-3/+22
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* feat(S3): add SSE-C support in S3 External StorageChristian Becker2025-01-282-3/+6
| | | | | | | | | Just need to add the parameter and fix two calls. All other logic is already implemented and implicitly called through the S3ConnectionTrait fixes #33283 Signed-off-by: Christian Becker <christian@dabecka.de> Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
* fix: detect deleted items as updated for smb storagesmb-hasupdated-deletedRobin Appelman2025-01-211-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix: smb: don't fail hard if we can't load acls for a filesmb-acl-fail-softRobin Appelman2024-11-141-1/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #49015 from nextcloud/fix/openapi/array-syntaxJohn Molakvoæ2024-11-061-6/+6
|\
| * fix(OpenAPI): Adjust array syntax to avoid ambiguitiesfix/openapi/array-syntaxprovokateurin2024-11-051-6/+6
| | | | | | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* | fix(files-external): set password as sensitivefix/noid/set-ext-pwd-as-sensitiveMaxence Lange2024-10-311-0/+3
|/ | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* refactor(Storage): Align all Storage constructorsrefactor/storage/constructorsprovokateurin2024-10-237-78/+77
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* refactor(apps): Use constructor property promotion when possibleprovokateurin2024-10-2114-112/+65
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* chore(apps): Apply new rector configuration to autouse classesCôme Chilliet2024-10-156-10/+19
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* refactor(files_external): Add Storage parameter strong typesrefactor/storage/strong-param-typesprovokateurin2024-10-078-175/+116
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: use nc's binary finding logic for smbsmb-systembridgeRobin Appelman2024-10-042-7/+34
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix(files_external): Fix all IStorage return typesprovokateurin2024-09-267-232/+130
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* Merge pull request #48359 from ↵Louis2024-09-261-0/+8
|\ | | | | | | | | nextcloud/artonge/feat/compare_hashed_password_when_updating_global_cred_in_files_external fix: Use placeholder for external storage password
| * fix: Use hashed password in files_external settingsartonge/feat/compare_hashed_password_when_updating_global_cred_in_files_externalLouis Chemineau2024-09-251-0/+8
| | | | | | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* | fix(files_external): Catch correct exceptionfix/files_external/forbidden-exceptionMarcel 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>
* chore: Apply rector configuration to apps folderCôme Chilliet2024-09-205-9/+9
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* chore(deps): Update nextcloud/coding-standard to v1.3.1provokateurin2024-09-192-2/+2
| | | | Signed-off-by: provokateurin <kate@provokateurin.de>
* fix: Remove OCP\Files\Storage interface deprecated since version 9Côme Chilliet2024-09-162-9/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* fix(files_external): Check key exists before accessing itfixKeyExFileExtGit'Fellow2024-09-141-4/+8
| | | Signed-off-by: Git'Fellow <12234510+solracsf@users.noreply.github.com>
* Merge pull request #47526 from nextcloud/jtr/fix-ftp-custom-port-uiJosh2024-09-121-0/+2
|\ | | | | fix(files_external): Handling in FTP UI for custom ports
| * fix: custom port handling in UI for FTP External StorageJosh2024-08-271-0/+2
| | | | | | Signed-off-by: Josh <josh.t.richards@gmail.com>
* | Merge pull request #47527 from nextcloud/fix-sftp-custom-port-uiJosh2024-09-121-0/+2
|\ \ | | | | | | fix(files_external): Handling in SFTP UI for custom ports
| * | fix: custom port handling in UI for SFTPJosh Richards2024-08-271-0/+2
| |/ | | | | | | Signed-off-by: Josh Richards <josh.t.richards@gmail.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>
* style: update codestyle for coding-standard 1.2.3Daniel Kesselberg2024-08-259-28/+28
| | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* Merge branch 'master' into jr-readdir-false-falseJohn Molakvoæ2024-08-1662-1411/+547
|\ | | | | Signed-off-by: John Molakvoæ <skjnldsv@users.noreply.github.com>
| * feat: add a specialized writeStream implementation for s3 external storageRobin Appelman2024-07-241-0/+21
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * 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-0662-1301/+173
| | | | | | | | 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>
| * 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>
| * 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-0215-15/+15
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * 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-241-0/+2
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * full uppercase constMaxence Lange2024-02-241-4/+4
| | | | | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
| * fix: replace `Account name` by `Login`John Molakvoæ2024-02-139-10/+10
| | | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
| * feat: rename users to account or personVincent Petry2024-02-1311-13/+13
| | | | | | | | | | | | Replace translated text in most locations Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * fix(files_external): list root when using SMB case-insensitive optionBenjamin Gaussorgues2024-02-051-1/+2
| | | | | | | | Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * Correct a typoValdnet2023-11-281-1/+1
| | | | | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
| * chore: apply changes from Nextcloud coding standards 1.1.1Joas Schilling2023-11-236-24/+20
| | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com> Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>
| * refactor: Rename OpenAPI type aliases to their namespacesjld31032023-11-021-2/+2
| | | | | | | | Signed-off-by: jld3103 <jld3103yt@gmail.com>
| * Merge pull request #41053 from nextcloud/bug/smb/in-place-case-renameBenjamin Gaussorgues2023-10-312-0/+24
| |\ | | | | | | fix(files_external): on case insensitive system, block case change
| | * fix(files_external): on case insensitive system, block case changeBenjamin Gaussorgues2023-10-232-0/+24
| | | | | | | | | | | | | | | | | | | | | | | | When a file/directory is renamed to the same name with only case change, the rename fail. We block this kind of rename. The user will have to rename to another name first. Signed-off-by: Benjamin Gaussorgues <benjamin.gaussorgues@nextcloud.com>