aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/Files
Commit message (Collapse)AuthorAgeFilesLines
* Enable fseek for files in S3 storageLukas Stabe2020-05-202-19/+147
| | | | Signed-off-by: Lukas Stabe <lukas@stabe.de>
* dont try to update storage mtime if we can't get the mtimeRobin Appelman2020-05-011-6/+9
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Close the streams in `writeStream` even when there is an exceptionRobin Appelman2020-04-151-3/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #20163 from nextcloud/backport/19782/stable18Morris Jobke2020-04-141-9/+18
|\ | | | | [stable18] Use global used space in quota wrappen when external storage is included
| * Use global used space in quota wrappen when external storage is includedRobin Appelman2020-03-251-9/+18
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #20334 from nextcloud/backport/20284/stable18Roeland Jago Douma2020-04-141-2/+4
|\ \ | | | | | | [stable18] Properly catch NoUserException during upload cleanup
| * | Properly hint exceptions thrown by getUserFolderJulius Härtl2020-04-061-2/+4
| | | | | | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | | Try to use the display name of file transfersJoas Schilling2020-04-081-1/+1
|/ / | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* / Actually check if the owner is not nullRoeland Jago Douma2020-03-271-0/+5
|/ | | | | | | Else this can error out on storages that do not have an owner (e.g. groupfolders). Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Get correct mimetype on objectstoresRoeland Jago Douma2020-03-121-6/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Allow to overwrite the path on the cache eventJoas Schilling2020-02-171-0/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Don't create invalid usersJoas Schilling2020-02-131-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headers for 18Christoph Wurst2019-12-203-0/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add typed events for the filesystem/scannerChristoph Wurst2019-12-131-21/+35
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #18236 from ↵Roeland Jago Douma2019-12-121-60/+90
|\ | | | | | | | | nextcloud/bugfix/noid/always-detect-mimetype-by-content-in-workflows Allow to detect mimetype by content
| * Fix detection of non extention typesRoeland Jago Douma2019-12-121-3/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Try more methodsJoas Schilling2019-12-101-3/+12
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Some more fixes in detecting the mimetype from the contentJoas Schilling2019-12-101-15/+17
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Cleanup the codeJoas Schilling2019-12-101-43/+45
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
| * Allow to check for the mimetype by content onlyJoas Schilling2019-12-101-7/+21
| | | | | | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* | Merge pull request #18314 from nextcloud/fixFileIdSearchRoeland Jago Douma2019-12-101-0/+2
|\ \ | |/ |/| Fix ambigious fileID on search
| * fix https://github.com/nextcloud/server/issues/18313tobiasKaminsky2019-12-101-0/+2
| | | | | | | | Signed-off-by: tobiasKaminsky <tobias@kaminsky.me>
* | Fix search limit to homeRoeland Jago Douma2019-12-091-0/+4
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Move custom definition logic into methodDaniel Kesselberg2019-12-091-21/+16
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Ensure that we don't merge broken json.Daniel Kesselberg2019-12-091-6/+25
| | | | | | | | Signed-off-by: Daniel Kesselberg <mail@danielkesselberg.de>
* | Update license headersChristoph Wurst2019-12-0590-101/+218
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Merge pull request #17941 from nextcloud/search-by-ownerRoeland Jago Douma2019-12-054-19/+48
|\ \ | |/ |/| Allow filtering the search results to the users home storage
| * remove old 'owner' filterRobin Appelman2019-12-031-5/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Allow filtering the search results to the users home storageRobin Appelman2019-12-034-19/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This is done by adding a ```xml <d:eq> <d:prop> <oc:owner-id/> </d:prop> <d:literal>$userId</d:literal> </d:eq> ``` clause to the search query. Searching by `owner-id` can only be done with the current user id and the comparison can not be inside a `<d:not>` or `<d:or>` statement Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #18163 from nextcloud/fix_file_sizeRoeland Jago Douma2019-12-041-1/+3
|\ \ | | | | | | fix filename size
| * | fix filename size, add commentGreta Doci2019-12-041-1/+3
| | | | | | | | | | | | Signed-off-by: Greta Doci <gretadoci@gmail.com>
* | | Merge pull request #17833 from nextcloud/propagator-no-negative-sizesRoeland Jago Douma2019-12-041-2/+5
|\ \ \ | |_|/ |/| | dont set folder size to negative values during propagation
| * | dont set folder size to negative values during propagationRobin Appelman2019-11-261-2/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | normally this shouldn't be a problem, but cache/storage desync might cause this so this adds some failsafe to ensure we dont corrupt the cache further the minimum value is set to -1 instead of 0 in order to triger a background scan on the folder and figure out the size properly Signed-off-by: Robin Appelman <robin@icewind.nl>
* | | Merge pull request #18149 from nextcloud/fix/18148/dont-create-bundle-too-earlyRoeland Jago Douma2019-11-291-11/+17
|\ \ \ | | | | | | | | delay creation of the cert bundle
| * | | delay creation of the cert bundleArthur Schiwon2019-11-281-11/+17
| | |/ | |/| | | | | | | | | | | | | fixes #18148 Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* / | Properly anotate LockedException in files node apiJulius Härtl2019-11-283-18/+44
|/ / | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Improve etag handlingRoeland Jago Douma2019-11-271-6/+20
| | | | | | | | | | | | Check if values exist before using them Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Files first to use own GenericEventArthur Schiwon2019-11-261-1/+1
|/ | | | | | * those are added to 18 only anyway :) Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Merge pull request #18079 from nextcloud/fixes/phpcsRoeland Jago Douma2019-11-2527-34/+37
|\ | | | | Some php-cs fixes
| * Some php-cs fixesRoeland Jago Douma2019-11-2227-34/+37
| | | | | | | | | | | | | | | | | | | | | | * Order the imports * No leading slash on imports * Empty line before namespace * One line per import * Empty after imports * Emmpty line at bottom of file Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Harden watcherRoeland Jago Douma2019-11-221-2/+2
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #17824 from nextcloud/fix/dav/catch_forbiddenRoeland Jago Douma2019-11-201-0/+5
|\ | | | | Catch forbidden http status code
| * Catch forbidden http status codeRoeland Jago Douma2019-11-171-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | If you try to do something on a DAV mount (external or federated share) that is not allowed. We should not mark the storage as not available but just fail somewhat gracefully. Now by catching this and just properly returning the operation will just fail (and notify the user) which is already a lot better then marking the storage as unavailable and doing boom. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Fix cache movesRoeland Jago Douma2019-11-181-1/+4
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | cast ctime and utimeRobin Appelman2019-11-131-2/+2
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | filter out empty filecache extension valuesRobin Appelman2019-11-131-1/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix folder deleteRobin Appelman2019-11-131-3/+9
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont create empty filecache extended rowsRobin Appelman2019-11-131-19/+33
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | dont expose metadata etag for nowRobin Appelman2019-11-133-15/+0
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | expose filecache extension data in FileInfoRobin Appelman2019-11-133-0/+45
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>