aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files_trashbin/lib
Commit message (Collapse)AuthorAgeFilesLines
* Fix restoring files from trash with unique nameVincent Petry2015-05-151-6/+11
| | | | | | | | | | When restoring a file, a unique name needs to be generated if a file with the same name already exists. Also fixed the restore() method to return false if the file to restore does not exist. Added unit tests to cover restore cases.
* Added rmdir to trashbin storage wrapperVincent Petry2015-05-121-5/+30
| | | | | | | | This makes sure that folders are moved to trash when deleted with rmdir() instead of unlink(). This happens for example when deleting a folder over WebDAV. The web UI uses unlink() so it wasn't affected.
* Do not trash part files, delete directlyVincent Petry2015-04-211-1/+4
|
* fixing unit test execution related to trashbinThomas Müller2015-04-071-1/+1
|
* add priority to trashbin storage wrapper so that he is always on topBjoern Schiessle2015-04-071-1/+1
|
* Remove old encryption left overs from trashbinThomas Müller2015-04-071-102/+0
|
* kill OC_FileProxy :boom:Thomas Müller2015-04-071-27/+0
|
* setup storage wrappers before setting up the filesystemRobin Appelman2015-04-011-1/+1
|
* Move core apps from private to public functionsRoeland Jago Douma2015-04-011-1/+1
| | | | | | Apps still use OC_Helper and OC_Util functions even when public ones are already available. Sometimes the public one is even used in the same file.
* Merge pull request #13802 from owncloud/share-partfilepermissionsMorris Jobke2015-03-261-0/+16
|\ | | | | Fix share permission checks
| * Reenable trashbin after failed renameVincent Petry2015-03-181-0/+16
| | | | | | | | | | | | After a failed rename, the post_rename hook is not called. This quickfix makes sure the trashbin storage logic is reenabled also after a failed rename.
* | Update license headersJenkins for ownCloud2015-03-266-55/+110
| |
* | Recreate trashbin folder after full deletionVincent Petry2015-03-241-0/+2
|/
* Merge pull request #14644 from owncloud/trash-expire-commandThomas Müller2015-03-161-25/+26
|\ | | | | Expire files from the trash in the background
| * don't rely on \OCP\User::getUser() - it is not set properly in case of async ↵Thomas Müller2015-03-101-10/+8
| | | | | | | | operations
| * Expire files from the trash in the backgroundRobin Appelman2015-03-021-15/+18
| |
* | Only rescan versions once in trashbinVincent Petry2015-03-021-3/+13
|/ | | | | Whenever versions need to be rescanned, only do it once per PHP request. Happens whenever multiple files need to be expired.
* Revert "Updating license headers"Morris Jobke2015-02-266-107/+64
| | | | This reverts commit 6a1a4880f0d556fb090f19a5019fec31916f5c36.
* Updating license headersJenkins for ownCloud2015-02-236-64/+107
|
* Merge pull request #13797 from owncloud/fix_move_del_of_remote_sharesLukas Reschke2015-01-311-1/+0
|\ | | | | make sure that we get the correct user from the path
| * no need to initialize the same view twiceBjoern Schiessle2015-01-301-1/+0
| |
* | Dont do a cache rename if we cant delete the source fileRobin Appelman2015-01-291-1/+3
| |
* | Make sure we delete the file when doing a cross storage trashbin moveRobin Appelman2015-01-291-0/+2
| |
* | Detect failed deletes in the trashbinRobin Appelman2015-01-291-0/+5
|/
* Fix trash error when deleting files with the same name at the same time ↵Robin Appelman2015-01-281-0/+3
| | | | (happens in unit tests)
* Fix bogus deletion on copy + unlink through renameVincent Petry2015-01-262-0/+34
| | | | | Cross-storage rename would cause copy + unlink. That unlink operation must not trigger the trashbin.
* Preserve mtime when doing cross storage moveRobin Appelman2015-01-231-41/+2
|
* Only move files from the current user to the trashbinRobin Appelman2015-01-231-4/+5
|
* Call final unlink in trash wrapper's storageVincent Petry2015-01-232-2/+44
| | | | | | | | | | | | | | | In the case of cross-storage delete, the files are copied to the trash, then deleted. The final delete on the source storage would still reach the trash wrapper. This fix makes forwards that second call to the wrapped storage to make the final delete work. It fixes the issue with remote shares, local shares and external storage. Also, it uses a new function "renameRecursive" that renames the files and preserves the mtimes (like "copy_recursive" did in the past))
* replace hook with storage wrapperBjoern Schiessle2015-01-193-24/+80
|
* Merge pull request #10292 from owncloud/external-share-deleteMorris Jobke2014-12-231-1/+5
|\ | | | | Fix trashbin when deleting a file over an external share
| * Fix trashbin when deleting a file over an external shareRobin Appelman2014-08-081-1/+5
| |
* | Merge pull request #12879 from owncloud/mountconfigMorris Jobke2014-12-181-2/+4
|\ \ | | | | | | Add mount specific options
| * | Add getMountPoint to FileInfoRobin Appelman2014-12-171-2/+4
| | |
* | | first step to drop \OCP\Config:: in favour of IConfigMorris Jobke2014-12-171-1/+1
|/ /
* | Fix namespace of Files_Encryption outside of the appJoas Schilling2014-12-091-2/+2
| |
* | reduce OC_Preferences, OC_Config and \OCP\Config usageMorris Jobke2014-12-081-2/+4
| | | | | | | | | | | | | | | | | | | | * files_encryption * files_versions * files_trashbin * tests * status.php * core * server container
* | Merge pull request #12382 from owncloud/enc_reorganize_folders2Morris Jobke2014-12-031-152/+29
|\ \ | | | | | | [encryption] reorganize folder structure (second try to make Jenkins happy)
| * | new folder structure for keysBjoern Schiessle2014-11-261-152/+29
| | | | | | | | | | | | | | | | | | all keys are now in files_encryption/key/path_to_file/filename/ share keys are named: user.shareKey file key is named: fileKey
* | | Autoload exception from files_trashbinJoas Schilling2014-12-021-0/+0
|/ /
* | Replace deprecated constant with new class constantJoas Schilling2014-11-251-1/+1
| |
* | Only show undelete capability if files_trashbin is enabledLukas Reschke2014-11-181-0/+32
| | | | | | | | Fixes the OCS capability API at /ocs/v1.php/cloud/capabilities
* | Only rescan trash folder when checking deleted versionsVincent Petry2014-11-041-1/+1
| | | | | | | | | | This fix prevents the file scanner to rescan the WHOLE storage and reset the etags by mistake.
* | Add type hinting to functionsLukas Reschke2014-10-241-10/+25
| | | | | | | | It's only reasonable to have proper type hinting here which might even help us to catch bugs.
* | Fix SPACE_UNKNOWN constantRobin Appelman2014-10-161-1/+1
| |
* | make trashbin compatible with objectstore, replace glob with search in ↵Jörn Friedrich Dreyer2014-10-161-5/+13
| | | | | | | | cache, make unknown free space work like unlimited free space
* | check if I can create a file at the locationBjoern Schiessle2014-10-081-1/+1
| |
* | Merge pull request #11137 from owncloud/enc-pregfixVincent Petry2014-09-231-5/+1
|\ \ | | | | | | Fix share key pattern matching
| * | Fix share key finding algorithm in various casesVincent Petry2014-09-231-5/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Instead of inaccurate pattern matching, use the list of users who we know have access to the file to build the list of share keys. This covers the following cases: - Move/copy files into a subfolder within a share - Unsharing from a user - Deleting files directlry / moving share keys to trashbin
* | | Added extra check to avoid deleting key foldersVincent Petry2014-09-191-0/+26
|/ / | | | | | | | | | | | | | | | | | | | | | | Whenever a delete operation is called twice in a row, it could happen that the first call already deleted the file. The second call would return an empty $ownerPath because the file does not exist. That empty $ownerPath would run the key deletion operation on the wrong path. This fix adds checks in many places to make sure we don't use $ownerPath when it's empty or null.