aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private/files/filesystem.php
Commit message (Collapse)AuthorAgeFilesLines
* Move \OC\Files to PSR-4Roeland Jago Douma2016-04-241-928/+0
|
* Mark $usersSetup only if user was found in initMountPointsVincent Petry2016-04-221-2/+2
| | | | | | | | | | initMountPoints is marking a user as successfully initialized too early. If the user was not found an NoUserException was thrown, the second time initMountPoints is called would not rethrow the exception and happily continue. This fix makes sure that we consistently throw NoUserException when initMountPoints is called repeatedly with invalid users.
* Throw NoUserException when attempting to init mount point for null userVincent Petry2016-04-221-0/+3
| | | | | | | In some scenarios initMountPoints is called with an empty user, and also there is no user in the session. In such cases, it is unsafe to let the code move on with an empty user.
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Update author informationLukas Reschke2016-03-011-0/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* getRootFolder should not setup the FS for any userRoeland Jago Douma2016-02-181-2/+2
| | | | | | | | | | | | | Fixes #22467 This can go wrong when an app (take the ldap app) DIs something that needs the rootFolder. This break if we use cookie auth since then we know the user at that point and thus try to setup the fs for that user. However if there are then incomming shares from an ldap user they will fails since the user manager can't find them yet. Now getRootFolder does not setup the fs for any user.
* multiple minor fiesRobin Appelman2016-01-201-1/+1
|
* use getmountmanagerRobin Appelman2016-01-201-1/+1
|
* cache mountpoints in the dbRobin Appelman2016-01-201-1/+6
|
* Happy new year!Thomas Müller2016-01-121-2/+2
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-1/+0
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Reduce OC_Config usage in lib/Morris Jobke2015-12-021-3/+3
| | | | * replaced by proper public interfaces
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-1/+3
| | | | | | | | | | 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.
* expose the mount manager in the public apiRobin Appelman2015-07-011-2/+2
|
* update license headers and authorsMorris Jobke2015-06-251-2/+1
|
* Merge pull request #17110 from owncloud/share-error-handlingMorris Jobke2015-06-241-0/+1
|\ | | | | [sharing] handle shares of users that aren't available anymore
| * [sharing] handle shares of users that aren't available anymoreMorris Jobke2015-06-231-0/+1
| | | | | | | | | | * properly handle the case where an abandoned share is left and simply skip it
* | Added error message on initMountpoints exceptionMorris Jobke2015-06-231-1/+1
|/
* phpdoc, strict and type hintsRobin Appelman2015-06-021-0/+6
|
* only use mount provider if we have a valid userRobin Appelman2015-06-021-2/+4
|
* call mount providers that are registered after the filesystem is setupRobin Appelman2015-06-021-7/+34
|
* throw exception when backends don't provide a user instead of creating ↵Jörn Friedrich Dreyer2015-04-101-31/+31
| | | | legacy local storages
* setup mount manager before wrappersRobin Appelman2015-04-021-1/+1
|
* add priority to storage wrappersRobin Appelman2015-03-261-2/+4
|
* Update license headersJenkins for ownCloud2015-03-261-4/+33
|
* Merge pull request #13893 from owncloud/create-cachedir-on-userMorris Jobke2015-03-111-8/+1
|\ | | | | Only make sure the cache directory exists when we use it
| * Only make sure the cache directory exists when we use itRobin Appelman2015-02-041-8/+1
| |
* | Revert "Updating license headers"Morris Jobke2015-02-261-31/+25
| | | | | | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* | Updating license headersJenkins for ownCloud2015-02-231-25/+31
| |
* | Ensure that passed argument is always a stringLukas Reschke2015-02-131-0/+9
| | | | | | | | | | | | Some code paths called the `normalizePath` functionality with types other than a string which resulted in unexpected behaviour. Thus the function is now manually casting the type to a string and I corrected the usage in list.php as well.
* | Normalize before processingLukas Reschke2015-02-061-4/+6
|/
* Fix resolving paths for views rooted in a fileRobin Appelman2015-01-291-1/+1
|
* Apply wrappers to existing mounts before registering itRobin Appelman2015-01-231-7/+3
|
* removeStorageWrapper to unregister a storage wrapperVincent Petry2015-01-231-0/+10
|
* Do not call wrapStorage if storate with same name added twiceVincent Petry2015-01-221-1/+4
|
* Use json_encode on stringLukas Reschke2015-01-131-1/+1
| | | | | | | | | | | | It's better to encode the string to prevent possible (yet unknown) bugs in combination with PHP's type juggling. Previously the boolean statements evaluated to either an empty string (false) or a not empty one (true, then it was 1). Not it always evaluates to false or true. This also removes a stray - that was not intended there but shouldn't have produced any bugs. Just to increase readability. Thanks @nickvergessen for spotting. Addresses https://github.com/owncloud/core/pull/13235/files#r22852319
* Merge pull request #13224 from ↵Morris Jobke2015-01-101-1/+1
|\ | | | | | | | | owncloud/simplify-is-valid-path-and-add-unit-tests Simplify isValidPath and add unit tests
| * Simplify isValidPath and add unit testsLukas Reschke2015-01-101-1/+1
| | | | | | | | | | | | The check for invalid paths is actually over-complicated and performed twice resulting in a performance penalty. Additionally, I decided to add unit-tests to that function. Part of https://github.com/owncloud/core/issues/13221
* | Cache results of `normalizePath`Lukas Reschke2015-01-101-1/+12
|/ | | | | | | | `normalizePath` is a rather expensive operation and called multiple times for a single path for every file related operation. In my development installation with about 9GB of data and 60k files this leads to a performance boost of 24% - in seconds that are 1.86s (!) - for simple searches. With more files the impact will be even more noticeable. Obviously this affects every operation that has in any regard something to do with using OC\Files\Filesystem. Part of https://github.com/owncloud/core/issues/13221
* Make $userId mandatory for searchByTagsVincent Petry2014-12-121-2/+3
| | | | | | | $userId is now a mandatory parameter for searchByTags. Also fixed some places in the code where the argument was missing (Node API and View)
* Added searchByTags to view, storage and cacheVincent Petry2014-12-111-0/+8
|
* Add public api for mount configurationsRobin Appelman2014-12-041-6/+11
|
* Make it possible to cleanPath() absolute Windows pathsJoas Schilling2014-11-171-2/+11
|
* Reset the users setup after clearing mountsRobin Appelman2014-10-281-0/+1
|
* Only mount the storages for the user onceRobin Appelman2014-10-271-1/+5
|
* Added failing unit tests for mount config hooksVincent Petry2014-10-081-0/+5
|
* Don't automatically setup the filesystem the moment we load OC\Files\FileSystemRobin Appelman2014-09-021-2/+0
|
* move to public namespaceMorris Jobke2014-08-191-3/+0
|
* Use tabs for indentation.Stephan Peijnik2014-08-191-3/+3
| | | | Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>
* Fix STORAGE_* constants usage by moving those constants into ↵Stephan Peijnik2014-08-191-3/+4
| | | | | | | | | | \OC\Files\Filesystem. As constants not defined within a class cannot be automatically found by the autoloader moving those constants into a class makes them accessible to code which uses them. Signed-off-by: Stephan Peijnik <speijnik@anexia-it.com>