Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Move tests/ to PSR-4 (#24731) | Joas Schilling | 2016-05-20 | 1 | -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 method | Joas Schilling | 2016-05-19 | 1 | -2/+2 |
| | |||||
* | When the scanner detects a file is changed clear checksum | Roeland Jago Douma | 2016-04-19 | 1 | -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 tmpFolder | Morris Jobke | 2015-12-18 | 1 | -1/+1 |
| | |||||
* | Fix mimetype filter in getDirectoryContent | Robin Appelman | 2015-12-03 | 1 | -0/+35 |
| | |||||
* | Apply DB group annotation ... | Thomas Müller | 2015-11-30 | 1 | -0/+7 |
| | |||||
* | Add tests for FileInfo owner | Robin Appelman | 2015-11-10 | 1 | -10/+44 |
| | |||||
* | Fix locking unit tests due to filemtime addition | Vincent Petry | 2015-10-26 | 1 | -2/+10 |
| | |||||
* | Throw exception on `getPath` if file does not exist | Lukas Reschke | 2015-10-25 | 1 | -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 moveablemount | Roeland Jago Douma | 2015-10-16 | 1 | -0/+49 |
| | |||||
* | Prevent moving mount point into already shared folder (outgoing) | Vincent Petry | 2015-10-02 | 1 | -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.php | Phil Davis | 2015-09-24 | 1 | -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-fixgetrelativepathwrongmatches | Thomas Müller | 2015-09-24 | 1 | -28/+103 |
|\ | | | | | Prevent wrong matches in getRelativePath | ||||
| * | Add more tests for relativePath | Joas Schilling | 2015-09-22 | 1 | -23/+91 |
| | | |||||
| * | Prevent wrong matches in getRelativePath | Vincent Petry | 2015-09-22 | 1 | -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_operation | Thomas Müller | 2015-09-23 | 1 | -0/+43 |
|\ \ | | | | | | | locking: handle exceptions correctly during copy operation | ||||
| * | | catch excexptions during the copy operation and make sure that we free the ↵ | Bjoern Schiessle | 2015-09-22 | 1 | -0/+43 |
| |/ | | | | | | | lock correctly | ||||
* / | Move dummy backend to Tests namespace | Lukas Reschke | 2015-09-22 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #17932 from owncloud/fix_move_files | Thomas Müller | 2015-08-11 | 1 | -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 Schiessle | 2015-07-29 | 1 | -1/+3 |
| | | | | | | | | the root folder with the nodes API | ||||
* | | Fix removal of share permissions when share disabled for user | Vincent Petry | 2015-08-07 | 1 | -3/+60 |
|/ | |||||
* | Unlock first path on rename if second path is locked | Vincent Petry | 2015-06-29 | 1 | -0/+33 |
| | |||||
* | Remove test-specific method to make Bjoern and Joas happy | Vincent Petry | 2015-06-26 | 1 | -1/+1 |
| | |||||
* | Keep shared locks in post hooks | Vincent Petry | 2015-06-25 | 1 | -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 case | Vincent Petry | 2015-06-24 | 1 | -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-path | Thomas Müller | 2015-06-22 | 1 | -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 root | Robin Appelman | 2015-06-02 | 1 | -0/+29 |
| | | |||||
* | | Normalize path in View's lock methods | Vincent Petry | 2015-06-16 | 1 | -0/+22 |
| | | |||||
* | | Rethrow LockedException with full path | Vincent Petry | 2015-06-16 | 1 | -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 tests | Joas Schilling | 2015-06-12 | 1 | -8/+70 |
|/ | |||||
* | fix test | Robin Appelman | 2015-06-01 | 1 | -2/+2 |
| | |||||
* | high level locking wip | Robin Appelman | 2015-06-01 | 1 | -0/+27 |
| | |||||
* | add unit tests for null handling in view | Robin Appelman | 2015-04-22 | 1 | -2/+19 |
| | |||||
* | Properly handle copy/move failures in cross storage copy/move | Robin Appelman | 2015-04-13 | 1 | -5/+14 |
| | |||||
* | Improve cross storage copy between local storages | Robin Appelman | 2015-04-13 | 1 | -2/+67 |
| | |||||
* | Replace originalStorage in tests with a proper teardown | Vincent Petry | 2015-04-08 | 1 | -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 test | Robin Appelman | 2015-03-16 | 1 | -2/+2 |
| | |||||
* | fix factory test | Robin Appelman | 2015-03-11 | 1 | -3/+2 |
| | |||||
* | Allow setting the watcher policy as mount option | Robin Appelman | 2015-03-11 | 1 | -0/+9 |
| | |||||
* | Copy mount options to the storage | Robin Appelman | 2015-03-11 | 1 | -0/+10 |
| | |||||
* | Fix cache update when doing a rename that overwrites the target | Robin Appelman | 2015-02-27 | 1 | -0/+13 |
| | |||||
* | Delete target file for unsuccessful copy/rename | Vincent Petry | 2015-02-26 | 1 | -0/+51 |
| | |||||
* | Prevent directory traversals in ctr of \OC\Files\View | Lukas Reschke | 2015-02-18 | 1 | -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 missed | Bjoern Schiessle | 2015-02-04 | 1 | -0/+22 |
| | |||||
* | Dont remove a file from cache if the delete operation failed | Robin Appelman | 2015-01-29 | 1 | -0/+23 |
| | |||||
* | Fix resolving paths for views rooted in a file | Robin Appelman | 2015-01-29 | 1 | -0/+16 |
| | |||||
* | Preserve mtime when doing cross storage move | Robin Appelman | 2015-01-23 | 1 | -1/+28 |
| | |||||
* | Return valid fileinfo objects for part files | Robin Appelman | 2015-01-13 | 1 | -0/+14 |
| | |||||
* | skip testLongPath() | Thomas Müller | 2014-12-10 | 1 | -1/+1 |
| | |||||
* | Replace uniqid calls with $this->getUniqueID so tests pass again on windows | Joas Schilling | 2014-12-03 | 1 | -1/+1 |
| |