aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files
Commit message (Collapse)AuthorAgeFilesLines
...
* | Update license headersLukas Reschke2015-10-265-1/+5
|/
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-252-5/+15
| | | | | | | | | | Currently the `getPath` methods returned `NULL` in case when a file with the specified ID does not exist. This however mandates that developers are checking for the `NULL` case and if they do not the door for bugs with all kind of impact is widely opened. This is especially harmful if used in context with Views where the final result is limited based on the result of `getPath`, if `getPath` returns `NULL` PHP type juggles this to an empty string resulting in all possible kind of bugs. While one could argue that this is a misusage of the API the fact is that it is very often misused and an exception will trigger an immediate stop of execution as well as log this behaviour and show a pretty error page. I also adjusted some usages where I believe that we need to catch these errors, in most cases this is though simply an error that should hard-fail.
* Dont lock /$user/filesRobin Appelman2015-10-231-1/+1
|
* Merge pull request #17641 from owncloud/fix_objectstore_renameJörn Friedrich Dreyer2015-10-192-9/+11
|\ | | | | don't move files in cache twice, fixes renaming for objectstores
| * fix objectstore files having create permissionsRobin Appelman2015-10-161-2/+2
| |
| * don't move files in cache twice, fixes renaming for objectstoresJörn Friedrich Dreyer2015-10-161-7/+9
| |
* | Merge pull request #19833 from owncloud/fix_view_rmdirRobin Appelman2015-10-191-1/+1
|\ \ | |/ |/| Removemount expects absolutePath
| * Removemount expects absolutePathRoeland Jago Douma2015-10-161-1/+1
| |
* | Remove $ETagFunction - it was never usedThomas Müller2015-10-161-7/+1
| |
* | Consolidate webdav code - move all to one appThomas Müller2015-10-161-1/+1
|/
* check if fopen was successful before continueBjoern Schiessle2015-10-151-3/+7
|
* only wrap source if fopen was successfulBjoern Schiessle2015-10-151-1/+4
|
* also detect files in a .part folder as part fileBjoern Schiessle2015-10-121-0/+4
|
* Merge pull request #19654 from owncloud/db-locking-no-scan-transactionRobin Appelman2015-10-091-2/+8
|\ | | | | Dont use a transaction in the scanner while using db based locking
| * Dont use a transaction in the scanner while using db based lockingRobin Appelman2015-10-081-2/+8
| |
* | make mkdir recursive, add phpdoc to apiJörn Friedrich Dreyer2015-10-081-18/+21
| |
* | fix internal path when searching in storage rootRobin Appelman2015-10-061-2/+5
| |
* | The minimum size for internalRootLength is 1Olivier Paroz2015-10-061-1/+1
|/
* Merge pull request #19597 from owncloud/update-license-headersThomas Müller2015-10-0620-20/+50
|\ | | | | update licence headers via script
| * deduplicate @xenopathicMorris Jobke2015-10-067-7/+3
| |
| * update licence headers via scriptMorris Jobke2015-10-0519-19/+53
| |
* | use a normal rename when moving from the same storage in the encryption wrapperRobin Appelman2015-10-051-0/+3
|/
* Merge pull request #19416 from owncloud/node-hook-connectorThomas Müller2015-10-051-0/+151
|\ | | | | pass view hooks trough to the node hooks
| * Add hook connector to connect view and node hooksRobin Appelman2015-09-281-0/+151
| |
* | Merge pull request #19272 from owncloud/mimetypes-enhancedThomas Müller2015-10-021-1/+1
|\ \ | | | | | | Introduce a few new mimetypes for code, fix recursive mimetype aliases
| * | Allow recursive mimetype aliasesRobin McCorkell2015-10-021-1/+1
| | | | | | | | | | | | application/xml -> text/html -> text/code
* | | Prevent moving mount point into already shared folder (outgoing)Vincent Petry2015-10-021-8/+29
|/ / | | | | | | | | | | | | | | It is already not allowed to share a folder containing mount points / incoming shares. This fixes an issue that made it possible to bypass the check by moving the incoming share mount point into an existing outgoing share folder.
* | versions should always use the keys of the original file, no need to create ↵Bjoern Schiessle2015-10-011-2/+24
| | | | | | | | new one
* | Make postScanFile and postScanFolder available to OC\Files\Utils\ScannerOlivier Paroz2015-09-301-1/+6
| |
* | Always send a postScanFile event when done scanning a fileOlivier Paroz2015-09-301-2/+2
|/ | | | postScanFile is important when scanning external storage as it indicates when the file is ready to be used
* Merge pull request #19303 from owncloud/usecorrectvariableThomas Müller2015-09-241-1/+1
|\ | | | | Use correct variable
| * use correct variableJörn Friedrich Dreyer2015-09-231-1/+1
| | | | | | | | wow ... just wow ...
* | Merge pull request #16479 from owncloud/core-fixgetrelativepathwrongmatchesThomas Müller2015-09-241-1/+4
|\ \ | |/ |/| Prevent wrong matches in getRelativePath
| * Prevent wrong matches in getRelativePathVincent Petry2015-09-221-1/+4
| | | | | | | | | | Before this fix, the root "/files" with path "/files_trashbin" would return "_trashbin" as relative path...
* | Revert "use correct variable"Jörn Friedrich Dreyer2015-09-231-1/+1
| | | | | | | | This reverts commit 52cbaff061b93cb1a5e81623e58e14867c818810.
* | use correct variableJörn Friedrich Dreyer2015-09-231-1/+1
| | | | | | wow ... just wow ...
* | Merge pull request #19236 from owncloud/call_dot_directories_functionThomas Müller2015-09-234-5/+5
|\ \ | | | | | | Replaces if ($file === '.' || $file === '..') by public function call isIgnoredDir
| * | Replaces if ($file === '.' || $file === '..') by ↵Martin2015-09-224-5/+5
| | | | | | | | | | | | if(\OC\Files\Filesystem::isIgnoredDir($file)). Eases to find where this operation is used.
* | | Merge pull request #19247 from owncloud/fix_locking_copy_operationThomas Müller2015-09-231-42/+55
|\ \ \ | |/ / |/| | locking: handle exceptions correctly during copy operation
| * | catch excexptions during the copy operation and make sure that we free the ↵Bjoern Schiessle2015-09-221-42/+55
| |/ | | | | | | lock correctly
* / Move mimetype files into /resources/config/Lukas Reschke2015-09-221-13/+22
|/
* dont download the existing file for webdav if we're going to overwrite itRobin Appelman2015-09-211-2/+7
|
* Explicitly cast number to integerRobin McCorkell2015-09-161-1/+1
|
* Merge pull request #18915 from owncloud/node-getfoldercontents-use-view-logicRobin Appelman2015-09-152-70/+11
|\ | | | | Use the view logic for getFolderContent for the node api
| * Use the view logic for getFolderContent for the node apiRobin Appelman2015-09-082-70/+11
| |
* | Use integer for availability instead of boolRobin McCorkell2015-09-151-3/+5
| |
* | Merge pull request #18653 from owncloud/dav-stream-guzzleLukas Reschke2015-09-111-62/+31
|\ \ | | | | | | stream webdav downloads using http client
| * | also use httpclient for uploadFileRobin Appelman2015-09-011-35/+18
| | |
| * | stream webdav downloads using http clientRobin Appelman2015-08-291-29/+15
| | |
* | | Add reset method to mimetype loaderRobin McCorkell2015-09-112-1/+9
| |/ |/| | | | | Used to solve concurrency issues