summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* add locking to resolve concurent move to trashbin conflictsRobin Appelman2020-05-081-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>
* 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>
* | Only fetch size of this storage without mount points - ref #14412Morris Jobke2019-03-011-1/+1
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | Revert "Fix for issue 10862: calculation of free space ignores external ↵Morris Jobke2019-03-011-4/+5
|/ | | | | | | | storage (doesn't count towards quota)" This reverts commit e806aa658c16fadad465504fab4aeef314832bdb. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #14412 from nextcloud/fileinfo-raw-sizeMorris Jobke2019-02-281-3/+3
|\ | | | | add option to get raw size (without submounts) from fileinfo
| * add option to get raw size (without submounts) from fileinfoRobin Appelman2019-02-271-3/+3
| | | | | | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* | Merge pull request #13844 from ↵Morris Jobke2019-02-271-5/+4
|\ \ | |/ |/| | | | | felixn/bugfix/10862-trash-bin-ignores-trashbin_retention_obligation Bugfix for issue 10862: Trash-bin ignores trashbin_retention_obligation
| * Fix for issue 10862: calculation of free space ignores external storage ↵Felix Nieuwenhuizen2019-01-261-5/+4
| | | | | | | | | | | | (doesn't count towards quota) Signed-off-by: Felix Nieuwenhuizen <felix@tdlrali.com>
* | add fallback for trashbin original locationRobin Appelman2019-01-291-1/+5
|/ | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* Add getExtension() to FileInfoRobin Appelman2018-10-291-0/+4
| | | | | | | this is a fairly common operation so it makes sense to prevent having to repeatedly implement it. Signed-off-by: Robin Appelman <robin@icewind.nl>
* store user for trashitem in the trashitemRobin Appelman2018-10-1710-68/+50
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* remove user parameter from `ITrashItem::getOriginalLocation`Robin Appelman2018-10-173-9/+8
| | | | | | | since the target user is known at the time of creating the trashitem the original location can already be adjusted on a per user level Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix error message for folder preview requestRobin Appelman2018-10-171-4/+4
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix trashbin previews for modular apiRobin Appelman2018-10-174-40/+78
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* fix select statementRobin Appelman2018-10-1720-434/+913
| | | | | | | | | | | | | | | fix select statement Make trashbin api modules Apps can register trashbin backends for specific storages, allowing them to modify trashbin behavior for storages The old trashbin implementation has been wrapped in a "legacy" backend, for future work this can be replaced with a new backend that better handles shares while still keeping the legacy backend around to keep existing trash from being accessible Signed-off-by: Robin Appelman <robin@icewind.nl>
* expose additional props from trashbin sabre endpointRobin Appelman2018-09-207-130/+114
| | | | Signed-off-by: Robin Appelman <robin@icewind.nl>
* trashbin:cleanup exceptions for invalid optionsLiam Dennehy2018-06-281-4/+6
| | | | | | | * throw on no parameters provided * throw on --all-users and userid provided Signed-off-by: Liam Dennehy <liam@wiemax.net>
* Default behaviour when no users are specified on trashbin:cleanupLiam Dennehy2018-06-281-3/+13
| | | | | | | | * Add option --all-users to explicitly clean all trashbins * Reject no users on commandline and no --all-users * Warn when --all-users and userids are specified Signed-off-by: Liam Dennehy <liam@wiemax.net>
* Merge pull request #9626 from lars-sh/patch-1Morris Jobke2018-06-251-2/+6
|\ | | | | Workaround for interrupting expired files deletion
| * Improved logging statementLars Knickrehm2018-06-241-4/+1
| |
| * Workaround for interrupting expired files deletionLars Knickrehm2018-05-281-2/+9
| | | | | | Workaround avoiding "Error while running background job (class: OCA\Files_Trashbin\BackgroundJob\ExpireTrash, arguments: ): {"Exception":"OCP\\Files\\NotPermittedException","Message":"","Code":0,"Trace":"#0 \/var\/www\/cloud\/apps\/files_trashbin\/lib\/Trashbin.php(590): OC\\Files\\Node\\File->delete() [...]"
* | Previews on for all trashbin filesRoeland Jago Douma2018-06-052-31/+41
| | | | | | | | | | | | | | | | | | | | * Previews possible for all files in the trashbin * Set caching * Use the fileid to find the file * Fix test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | allow admins to override FreeBusy capabilities without modifying ShareAPI ↵Georg Ehrke2018-05-221-1/+2
|/ | | | | | capabilities Signed-off-by: Georg Ehrke <developer@georgehrke.com>
* Support fileid propfind on trash endpointRoeland Jago Douma2018-05-117-2/+26
| | | | | | | | | Fixes #9416 In order to support previews on mobile clients they will need the fileid of files in the trashbin. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Trashbin propfind respond to oc:sizeRoeland Jago Douma2018-05-104-0/+14
| | | | | | | In order to display the total size of folders also in the clients (and web) we should return the oc:size. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>