summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* handle AccessDenied error when checking if external s3 support versionsMatthieu Gallien2022-07-281-1/+1
| | | | Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
* Move CappedMemoryCache to OCPCarl Schwan2022-07-143-3/+3
| | | | | | | | This is an helpful helper that should be used in more place than just server and this is already the case with groupfodlers, deck, user_oidc and more using it, so let's make it public Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #32016 from nextcloud/fix/PasswordUpdatedEvent_handlingLouis2022-05-161-10/+18
|\ | | | | Use stored user for PasswordUpdatedEvent
| * Use stored user for PasswordUpdatedEventLouis Chemineau2022-05-101-10/+18
| | | | | | | | | | | | | | | | When handling PasswordUpdatedEvent event, we are calling getLoginName which does not exists. This PR adds a condition to use the previously stored user when handling PasswordUpdatedEvent. Signed-off-by: Louis Chemineau <louis@chmn.me>
* | Add stricter psalm type for CappedMemoryCacheCarl Schwan2022-05-122-21/+15
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add a public replacement for OC::$server->getCarl Schwan2022-05-101-2/+3
|/ | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Merge pull request #30860 from nextcloud/smb-getdirectory-content-catchVincent Petry2022-04-141-3/+9
|\ | | | | handle notfound and notpermitted error in Smb::getDirectoryContent
| * handle notfound and notpermitted error in Smb::getDirectoryContentRobin Appelman2022-02-111-3/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix case also when the table existed alreadyJoas Schilling2022-04-081-1/+1
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #31679 from ↵Côme Chilliet2022-03-312-1/+55
|\ \ | | | | | | | | | | | | nextcloud/bugfix/noid/ensure-string-columns-to-be-maximum-of-4000 Ensure string column limit of 4.000 characters
| * | Remove unneeded preSchemaChange and return null if no changesCôme Chilliet2022-03-311-10/+2
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
| * | Fix files_external column lengthJoas Schilling2022-03-252-1/+63
| | | | | | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | | Merge pull request #31609 from nextcloud/fix/migrate-away-from-iloggerCôme Chilliet2022-03-291-20/+20
|\ \ \ | |/ / |/| | Migrate from ILogger to LoggerInterface in lib/private
| * | Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-241-20/+20
| | | | | | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | | Apply suggestions from code reviewRobin Appelman2022-03-241-1/+1
| | | | | | | | | | | | | | | | | | | | | Co-authored-by: Louis <6653109+artonge@users.noreply.github.com> Co-authored-by: Côme Chilliet <91878298+come-nc@users.noreply.github.com> Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | force full setup after external storage config changeRobin Appelman2022-03-243-5/+23
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #30991 from nextcloud/external-remove-config-migrationRobin Appelman2022-03-244-223/+2
|\ \ \ | |/ / |/| | remove old legacy external storage migration logic
| * | remove old legacy external storage migration logicRobin Appelman2022-02-094-223/+2
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #31215 from nextcloud/smb-directory-invalid-typeRobin Appelman2022-03-171-9/+17
|\ \ | | | | | | handle invalid type when listing directory in smb
| * | type hint as generatorRobin Appelman2022-03-041-9/+14
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | handle invilid type when listing directory in smbRobin Appelman2022-03-041-0/+3
| | | | | | | | | | | | | | | | | | just handle it as an empty directory Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | AmazonS3: allow not implemented versioningErik van Velzen2022-03-151-2/+14
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In case the S3 implementation does not implement versioning, set it to false. Versioning was introduced in Nexcloud in commit 09ffac5e6dd5355c9aaf49c098942fa1e4fbed25 This is needed for compatibility with the Storj gateway. Signed-off-by: Erik van Velzen <erik@evanv.nl>
* | | Prevent reading key on SFTP stat boolJohn Molakvoæ2022-03-111-0/+3
|/ / | | | | | | Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
* / store mountprovider for each mount in the mounts tableRobin Appelman2022-02-231-1/+1
|/ | | | | | this enabled more fine grained filesystem setup Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #30945 from ↵Joas Schilling2022-02-081-0/+2
|\ | | | | | | | | nextcloud/techdebt/noid/background-job-time-windows Background job time windows
| * Use the new option to signaling insensitivityJoas Schilling2022-02-071-0/+2
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Add SCHEME_NULL to list of allowed auth mechanismhowardZa2022-02-071-0/+2
|/ | | | | | Add Auth::Mechanism::SCHEME_NULL to list of allowed auth mechanism for AmazonS3 backend to allow attaching S3 storage to nextcloud instances running on already authorized instances (e.g. EC2 instances with IAM Instance roles) Signed-off-by: Wolfram Gries <wolfram.gries@zapooflex.net>
* Fix php:csLouis Chemineau2022-01-261-1/+1
| | | | Signed-off-by: Louis Chemineau <louis@chmn.me>
* Fix accessing undefined offsetsCarl Schwan2022-01-211-4/+2
| | | | | | Move this to inside the else clause of the count($matches) Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* l10n: Change to a capital letterValdnet2022-01-211-1/+1
| | | Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
* update to release smb libRobin Appelman2022-01-201-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* do not use deprecated query() methodArthur Schiwon2022-01-201-28/+28
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add changes from Sebastian/dassIT and move default_realm to backendArthur Schiwon2022-01-202-5/+27
| | | | | | | | | - Sebastian added the switch depending on the preg_match result and with it the fall back to login credentials - I turned default_realm to a backend option (was previously suggested as system config key) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* add KerberosApacheAuth support to files_externalArthur Schiwon2022-01-203-7/+78
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #29923 from alacn1/fix_basicauth_must_be_stringCarl Schwan2022-01-141-0/+4
|\ | | | | Fix users can't login external mount user entered credentials not set
| * files_external SMB: throw InvalidArgument when user is not setAnderson Luiz Alves2021-12-031-0/+4
| | | | | | | | Signed-off-by: Anderson Luiz Alves <alacn1@gmail.com>
* | Fix a few psalm issues and moved back to psalm/phar 4.18Carl Schwan2022-01-121-1/+1
| | | | | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | Add option to disallow creation of local storagesVincent Petry2021-12-154-7/+54
|/ | | | | | | Introduce a new config option to prevent web UI admins to create or edit external storages of type "local". Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix ArrayAccess and JsonSerializable return typesCôme Chilliet2021-11-234-12/+4
| | | | | | First round of modifications for PHP 8.1 Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add migration to move over existing storage idsJulius Härtl2021-11-091-0/+111
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use unique combination of hostname/bucket/key for external storagesJulius Härtl2021-11-041-0/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Merge pull request #29021 from nextcloud/work/smb/additional-loggingJulius Härtl2021-10-251-0/+1
|\
| * Add additional logging on SMB failure to read folder contentCarl Schwan2021-10-011-0/+1
| | | | | | | | | | | | | | | | Currently we discard the error comming from the SMB library and create a new exception for nextcloud. This patch makes sure that the access/permission exception from the SMB library are logged correctly. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* | cache versioning enabled statusRobin Appelman2021-10-191-2/+16
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | minor directory detect improvementsRobin Appelman2021-10-191-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | always set Key field in `headObject`Robin Appelman2021-10-151-1/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | more reliable hasUpdated for s3Robin Appelman2021-10-151-0/+13
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | remove old migration methodRobin Appelman2021-10-151-31/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | optimize filetype for s3 directories a bitRobin Appelman2021-10-151-0/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | more reliable directory copyRobin Appelman2021-10-151-20/+10
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>