aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/Lib/Storage
Commit message (Collapse)AuthorAgeFilesLines
...
* Update AmazonS3.phpJames Guo2023-04-061-1/+1
| | | Signed-off-by: James Guo <i@ze3kr.com>
* 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>
* Support of s3 storage class in External Storage applicationFrançois Ménabé2023-01-121-1/+2
| | | | 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>
* 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-181-1/+1
| | | | 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>
* 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-161-7/+7
| | | | | | Otherwise psalm complains that the type can also be a non-falsy-string Signed-off-by: Carl Schwan <carl@carlschwan.eu>
* 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>
* 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>
* | Adapt more code to migration to LoggerInterfaceCôme Chilliet2022-03-241-20/+20
| | | | | | | | Signed-off-by: Côme Chilliet <come.chilliet@nextcloud.com>
* | 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>
* 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>
* 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>
* | doesDirectoryExist fixesRobin Appelman2021-10-151-4/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | s3 external storage listing reworkRobin Appelman2021-10-151-96/+147
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #29185 from ↵Robin Appelman2021-10-151-23/+1
|\ \ | | | | | | | | | | | | nextcloud/revert-29165-bug/noid/s3-delete-folder-versions Revert "Delete S3 versions in rmdir"
| * | Revert "Delete S3 versions in rmdir"Vincent Petry2021-10-121-23/+1
| | |
* | | Merge pull request #27194 from nextcloud/new-ftpJohn Molakvoæ2021-10-142-84/+526
|\ \ \ | |/ / |/| |
| * | ftp ci improvementsRobin Appelman2021-10-071-1/+1
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | update copyright headerRobin Appelman2021-10-071-1/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | teardownRobin Appelman2021-10-071-1/+5
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * | add new ftp backendRobin Appelman2021-10-072-85/+522
| |/ | | | | | | | | | | this uses the raw `ftp_` functions instead of the stream wrapper Signed-off-by: Robin Appelman <robin@icewind.nl>
* / Delete S3 versions in rmdirVincent Petry2021-10-111-1/+23
|/ | | | | | | When deleting a complete folder in a bucket that has versioning enabled, also make sure to delete all associated versions and delete markers Signed-off-by: Vincent Petry <vincent@nextcloud.com>
* Fix folder size contained in S3 bucketsLouis Chemineau2021-08-191-4/+9
| | | | | | If 'filesystem_check_changes' was set to never, the cached size was alway set to -1 (Pending) on every access Signed-off-by: Louis Chemineau <louis@chmn.me>