aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Fix testsRoeland Jago Douma2018-04-041-2/+2
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Add pathcacheRoeland Jago Douma2018-04-041-4/+19
| | | | | | | * If we find the mountpoint for a path cache it * If we modify the mount points empty the pathCache Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make normalized cache path largerRoeland Jago Douma2018-04-041-1/+1
| | | | | | | | | | | On larger instances with a large number of shares this can make a real impact as the default 512 entries are easily filled. Making this contain max 2048 entries has basically no effect on smaller installations (as they probably never hit the 512 now). But makes sure we don't evict entries in the larger case. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Comparing stringlength is cheaper than strposRoeland Jago Douma2018-04-041-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Cache the $foundMountPointLengthRoeland Jago Douma2018-04-041-1/+3
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* InspectionsRoeland Jago Douma2018-04-041-8/+9
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Make the MountManager strictRoeland Jago Douma2018-04-041-13/+14
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #9018 from nextcloud/fix-copy-encrypted-filesBjörn Schießle2018-04-031-7/+8
|\ | | | | reset encryptionVersion to '1' if a file was stream copied
| * reset encryptionVersion to '1' if a file was stream copied, because this ↵Bjoern Schiessle2018-04-031-7/+8
| | | | | | | | | | | | means that we basically write the file from scratch Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | Throw an exception if file_put_contents failsRoeland Jago Douma2018-03-271-1/+5
| | | | | | | | | | | | | | | | * This will help with AppData hardening etc * Introduced a GenericFileException for if nothing else is appropiate - Maybe the other File exceptions should base on this? Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix proper permissions for multiple file accessRoeland Jago Douma2018-03-221-11/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes #8890 In case you have access to a file via multiple ways, for example: 1. the file is shared with you with permission read only 2. the folder containing the file is shared with your read/write Requesting the getById function on the userFolder would give back two entries but both with the same permissions. Depending on the node you picked this is not right. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Remove \OCP\Files::tmpFileRoeland Jago Douma2018-03-191-1/+1
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | 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>
* | | Merge pull request #8830 from nextcloud/node_emit_readRoeland Jago Douma2018-03-151-0/+7
|\ \ \ | | | | | | | | Emit read for nodes
| * | | Emit read for nodesRoeland Jago Douma2018-03-151-0/+7
| | | | | | | | | | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.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>
* Merge pull request #8289 from nextcloud/appdata_hardeningJoas Schilling2018-03-021-1/+35
|\ | | | | AppData hardening
| * Hardening of SimpleFile getContentRoeland Jago Douma2018-02-271-1/+35
| | | | | | | | | | | | | | if file_get_contents fails remove the file. And traverse up the tree checking if the other folders are there. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Merge pull request #8284 from nextcloud/lib_log-storage-test-failedRoeland Jago Douma2018-03-011-0/+3
|\ \ | |/ |/| External storage test: log exceptions
| * External storage test: log exceptionsRoland Tapken2018-02-111-0/+3
| | | | | | | | | | | | | | | | If an external storage test fails the exception's message is now written into the logfile (level INFO). Additionally, the stack trace is printed as DEBUG. This helps to resolve the reason for a failing connection. Signed-off-by: Roland Tapken <roland@bitarbeiter.net>
* | 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>
* | Merge pull request #8259 from nextcloud/guzzle6Morris Jobke2018-02-141-2/+2
|\ \ | | | | | | update guzzlehttp/guzzle to 6.3.0
| * | Adjust dav client to new guzzleRobin Appelman2018-02-091-2/+2
| | | | | | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #8335 from nextcloud/remove-unused-importMorris Jobke2018-02-142-4/+0
|\ \ \ | | | | | | | | Remove unused import statements
| * | | Remove unused import statementsMorris Jobke2018-02-142-4/+0
| | |/ | |/| | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* / | Simplify return statementMorris Jobke2018-02-131-3/+1
|/ / | | | | | | 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-082-1/+6
|/ | | | 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>
* | Merge pull request #8023 from nextcloud/webdavsearch_limit_order_fixingMorris Jobke2018-02-081-2/+9
|\ \ | | | | | | Respect limit and order in webdav search
| * | CacheJail should apply limit and offset after searchingRoeland Jago Douma2018-02-071-2/+9
| | | | | | | | | | | | | | | | | | Else the results might not be correct. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | | actually return stream from swiftRobin Appelman2018-02-071-1/+1
|/ / | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Do not try to get the jailed path if we can't find the idRoeland Jago Douma2018-02-031-0/+4
| | | | | | | | | | | | | | | | | | Fixes #8047 If we can't find the file by id there we should just return null instead of trying to get the jailed path of null. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Use ::class statement instead of stringMorris Jobke2018-01-293-4/+5
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Remove unneeded semicolon and parenthesesMorris Jobke2018-01-266-8/+8
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Merge pull request #8071 from nextcloud/remove-silly-codeMorris Jobke2018-01-261-2/+1
|\ \ | | | | | | Cleanup unused code
| * | Cleanup unused codeMorris Jobke2018-01-261-2/+1
| | | | | | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | | Merge pull request #8054 from nextcloud/substr-use-indexMorris Jobke2018-01-263-12/+8
|\ \ \ | |/ / |/| | Use index based string access for substr with length of 1
| * | Use index based string access for substr with length of 1Morris Jobke2018-01-263-12/+8
| |/ | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>