summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #21954 from nextcloud/techdebt/noid/bootstrap-files_trashbinblizzz2020-08-072-50/+38
|\ | | | | Use IBootstrap for the files_trashbin app
| * Use IBootstrap for the files_trashbin appMorris Jobke2020-07-232-50/+38
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix object store trashbin handlingRobin Appelman2020-07-301-3/+10
| | | | | | | | | | | | object stores are "special" given how they interact with the cache on their own Signed-off-by: Robin Appelman <robin@icewind.nl>
* | rollback cache rename if trashbin move failsRobin Appelman2020-07-231-0/+5
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | fix moving files from external storage to object store trashbinRobin Appelman2020-07-231-2/+2
|/ | | | | | | | | | | | having the "cache rename" after the "storage move" caused the target to get the fileid from the source file, without taking care that the object is stored under the original file id. By doing the "cache rename" first, we trigger the "update existing file" logic while moving the file to the object store and the object gets stored for the correct file id Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #21658 from nextcloud/trashbin-configurable-sizeMorris Jobke2020-07-212-0/+156
|\ | | | | allow admin to configure the max trashbin size
| * allow admin to configure the max trashbin sizeRobin Appelman2020-07-072-0/+156
| | | | | | | | | | | | | | | | this allows an admin to configure the max trashbin size instead of always relying on the users quota. The trashbin size can be configured using the `occ trash:size` command and can be set both globally and per-user Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Clean up container usage in files trashbinChristoph Wurst2020-07-161-2/+1
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Move files_trashbin to migrationsJoas Schilling2020-07-061-0/+87
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Also always return in app commandsJoas Schilling2020-06-262-4/+8
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* add locking to resolve concurent move to trashbin conflictsRobin Appelman2020-05-061-13/+39
| | | | | | | uses a lock to prevent two requests from moving a file to the trashbin concurrently (causing sql duplicate key errors) Signed-off-by: Robin Appelman <robin@icewind.nl>
* Update license headers for 19Christoph Wurst2020-04-297-0/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format code according to PSR2Christoph Wurst2020-04-101-1/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all constantsChristoph Wurst2020-04-103-7/+7
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Add visibility to all methods and position of static keywordChristoph Wurst2020-04-103-3/+3
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Format control structures, classes, methods and functionChristoph Wurst2020-04-1013-25/+8
| | | | | | | | | | | | | | | To continue this formatting madness, here's a tiny patch that adds unified formatting for control structures like if and loops as well as classes, their methods and anonymous functions. This basically forces the constructs to start on the same line. This is not exactly what PSR2 wants, but I think we can have a few exceptions with "our" style. The starting of braces on the same line is pracrically standard for our code. This also removes and empty lines from method/function bodies at the beginning and end. Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use elseif instead of else ifChristoph Wurst2020-04-102-5/+5
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Unify function spacing to PSR2 recommendationChristoph Wurst2020-04-095-10/+10
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use exactly one empty line after the namespace declarationChristoph Wurst2020-04-093-3/+0
| | | | | | For PSR2 Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Update the license headers for Nextcloud 19Christoph Wurst2020-03-311-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Merge pull request #20170 from nextcloud/techdebt/remove-unused-importsChristoph Wurst2020-03-276-8/+0
|\ | | | | Remove unused imports
| * Remove unused importsChristoph Wurst2020-03-256-8/+0
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | Use the short array syntax, everywhereChristoph Wurst2020-03-262-26/+26
|/ | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Fix license headersChristoph Wurst2020-01-131-0/+1
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Trash bin: fix exception triggered if no correct fileId is provided.simonspa2020-01-071-2/+2
| | | | | | This fixes #17115 Signed-off-by: Simon Spannagel <simon.spannagel@cern.ch>
* Update license headersChristoph Wurst2019-12-0534-36/+113
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* respect shareapi_allow_share_dialog_user_enumeration in Principal backend ↵Georg Ehrke2019-12-031-1/+2
| | | | | | for Sabre/DAV Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Some php-cs fixesRoeland Jago Douma2019-11-2212-13/+16
| | | | | | | | | | | * 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>
* dont expose metadata etag for nowRobin Appelman2019-11-131-4/+0
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose filecache extension data in FileInfoRobin Appelman2019-11-131-0/+12
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #17509 from nextcloud/fix/application-singletonJohn Molakvoæ2019-11-044-12/+14
|\ | | | | Fix Application instances created multiple times
| * set retention obligation on existing `expiration` in testsRobin Appelman2019-11-043-10/+8
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
| * Do not create Application instances directlyChristoph Wurst2019-10-112-4/+8
| | | | | | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* | use OCP\EventDispatcher\Event over Symfony's deprecated EventArthur Schiwon2019-10-171-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* allow trash backends to overwrite the tooltip for trash itemsRobin Appelman2019-10-055-0/+17
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #16664 from nextcloud/bugfix/emit-moveToTrash-limitblizzz2019-09-061-7/+12
|\ | | | | Emit moveToTrash event only for the deleting user
| * Use the owner from the storageRoeland Jago Douma2019-08-071-3/+9
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Emit moveToTrash event only for the deleting userJulius Härtl2019-08-061-8/+7
| | | | | | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* | Merge pull request #16534 from nextcloud/trash-copy-free-spaceRoeland Jago Douma2019-09-041-1/+6
|\ \ | | | | | | dont try to copy trash items to user if the user has not enough free space
| * | Update apps/files_trashbin/lib/Trashbin.phpRobin Appelman2019-09-041-1/+3
| | | | | | | | | Co-Authored-By: Morris Jobke <hey@morrisjobke.de>
| * | dont try to copy trash items to user if the user has not enough free spaceRobin Appelman2019-07-291-1/+4
| |/ | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #16666 from nextcloud/feature/calendar/delegationRoeland Jago Douma2019-08-151-2/+3
|\ \ | | | | | | Feature/calendar/delegation
| * | Use the proxymapper to obtain valid proxy dataRoeland Jago Douma2019-08-151-2/+3
| |/ | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* / files_trashbin: File can be without extensionJakub Onderka2019-08-071-1/+1
|/ | | | Signed-off-by: Jakub Onderka <jakub.onderka@gmail.com>
* Add event dispatcher to OCPChristoph Wurst2019-06-251-4/+4
| | | | Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
* Use higher preview resolution in trashbinRoeland Jago Douma2019-03-161-2/+2
| | | | | | For #14639 Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* dont try to restore a trashbin item to a readonly targetRobin Appelman2019-03-141-0/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* prevent recursion when moving a file to the trashbinRobin Appelman2019-03-131-1/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Merge pull request #6512 from coletivoEITA/add_circles_sharing_to_caldavMorris Jobke2019-03-131-1/+2
|\ | | | | Change CALDAV to allow calendars be shared with circles.
| * Use proper dependency injection for app managerMorris Jobke2019-03-051-1/+2
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>