summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
* getStorage before removeMaxence Lange2023-07-131-0/+6
| | | Signed-off-by: Maxence Lange <maxence@artificial-owl.com>
* Merge pull request #37702 from nextcloud/backport/37617/stable25Arthur Schiwon2023-05-171-1/+4
|\ | | | | [stable25] handle not being able to write file for notify self-test
| * handle not being able to write file for notify self-testRobin Appelman2023-04-131-1/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | check the username when doing external storage session authRobin Appelman2023-05-151-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | add command for getting fileinfo for debuggingRobin Appelman2023-05-011-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Do not override stored credentials when login in with SAMLLouis Chemineau2023-04-261-2/+2
|/ | | | | | | | | | When login in with SAML, the password from `$event->getPassword()` is `null`. This PR makes sure that this `null` value won't be used to override the stored password even though it is different. This PR also allow for the password and user to be updated even though they were not set before. Signed-off-by: Louis Chemineau <louis@chmn.me>
* Enable SSL by default in ext storage configsVincent Petry2023-01-164-4/+8
| | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Extend ext storage params to contain default valueVincent Petry2023-01-161-20/+46
| | | | | | | Extend the external storage configuration parameters definition to allow to specify a default value Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Add commentsCarl Schwan2022-12-062-0/+2
| | | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit 5e31ed4f526e943e695d994a6434ed71d1a45c1c)
* Fix migration to non-empty secretCarl Schwan2022-12-062-2/+8
| | | | | | | Add a fallback for empty keys Signed-off-by: Carl Schwan <carl@carlschwan.eu> (cherry picked from commit 754cb58b1259a58f626d47c2193b92c651d3b2d8)
* Make sure to not pass null to DateTime::createFromFormatCôme Chilliet2022-11-151-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* 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>