aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
...
* 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>
* Merge pull request #9427 from ↵Roeland Jago Douma2018-05-101-1/+4
|\ | | | | | | | | nextcloud/bugfix/noid/no_listing_if_not_in_debug_trash_version If not in debug disable principal listing
| * If not in debug disable principal listingRoeland Jago Douma2018-05-081-1/+4
| | | | | | | | | | | | | | Trashbin and Version should have the same behaviour as the other collections. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | Propfind for deletion time of trash filesRoeland Jago Douma2018-05-086-3/+19
|/ | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Merge pull request #9202 from nextcloud/feature/1332/trashbin_davRoeland Jago Douma2018-05-0111-0/+892
|\ | | | | Trashbin endpoint in DAV
| * Add folder for trashbinRoeland Jago Douma2018-04-2510-74/+156
| | | | | | | | | | | | | | | | The trashbin home now contains 2 entries restore and trash. Made all files strict. Added more types. Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Use getType to determine type of entryRoeland Jago Douma2018-04-253-6/+6
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add propfind properties to trashbinRoeland Jago Douma2018-04-256-10/+126
| | | | | | | | | | | | | | * get original filename (without the weird timestamp) * get original location Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Add special restore folderRoeland Jago Douma2018-04-257-4/+141
| | | | | | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * Emptry trashbinRoeland Jago Douma2018-04-251-1/+1
| | | | | | | | | | | | | | A delete on a users trashbin will empty it (the trashbin won't be deleted of course) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
| * List trashbin in DAVRoeland Jago Douma2018-04-257-0/+557
| | | | | | | | | | | | | | | | | | | | | | First steps for #1332 * Add a new DAV collection * List all files in the trashbin for this user * Deleting files from trashbin * Get files from trashbin (just read) Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* | move log constants to ILoggerArthur Schiwon2018-04-261-1/+1
|/ | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Less deprecated calls to OCP\Util::writeLogMorris Jobke2018-04-221-5/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove deprecated URL functions for OCP\UtilRoeland Jago Douma2018-03-131-1/+1
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Remove deprecated isEnabled call from files_trashbinJulius Härtl2018-01-311-1/+1
| | | | Signed-off-by: Julius Härtl <jus@bitgrid.net>
* Use ::class statement instead of stringMorris Jobke2018-01-291-2/+4
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded semicolon and parenthesesMorris Jobke2018-01-261-2/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Cleanup unused codeMorris Jobke2018-01-261-2/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Use type casting instead of *val() methodMorris Jobke2018-01-261-4/+4
| | | | | | It should be up to 6x faster Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Return value immediately instead of assigning to a one-time variableMorris Jobke2018-01-261-2/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Properly log the full exception instead of only the messageMorris Jobke2018-01-231-2/+5
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* check userExists later, saves lookups for appData_INSTANCEID useridsArthur Schiwon2017-12-011-1/+1
| | | | Signed-off-by: Arthur Schiwon <blizzz@arthur-schiwon.de>
* Change @georgehrke's emailMorris Jobke2017-11-061-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update license headersMorris Jobke2017-11-067-2/+16
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unneeded check if app is enabledMorris Jobke2017-10-231-4/+2
| | | | | | App code will not be executable if the app is not enabled, because the autoloader refuses to load that class. Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* allow apps to control the trash binBjoern Schiessle2017-09-152-2/+117
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* Fix comparisions in the trashbin appJoas Schilling2017-08-012-2/+2
| | | | Signed-off-by: Joas Schilling <coding@schilljs.com>
* Delete trash using node API to trigger preview deletionRoeland Jago Douma2017-07-241-6/+23
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Improve logging of trash bin inconsistenciesMorris Jobke2017-06-231-1/+1
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Handle more error casesMorris Jobke2017-05-021-0/+2
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Remove unused use statementsMorris Jobke2017-04-221-1/+0
| | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Update comments to NextcloudMorris Jobke2017-04-111-1/+1
| | | | | | | * based on PR by @Ardinis * see #4311 Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* Merge pull request #3998 from nextcloud/backport-27032Roeland Jago Douma2017-03-231-1/+5
|\ | | | | Use the expected method depending on the target being a file or folder
| * Use the expected method depending on the target being a file or folderJuan Pablo Villafáñez2017-03-221-1/+5
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | fix path for files from root folderMorris Jobke2017-03-221-1/+5
| | | | | | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* | In the real world id is an initial filenameVictor Dubiniuk2017-03-201-3/+4
|/ | | | Signed-off-by: Morris Jobke <hey@morrisjobke.de>
* delete files right away in case of a encryption exceptionBjoern Schiessle2017-03-141-7/+25
| | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>