aboutsummaryrefslogtreecommitdiffstats
path: root/tests/lib/files/view.php
Commit message (Collapse)AuthorAgeFilesLines
* Move tests/ to PSR-4 (#24731)Joas Schilling2016-05-201-2447/+0
| | | | | | | | | | | | | | | | | | | | * Move a-b to PSR-4 * Move c-d to PSR-4 * Move e+g to PSR-4 * Move h-l to PSR-4 * Move m-r to PSR-4 * Move s-u to PSR-4 * Move files/ to PSR-4 * Move remaining tests to PSR-4 * Remove Test\ from old autoloader
* Fix deprecated private methodJoas Schilling2016-05-191-2/+2
|
* When the scanner detects a file is changed clear checksumRoeland Jago Douma2016-04-191-0/+20
| | | | | | | | | Fixes #23782 and #23783 If the file scanner detects a changed file we clear the checksum while we update the cache. * Unit test added
* Use TempManager instead of tmpFolderMorris Jobke2015-12-181-1/+1
|
* Fix mimetype filter in getDirectoryContentRobin Appelman2015-12-031-0/+35
|
* Apply DB group annotation ...Thomas Müller2015-11-301-0/+7
|
* Add tests for FileInfo ownerRobin Appelman2015-11-101-10/+44
|
* Fix locking unit tests due to filemtime additionVincent Petry2015-10-261-2/+10
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-0/+16
| | | | | | | | | | 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.
* Added test for rmdir on moveablemountRoeland Jago Douma2015-10-161-0/+49
|
* Prevent moving mount point into already shared folder (outgoing)Vincent Petry2015-10-021-19/+112
| | | | | | | | 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.
* Comment typos in tests/lib/files/view.phpPhil Davis2015-09-241-3/+3
| | | Correct a comment typo just introduced at line 892, plus another and some white space at EOL.
* Merge pull request #16479 from owncloud/core-fixgetrelativepathwrongmatchesThomas Müller2015-09-241-28/+103
|\ | | | | Prevent wrong matches in getRelativePath
| * Add more tests for relativePathJoas Schilling2015-09-221-23/+91
| |
| * Prevent wrong matches in getRelativePathVincent Petry2015-09-221-10/+17
| | | | | | | | | | Before this fix, the root "/files" with path "/files_trashbin" would return "_trashbin" as relative path...
* | Merge pull request #19247 from owncloud/fix_locking_copy_operationThomas Müller2015-09-231-0/+43
|\ \ | | | | | | locking: handle exceptions correctly during copy operation
| * | catch excexptions during the copy operation and make sure that we free the ↵Bjoern Schiessle2015-09-221-0/+43
| |/ | | | | | | lock correctly
* / Move dummy backend to Tests namespaceLukas Reschke2015-09-221-1/+1
|/
* Merge pull request #17932 from owncloud/fix_move_filesThomas Müller2015-08-111-1/+3
|\ | | | | make sure that hooks are emitted properly on file move operation
| * make sure that we emit the hooks if a file gets moved from a subfolder to ↵Bjoern Schiessle2015-07-291-1/+3
| | | | | | | | the root folder with the nodes API
* | Fix removal of share permissions when share disabled for userVincent Petry2015-08-071-3/+60
|/
* Unlock first path on rename if second path is lockedVincent Petry2015-06-291-0/+33
|
* Remove test-specific method to make Bjoern and Joas happyVincent Petry2015-06-261-1/+1
|
* Keep shared locks in post hooksVincent Petry2015-06-251-1/+623
| | | | | | | | Instead of unlocking after the file operation, change exclusive locks back to shared locks during post hooks, and unlock after that. Also added unit tests to test locking in pre-hooks, during operation and post-hooks.
* Fix locked paths in the moveMount caseVincent Petry2015-06-241-0/+91
| | | | | | | When moving a mount point directly, the lock must be applied on the local mount point path instead of the attached storage root. Other operations will still lock the attached storage root.
* Merge pull request #16657 from owncloud/view-emit-pathThomas Müller2015-06-221-0/+29
|\ | | | | emit hooks from a view as long as the path is inside the default root
| * emit hooks from a view as long as the path is inside the default rootRobin Appelman2015-06-021-0/+29
| |
* | Normalize path in View's lock methodsVincent Petry2015-06-161-0/+22
| |
* | Rethrow LockedException with full pathVincent Petry2015-06-161-0/+39
| | | | | | | | | | Because the path is converted to md5 from the original exception, rethrow the exception with the correct full path
* | Add return value to lock methods and check it in testsJoas Schilling2015-06-121-8/+70
|/
* fix testRobin Appelman2015-06-011-2/+2
|
* high level locking wipRobin Appelman2015-06-011-0/+27
|
* add unit tests for null handling in viewRobin Appelman2015-04-221-2/+19
|
* Properly handle copy/move failures in cross storage copy/moveRobin Appelman2015-04-131-5/+14
|
* Improve cross storage copy between local storagesRobin Appelman2015-04-131-2/+67
|
* Replace originalStorage in tests with a proper teardownVincent Petry2015-04-081-8/+4
| | | | | | | | | | The purpose of $originalStorage in unit tests was to remount the old root. However that storage itself is already wrapped by storage wrapper, so remounting it would rewrap the storage several times. This fix makes use of "loginAsUser()" and "logout()" from the TestCase class to properly initialize and cleanup the FS as expected.
* fix testRobin Appelman2015-03-161-2/+2
|
* fix factory testRobin Appelman2015-03-111-3/+2
|
* Allow setting the watcher policy as mount optionRobin Appelman2015-03-111-0/+9
|
* Copy mount options to the storageRobin Appelman2015-03-111-0/+10
|
* Fix cache update when doing a rename that overwrites the targetRobin Appelman2015-02-271-0/+13
|
* Delete target file for unsuccessful copy/renameVincent Petry2015-02-261-0/+51
|
* Prevent directory traversals in ctr of \OC\Files\ViewLukas Reschke2015-02-181-0/+17
| | | | This prevents a misusage of \OC\Files\View by calling it with user-supplied input. In such cases an exception is now thrown.
* detect root of mountpoint also if the trailing slash is missedBjoern Schiessle2015-02-041-0/+22
|
* Dont remove a file from cache if the delete operation failedRobin Appelman2015-01-291-0/+23
|
* Fix resolving paths for views rooted in a fileRobin Appelman2015-01-291-0/+16
|
* Preserve mtime when doing cross storage moveRobin Appelman2015-01-231-1/+28
|
* Return valid fileinfo objects for part filesRobin Appelman2015-01-131-0/+14
|
* skip testLongPath()Thomas Müller2014-12-101-1/+1
|
* Replace uniqid calls with $this->getUniqueID so tests pass again on windowsJoas Schilling2014-12-031-1/+1
|