nextcloud/apps/files_external
Daniel Calviño Sánchez 8c2f05f05e fix: Do not log an error when connecting to SFTP without a logged in user
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>
2024-07-10 15:17:47 +02:00
..
3rdparty Convert isset ternary to null coalescing operator 2023-09-28 12:18:41 +03:30
ajax Update all license headers for Nextcloud 21 2020-12-16 18:48:22 +01:00
appinfo feat: add command to scan external storages directly 2024-03-06 19:11:08 +01:00
composer feat: add command to scan external storages directly 2024-03-06 19:11:08 +01:00
css fix look of personal global credentials settings 2023-12-05 13:57:01 +01:00
img fix(assets): Optimize SVGs with scour 0.38.2 2023-04-24 08:59:38 +02:00
js fix(files_external): Remove invalid jQuery Tooltip usage 2024-03-18 01:23:40 +01:00
l10n Fix(l10n): Update translations from Transifex 2024-06-30 00:19:30 +00:00
lib fix: Do not log an error when connecting to SFTP without a logged in user 2024-07-10 15:17:47 +02:00
src chore(files_sharing): use OCSResponse from @nextcloud/typings 2024-02-23 14:12:14 +01:00
templates fix: Apply new coding standard to all files 2024-04-04 11:45:22 +02:00
tests test: retry smb notify test a few times 2024-05-02 09:33:16 +00:00
.l10nignore Add .l10nignore 2018-10-19 10:41:37 +02:00
openapi.json Fix OCS-APIRequest header for OpenAPI 2023-09-27 10:22:20 +02:00