aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* improve handling of files we can't access in the scannerRobin Appelman2023-04-051-8/+16
| | | | | | | | instead of erroring, remove the items from the cache. this situation can be triggered if a user has access to a file but looses it afterwards Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix ftp external storage with filezilla serverRobin Appelman2023-03-302-7/+15
| | | | | | | - filezilla doesn't like "" as parameter for `mdtm` (all others seem fine) - filezilla sends fractional modified date Signed-off-by: Robin Appelman <robin@icewind.nl>
* Respect OCP interface in private classesCôme Chilliet2023-02-071-1/+1
| | | | | | | Because the parameter type was moved to phpdoc it needs to be removed from implementations Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Strong type filesize related methods to ease 32bits problem findingsCôme Chilliet2023-02-071-1/+1
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Attempt at reducing psalm errorsCôme Chilliet2023-01-201-4/+7
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Merge pull request #36089 from nextcloud/enh/noid/ext-storage-default-valuesVincent Petry2023-01-165-24/+54
|\ | | | | Ext storage configs default value support + enable SSL by default
| * Enable SSL by default in ext storage configsVincent Petry2023-01-134-4/+8
| | | | | | | | Signed-off-by: Vincent Petry <vincent@nextcloud.com>
| * Extend ext storage params to contain default valueVincent Petry2023-01-131-20/+46
| | | | | | | | | | | | | | Extend the external storage configuration parameters definition to allow to specify a default value Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* | Support of s3 storage class in External Storage applicationFrançois Ménabé2023-01-122-1/+4
|/ | | | Signed-off-by: François Ménabé <francois.menabe@gmail.com>
* Fix psalm issues related to signature changes from PHP 8.0Côme Chilliet2022-12-291-3/+0
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Add commentsCarl Schwan2022-12-052-0/+2
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix migration to non-empty secretCarl Schwan2022-12-052-2/+8
| | | | | | Add a fallback for empty keys Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* fix s3 directory copyRobin Appelman2022-11-151-3/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Make sure to not pass null to DateTime::createFromFormatCôme Chilliet2022-11-141-2/+2
| | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* Rename file1 and file2 to source and target in Storage abstractionCarl Schwan2022-10-187-67/+67
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Additional type hinting found by psalmCarl Schwan2022-10-186-16/+16
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Specify type to internal storage classCarl Schwan2022-10-171-0/+1
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix returning null when getMessage return nullCarl Schwan2022-10-171-11/+6
| | | | | | Don't overwrite $message but instead create another temporary variable Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* More type safetyCarl Schwan2022-10-175-25/+15
| | | | Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* Fix type of getVisibilityTypeCarl Schwan2022-10-173-3/+3
| | | | | | This is a int not a string Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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