summaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* Merge pull request #2819 from nextcloud/trash-ext-link-uselinkownerRoeland Jago Douma2016-12-231-0/+10
|\ | | | | Fallback to share link owner when no owner found
| * Fallback to share link owner when no owner foundVincent Petry2016-12-221-0/+10
| | | | | | | | | | | | | | | | | | | | | | | | When creating link shares from external storage, the filesystem cannot find an owner in some scenarios (ex: system-wide mounts). In such cases, fall back to using the current user's trashbin which happens to also be the user who created the link share. Fixes an issue where this scenario made deletion impossible due to missing user information. Signed-off-by: Lukas Reschke <lukas@statuscode.ch>
* | make code more robustBjoern Schiessle2016-12-211-10/+25
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | check for class name in case class is not loadedBjoern Schiessle2016-12-211-2/+1
| | | | | | | | Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* | add a copy to the owners trash bin if another user moves a file out of a ↵Bjoern Schiessle2016-12-212-10/+67
|/ | | | | | shared folder Signed-off-by: Bjoern Schiessle <bjoern@schiessle.org>
* More testsRoeland Jago Douma2016-11-031-5/+0
| | | | | | | | | * PreviewController test * PublicPreview test * Versions Preview test * Trash Preview test Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* Move over files_trashbinRoeland Jago Douma2016-11-031-0/+124
| | | | Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
* introduce callForSeenUsers and countSeenUsers (#26361)Jörn Friedrich Dreyer2016-10-282-4/+4
| | | | | | | | | | * introduce callForSeenUsers and countSeenUsers * add tests * oracle should support not null on clob * since 9.2.0
* Also fire a bulk pre- and post-delete hookSteven Bühner2016-09-201-3/+14
|
* Always use the same relative Path (Starting from users home dir. i.e.: ↵Steven Bühner2016-09-201-4/+7
| | | | "/files_trashbin/...")
* Take the same path (with /USERNAME/ as base) for every emmited hooksSteven Bühner2016-09-201-2/+2
|
* Emit hooks for each file before and after all files in trashbin have been ↵Steven Bühner2016-09-201-23/+23
| | | | deleted.
* Fiy typoSteven Bühner2016-09-201-1/+1
|
* Emit Hooks for each file bevore and after all files in trashbin have been ↵Steven Bühner2016-09-201-3/+32
| | | | deleted.
* detect the correct mimetype of the files in the trashbin, therefore we have ↵Bjoern Schiessle2016-09-091-2/+3
| | | | to check the filename without the appended timestamp
* Add occ command to expire the trashbin (#25878)Thomas Müller2016-08-291-0/+127
| | | | | | * Add occ command to expire the trashbin * Fix versions folder in setup check
* Skip version and trash expiry for users that never logged inJörn Friedrich Dreyer2016-08-101-1/+1
|
* Update with robinJoas Schilling2016-07-214-4/+4
|
* Fix apps/Joas Schilling2016-07-2111-18/+29
|
* Update license headersLukas Reschke2016-05-269-12/+12
|
* Add wrapper for NFD encoding workaroundVincent Petry2016-05-201-1/+1
|
* Move files_trashbin to PSR-4 (#24570)Joas Schilling2016-05-1211-0/+226
|
* use the cache for trash listingRobin Appelman2016-05-031-46/+38
|
* Chunk the users correctly in the trashbin and versions background jobJoas Schilling2016-04-201-39/+12
|
* apps/files_trashbin: Fix typos in comments (found and fixed by codespell)Stefan Weil2016-03-301-1/+1
| | | | | | Fix also a wrong word. Signed-off-by: Stefan Weil <sw@weilnetz.de>
* Properly check path validity before deleting to trashVincent Petry2016-03-041-1/+1
| | | | | This prevents deleting the whole "files" folder of the user whenever $ownerPath is empty. This can happen in concurrency situations.
* Remove Scrutinizer Auto FixerLukas Reschke2016-03-011-1/+0
|
* Update author informationLukas Reschke2016-03-012-1/+1
| | | | Probably nice for the people that contributed to 9.0 to see themselves in the AUTHORS file :)
* Skip users with no trashbinVictor Dubiniuk2016-02-241-0/+6
|
* get the actual user instead of a federated cloud idBjoern Schiessle2016-02-181-40/+62
| | | | | | $view->getUidAndFilename($filename); returns the federated cloud id in case of a federated share. But in this case we need the local user who "owns" the file which is the current logged in user in case of a federated share
* Merge pull request #22451 from owncloud/use-proper-user-folderThomas Müller2016-02-171-6/+10
|\ | | | | Handles null as return code and uses proper UserFolder in trashbin
| * Handles null as return code and uses proper UserFolder in trashbinMorris Jobke2016-02-161-6/+10
| |
* | Don't resize trash when no userVincent Petry2016-02-161-2/+5
|/ | | | Happens when overwriting files on federated shares.
* Consolidate getQuota and setQuota methods in User instanceArthur Schiwon2016-02-091-4/+1
|
* Merge pull request #21117 from owncloud/owner-file-existsThomas Müller2016-01-151-13/+6
|\ | | | | Only return an owner if the file exists + improved getUidAndFilename
| * handle not found in trash hookRobin Appelman2016-01-111-1/+5
| |
| * de-deplicate getUidAndFilenameRobin Appelman2016-01-111-12/+1
| |
* | Merge pull request #21544 from owncloud/trashbin-permissionsThomas Müller2016-01-151-0/+3
|\ \ | | | | | | set etag and permission fields for trashbin entries
| * | set etag and permission fields for trashbin entriesRobin Appelman2016-01-081-0/+3
| |/
* / Happy new year!Thomas Müller2016-01-128-12/+13
|/
* Use proper public API for OC_Helper::getFileNameMimeTypeMorris Jobke2015-12-171-1/+1
|
* Fix thrashbin wrapper when no user is loggedinRobin Appelman2015-12-111-2/+3
|
* Scrutinizer Auto-FixesScrutinizer Auto-Fixer2015-12-071-6/+7
| | | | This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
* Cleanup trashbin expire codeMorris Jobke2015-11-301-15/+6
| | | | * requested by @schiesbn
* Deduplicate queued trashbin expire jobsMorris Jobke2015-11-271-16/+9
| | | | | | | | * fixes #20425 * this removes the argument trashbin size from the expire job - it is now calculated in the expire job * the queue now detects properly that the job is already queue and doesn't add it again
* Make Cache\Updater per storageRobin Appelman2015-11-251-3/+3
|
* Update license headersLukas Reschke2015-10-263-3/+3
|
* Throw exception on `getPath` if file does not existLukas Reschke2015-10-251-2/+12
| | | | | | | | | | 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.
* Fix trashbin handling of unknown/unlimited free spaceRobin Appelman2015-10-161-2/+3
|
* update licence headers via scriptMorris Jobke2015-10-055-1/+4
|