aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files/ObjectStore
Commit message (Collapse)AuthorAgeFilesLines
...
* forward object not found error in switch as dav 404Robin Appelman2018-11-192-6/+23
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* extend storage api to allow directly writing a stream to storageRobin Appelman2018-10-311-22/+46
| | | | | | | | | | | this removes the need for temporary storages with some external storage backends. The new method is added to a separate interface to maintain compatibility with storage backends implementing the storage interface directly (without inheriting common) Currently the interface is implemented for objectstorage based storages and local storage and used by webdav uploads Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix listing s3 objects when using google cloud aws compatibilityRobin Appelman2018-06-111-0/+5
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add azure unit tests with azuriteRobin Appelman2018-06-041-1/+28
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* add azure object storage backendRobin Appelman2018-06-041-0/+91
| | | | | Signed-off-by: Robin Appelman <robin@icewind.nl> Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* generateTokenFromCache is only valid for V3Roeland Jago Douma2018-04-261-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* json_decode an associative array for the swift cached tokenRoeland Jago Douma2018-04-261-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* move log constants to ILoggerArthur Schiwon2018-04-261-1/+2
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #9280 from nextcloud/bugfix/noid/swift-v3-scopeRoeland Jago Douma2018-04-241-0/+4
|\ | | | | Swift v3 requires setting a scope
| * Swift v3 requires setting a scopeRoeland Jago Douma2018-04-231-0/+4
| | | | | | | | | | | | | | | | | | Unscoped auth is not guaranteed to return a catalog. So require the scope to be set properly. See https://developer.openstack.org/api-ref/identity/v3/index.html#password-authentication-with-unscoped-authorization Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix undefined variable - found by phanMorris Jobke2018-04-231-1/+1
|/ | | | | | Added in https://github.com/nextcloud/server/pull/8314/files#diff-a55c10804586cd797b7f3f16556c1457R157 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Add more logging for the object storage during creation of the bucketsMorris Jobke2018-04-051-3/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8857 from nextcloud/swift-verify-cached-tokenMorris Jobke2018-03-192-12/+24
|\ | | | | verify cached swift token
| * verify cached swift tokenRobin Appelman2018-03-162-12/+24
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Fix bucket and container usageRoeland Jago Douma2018-03-142-2/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Properly cache swift v3 tokenRoeland Jago Douma2018-03-121-1/+6
|/ | | | | | | The V3 token has an export function. Without this the token is effectively never cached. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #8715 from nextcloud/objectstore-no-part-filesRoeland Jago Douma2018-03-081-0/+4
|\ | | | | disable part files for object stores
| * disable part files for object storesRobin Appelman2018-03-071-0/+4
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | don't read existing file when overwriting using object storeRobin Appelman2018-03-071-7/+13
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* User proper username + passRoeland Jago Douma2018-02-261-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* add support for v3 swift authRobin Appelman2018-02-261-7/+27
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust swift external storage to new openstack sdkRobin Appelman2018-02-192-34/+51
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* adjust swift object storage to new openstack sdkRobin Appelman2018-02-192-212/+184
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove unused import statementsMorris Jobke2018-02-141-3/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Try to silence phanRoeland Jago Douma2018-02-081-0/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* don't swallow exception from touchRobin Appelman2018-02-082-2/+10
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* better error message on catalog errorRobin Appelman2018-02-081-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #8033 from nextcloud/s3-uploaderMorris Jobke2018-02-081-43/+2
|\ | | | | Use S3Client::upload instead of splitting single/multipart upload ourselves
| * Use S3Client::upload instead of splitting single/multipart upload ourselvesRobin Appelman2018-01-241-43/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | actually return stream from swiftRobin Appelman2018-02-071-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Cleanup unused codeMorris Jobke2018-01-261-2/+1
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-1/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add option to use legacy v2 auth with s3Robin Appelman2017-12-192-1/+220
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Also replace all other occurencesMorris Jobke2017-12-181-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* add retry wrapper when reading files from swiftRobin Appelman2017-12-041-1/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only create the file cache entry after the empty file was created ↵Bjoern Schiessle2017-11-171-14/+13
| | | | | | successfully, otherwise file_exists() call on the initial file_put_content() will indicate that the file already exists Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Use non empty files for object store touchRobin Appelman2017-11-081-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Fix contructing headers for s3 downloadRobin Appelman2017-11-081-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Change @georgehrke's emailMorris Jobke2017-11-061-0/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #7083 from nextcloud/update-license-headersMorris Jobke2017-11-066-0/+11
|\ | | | | Update license headers
| * Update license headersMorris Jobke2017-11-066-0/+11
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Better error message for invalid bucket namesMorris Jobke2017-11-061-2/+2
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #6958 from ↵Joas Schilling2017-11-011-1/+9
|\ | | | | | | | | nextcloud/improved-mimetype-detection-for-object-storage Improve mimetype detection for object storages
| * Improve mimetype detection for object storagesMorris Jobke2017-10-261-1/+9
| | | | | | | | | | | | Object storage instances always fall back to the content based mimetype detection, because the file name for object storage was always random due to the fact that it was temporarily storage in a generated temp file. This patch adds a check before that to make sure to use the original file name for this purpose and also remove possible other extensions like the versioning or part file extension. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | use fopen directly when reading objects from s3Robin Appelman2017-10-271-5/+8
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* propagate multipart upload exception when aborting uploadRobin Appelman2017-10-171-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* set s3 part size to 500mbRobin Appelman2017-10-111-1/+3
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add tests for multipart uploadRobin Appelman2017-09-211-2/+2
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* only do multipart upload for large filesRobin Appelman2017-09-211-0/+24
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>