Joas Schilling
bd0b9a0fe0
Add unit tests for non existing users
11 years ago
Joas Schilling
4e24486a89
Check whether the user exists before trying to set up his file system
11 years ago
Jenkins for ownCloud
66a24ff479
[tx-robot] updated from transifex
11 years ago
Vincent Petry
61356b5560
Keep versions when deleting as recipient
The original owner could not be resolved because the original file was
already deleted, so no versions were retained.
This fix passes the owner and path to retainVersions() since it was
already resolved before the file deletion. This reactivates the versions
logic and creates a copy of the versions in each trashbin.
11 years ago
Jenkins for ownCloud
baca5c60c0
[tx-robot] updated from transifex
11 years ago
Robin Appelman
733784ae41
cleanup move/copy logic in trash
11 years ago
Scrutinizer Auto-Fixer
fdbc21fc6c
Scrutinizer Auto-Fixes
This commit consists of patches automatically generated for this project on https://scrutinizer-ci.com
11 years ago
Robin Appelman
8f1a609512
adjust test
11 years ago
Robin Appelman
89959a856c
fix target path for move
11 years ago
Robin Appelman
a0854b36f0
update cache after move to trash
11 years ago
Robin Appelman
b70e1ffc6d
dont go trough the view when moving to trash
11 years ago
Clark Tomlinson
7d2666699b
removing encryption preview check
11 years ago
Clark Tomlinson
d557519746
removing deletion of encryption keys
this will be handled in the wrapper now
11 years ago
Clark Tomlinson
a0c6c01137
fix references to legacy encryption app name
11 years ago
Robin Appelman
724f88d9ff
fix tests
11 years ago
Vincent Petry
f86699cd48
Fix restoring files from trash with unique name
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.
11 years ago
Vincent Petry
beb6a38d85
Added rmdir to trashbin storage wrapper
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.
11 years ago
Jenkins for ownCloud
3dee907b70
[tx-robot] updated from transifex
11 years ago
Jenkins for ownCloud
b60dcd91bb
[tx-robot] updated from transifex
11 years ago
Robin Appelman
be55a90323
dont use our now non existing hook
11 years ago
Vincent Petry
18506387c0
Tear down FS after running trash expire
11 years ago
Vincent Petry
ffc796edcb
Do not trash part files, delete directly
11 years ago
Jenkins for ownCloud
fd3c1484ad
[tx-robot] updated from transifex
11 years ago
Joas Schilling
3f3f8c2f99
Fix usage of deprecated private constants
11 years ago
Jenkins for ownCloud
37a871127b
[tx-robot] updated from transifex
11 years ago
Jenkins for ownCloud
7f3f191ee9
[tx-robot] updated from transifex
11 years ago
Robin Appelman
d26c6cab90
properly return false if we cant delete the source file
11 years ago
Vincent Petry
f8cfc03f36
Replace originalStorage in tests with a proper teardown
The purpose of $originalStorage in unit tests was to remount the old
root.
However that storage itself is already wrapped by storage wrapper, so
remounting it would rewrap the storage several times.
This fix makes use of "loginAsUser()" and "logout()" from the TestCase
class to properly initialize and cleanup the FS as expected.
11 years ago
Thomas Müller
54a3bdf1c5
fixing unit test execution related to trashbin
11 years ago
Bjoern Schiessle
d3e887a7cf
reset init status before login
11 years ago
Bjoern Schiessle
5ea94b7c45
add priority to trashbin storage wrapper so that he is always on top
11 years ago
Thomas Müller
3458b5ab4c
Remove old encryption left overs from trashbin
11 years ago
Thomas Müller
1b42b492dc
kill OC_FileProxy 💥
11 years ago
Thomas Müller
00338f9dca
Removing files_encryption left overs
11 years ago
Robin Appelman
3cb53b7756
setup storage wrappers before setting up the filesystem
11 years ago
Roeland Jago Douma
2b81d0f237
Move core apps from private to public functions
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.
11 years ago
Jenkins for ownCloud
b585d87d9d
Update license headers
11 years ago
Vincent Petry
f8f543945f
Recreate trashbin folder after full deletion
11 years ago
Vincent Petry
a9e6eba018
Reenable trashbin after failed rename
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.
11 years ago
Jenkins for ownCloud
8a95bf18b7
[tx-robot] updated from transifex
11 years ago
Jenkins for ownCloud
c1a3394f48
[tx-robot] updated from transifex
11 years ago
Thomas Müller
4ffca58bc4
don't rely on \OCP\User::getUser() - it is not set properly in case of async operations
11 years ago
Thomas Müller
7cb6811a7b
tearDown the filesystem right before setting it up again
11 years ago
Jenkins for ownCloud
174f8cef64
[tx-robot] updated from transifex
11 years ago
Vincent Petry
3f6e7d6a43
Add unit test for selection overlay actions in trashbin
11 years ago
Robin Appelman
c80522ed63
Expire files from the trash in the background
11 years ago
Vincent Petry
7432c73f5c
Only rescan versions once in trashbin
Whenever versions need to be rescanned, only do it once per PHP request.
Happens whenever multiple files need to be expired.
11 years ago
Jenkins for ownCloud
ff85d38c2a
[tx-robot] updated from transifex
11 years ago
Morris Jobke
06aef4e8b1
Revert "Updating license headers"
This reverts commit 6a1a4880f0 .
11 years ago
Jenkins for ownCloud
8a4fddeb4a
[tx-robot] updated from transifex
11 years ago