summaryrefslogtreecommitdiffstats
path: root/lib/private/Files/View.php
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* Don't create invalid usersJoas Schilling2020-02-131-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Update license headersChristoph Wurst2019-12-051-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Properly anotate LockedException in files node apiJulius Härtl2019-11-281-9/+15
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Some php-cs fixesRoeland Jago Douma2019-11-221-1/+0
| | | | | | | | | | | * 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>
* Merge pull request #15832 from ↵Roeland Jago Douma2019-06-251-2/+2
|\ | | | | | | | | nextcloud/bugfix/noid/fulltext-search-groupfolders Fix full text search for groupfolders
| * Fix full text search for groupfoldersMorris Jobke2019-06-171-2/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | handle storage exceptions when trying to set mtimeRobin Appelman2019-06-061-1/+6
|/ | | | | | | not all storage backends can handle setting the mtime and they might not always handle that error correctly. Signed-off-by: Robin Appelman <robin@icewind.nl>
* search files by id in shared storages lastRobin Appelman2019-05-281-0/+8
| | | | | | this prevents unneeded recursion when the file is not in the share Signed-off-by: Robin Appelman <robin@icewind.nl>
* always allow moving mountpoints inside the same mountpointRobin Appelman2019-03-191-11/+6
| | | | | | even if that mountpoint isn't normally a valid target for moving mounts into Signed-off-by: Robin Appelman <robin@icewind.nl>
* Remove spaming debug logsJoas Schilling2019-03-151-1/+0
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Properly handle null as ownerId if file system access is denied by access tokenJulius Härtl2019-03-011-2/+6
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Add dispatcher events to User and Group objectsJoas Schilling2019-03-011-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* cleanup shared lock if changing to exclusive lock failedRobin Appelman2019-01-221-1/+7
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Emit write update only once on touchRoeland Jago Douma2018-12-051-1/+1
| | | | | | | | When a touch is done (i.e. when creating a new file in the node API) The hooks contain 'write' and 'touch' (and the operation is touch as well). This would cause a double write update. Which doesn't make sense. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* tokens can't be valid local user namesRobin Appelman2018-08-161-11/+9
| | | | | | this saves searching for shares on non-public link dav requests Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add resource type phpDoc for putContent methodsJulius Härtl2018-06-261-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Debug log file not found when getting fileinfoRobin Appelman2018-05-041-0/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #9387 from nextcloud/getcachentry-lockMorris Jobke2018-05-041-3/+1
|\ | | | | remove unneeded locks in getCacheEntry
| * remove unneeded locks in getCacheEntryRobin Appelman2018-05-041-3/+1
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Log mount and storage issues in getFileInfoRobin Appelman2018-05-021-0/+3
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* move log constants to ILoggerArthur Schiwon2018-04-261-4/+5
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #8054 from nextcloud/substr-use-indexMorris Jobke2018-01-261-3/+3
|\ | | | | Use index based string access for substr with length of 1
| * Use index based string access for substr with length of 1Morris Jobke2018-01-261-3/+3
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-6/+3
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-6/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* handle not found mounts when cleaning avatarsRobin Appelman2017-12-111-0/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #7014 from nextcloud/rename-locksMorris Jobke2017-11-091-83/+86
|\ | | | | Unlock files even if an exception occurs while renaming
| * Unlock files even if an exception occurskorelstar2017-11-031-83/+86
| | | | | | | | Signed-off-by: Kristof Hamann <korelstar@users.noreply.github.com>
* | Update license headersMorris Jobke2017-11-061-2/+0
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Fix seeking on object storageMorris Jobke2017-10-271-2/+22
|/ | | | | | Seeking is not needed if the $from is 0, because then the pointer is already at the correct position. Additionally another fallback is added, that if the fseek fails it just uses an fread to skip the beginning of the file until it is at the correct position. This skipping is done with a chunked fread. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Don't lock in the appdata_ directoryJoas Schilling2017-08-101-1/+1
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Still throw a locked exception when the path is not relative to $user/files/Joas Schilling2017-08-101-5/+12
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Merge pull request #5596 from nextcloud/mount-renameMorris Jobke2017-07-211-8/+12
|\ | | | | Fix renaming of non-renamble mounts
| * non movable mounts can not be movedRobin Appelman2017-07-171-8/+12
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Remove unused functionsLukas Reschke2017-07-191-9/+0
| | | | | | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | Run phan over code baseLukas Reschke2017-07-191-1/+1
|/ | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Revert "fix permissions of mountpoints - take 2"Morris Jobke2017-05-151-6/+2
|
* Merge pull request #4685 from nextcloud/fix_4683Morris Jobke2017-05-151-2/+6
|\ | | | | fix permissions of mountpoints - take 2
| * Revert "Revert "fix permissions of mountpoints""Roeland Jago Douma2017-05-041-2/+6
| | | | | | | | | | | | This reverts commit 70a0e9c2d39532f9de6c6e108ef7eaaebb856ed6. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Proper exception for upload of .htaccess file via WebDAVMorris Jobke2017-05-081-1/+5
|/ | | | | | * fixes #2860 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Revert "fix permissions of mountpoints"Morris Jobke2017-05-041-6/+2
|
* fix permissions of mountpointsRobin Appelman2017-05-011-2/+6
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Moved unit tests from ObjectTree::move to DirectoryVincent Petry2017-04-261-1/+1
|
* Remove unused use statementsMorris Jobke2017-04-221-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* round the mtime in touchRobin Appelman2017-03-271-1/+1
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Move error message to log entryLukas Reschke2017-03-201-1/+12
| | | | Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* Fix malformed logging in exceptionkdslkdsaldsal2017-03-191-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Redirect unlink to rmdir (#27101)Vincent Petry2017-03-161-1/+5
| | | | | | | Many API callers will call unlink even for directories and it can mess up with some wrappers like the encryption wrapper Signed-off-by: Morris Jobke <hey@morrisjobke.de>