aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* Fix usage of streamsCarl Schwan2022-10-172-4/+4
| | | | | | always return a bool and type the handle as a string Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Use argument name from parent classCarl Schwan2022-10-172-15/+15
| | | | | | This will be an issue with php 8, so best to fix it now Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add corresponding interface to traitCarl Schwan2022-10-177-80/+112
| | | | | | | Since we can't specify that we want a class implementing a trait yet in PHP Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Add more typing to FilesExternal commandsCarl Schwan2022-10-1711-139/+52
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Port away from deprecated clearBucket callCarl Schwan2022-10-161-9/+2
| | | | | | | | | | This was removed a long time ago in the library that we use, but never detected since this was inside a try catch block... Remove the call for now and we should investigate newer api in the future. Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Port to LoggerInterfaceCarl Schwan2022-10-161-10/+44
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Force cast getCode to intCarl Schwan2022-10-162-9/+9
| | | | | | Otherwise psalm complains that the type can also be a non-falsy-string Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Specify that userId can be nullCarl Schwan2022-10-161-1/+1
| | | | | | | This fixes a psalm false-positive where the method is called with null, since the method actually handle this correctly already Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix return value of updateParentCarl Schwan2022-10-161-8/+3
| | | | | | | Port to executeStatement to guarantee that we will return an int and remove a deprecated method call at the same time Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Port away from removed IDBConnection->isConnected methodCarl Schwan2022-10-161-6/+4
| | | | | | | Instead track if the reconnection was successful with return value of connect method Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix too many arguments in LegacyDependencyCheckPolyfillCarl Schwan2022-10-161-1/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix typos in apps/ subdirectoryluz paz2022-09-055-5/+5
| | | | | | | Found via `codespell -q 3 -S l10n,./apps/files_external/3rdparty -L adn,ba,boxs,keypair,jus,optionel,ressource,tabel ./apps/` Signed-off-by: luz paz <luzpaz@github.com> Signed-off-by: nextcloud-command <nextcloud-command@users.noreply.github.com>
* add marker interface to mark system mount points for encryptionRobin Appelman2022-08-252-1/+31
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* 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>