See also my comment about the situation at the bottom of the issue
Steps to reproduce
- Use default setting which has trash and versioning enabled. Add, modify and delete some files client side for a while to startup trash and versioning. Now, server side, in the "data/username/" directory the client files can be seen in there respective directories files/, files_trashbin/ and files_versions/.
- Login to the web interface as admin and disable either or both the trash and the versioning.
- modify and delete some files client side.
- Old files from before disabling are still present in files_trashbin/ and or files_versions/
Expected behavior
There should have been a automatic cleanup initiated by the action to disable the app (with or without warning for dummies).
Actual behavior
Files are left in place.
Only after I added trashbin_retention_obligation => 0 to config.php and re-enabled trashbin were the files in files_tashbin/ deleted. I haven't figured out yet how to delete safely the versions
Server configuration
Operating system:
debian
Web server:
Apache 2.2.22-13+deb7u4
Database:
mysql 5.5.41-0+wheezy1
PHP version:
5.4.38-0+deb7u1
ownCloud version: (see ownCloud admin page)
8.0.2-5
Updated from an older ownCloud or fresh install:
updated from 8.0.0
List of activated apps:
All apps which are enabled by default. Those concerning this issue are:
Deleted Files 0.6.2
Versions 1.0.5
The content of config/config.php:
'datadirectory' => '/var/www/owncloud/data',
'overwrite.cli.url' => 'http://euscloud.eus.klm.nl/owncloud',
'dbtype' => 'mysql',
'version' => '8.0.2.0',
'dbname' => 'owncloud',
'dbhost' => 'localhost',
'dbtableprefix' => 'oc_',
'dbuser' => 'oc_root',
'dbpassword' => '',
'installed' => true,
'forcessl' => true,
'loglevel' => 2,
'theme' => '',
'maintenance' => false,
'trashbin_retention_obligation' => 0,
note: trashbin_retention_obligation was added to finally delete the trashbin. But this only works with "Deleted Files" enabled. There may be something similar for app Versions, but I haven't discovered it.
Are you using external storage, if yes which one: local/smb/sftp/...
none
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
not yet
LDAP configuration (delete this part if not used)
not used
Client configuration
Browser:
firefox
Operating system:
Windows 7
Logs
None of the systems show any errors, so no logs are included.
Situation around this issue
I use owncloud as a (near) instantaneous synchronization of my development environment between two workstation (and have a quick backup too). This means that files changes a lot. Versions are not needed because I also use subversion and neither is the trash needed as it would contain masses of compiler generated temporary files/. And actually this was the case and is the reason I disabled both.
I haven't actually checked, but I suspect ownCloud's app API does not provide something like a pre-disable call which could be used to resolve this. If what I suspect is correct then this issue report should be seen as a enhancement.
I realize this issue could be by design, this is for you to judge.
See also my comment about the situation at the bottom of the issue
Steps to reproduce
Expected behavior
There should have been a automatic cleanup initiated by the action to disable the app (with or without warning for dummies).
Actual behavior
Files are left in place.
Only after I added trashbin_retention_obligation => 0 to config.php and re-enabled trashbin were the files in files_tashbin/ deleted. I haven't figured out yet how to delete safely the versions
Server configuration
Operating system:
debian
Web server:
Apache 2.2.22-13+deb7u4
Database:
mysql 5.5.41-0+wheezy1
PHP version:
5.4.38-0+deb7u1
ownCloud version: (see ownCloud admin page)
8.0.2-5
Updated from an older ownCloud or fresh install:
updated from 8.0.0
List of activated apps:
All apps which are enabled by default. Those concerning this issue are:
Deleted Files 0.6.2
Versions 1.0.5
The content of config/config.php:
note: trashbin_retention_obligation was added to finally delete the trashbin. But this only works with "Deleted Files" enabled. There may be something similar for app Versions, but I haven't discovered it.
Are you using external storage, if yes which one: local/smb/sftp/...
none
Are you using encryption: yes/no
no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
not yet
LDAP configuration (delete this part if not used)
not used
Client configuration
Browser:
firefox
Operating system:
Windows 7
Logs
None of the systems show any errors, so no logs are included.
Situation around this issue
I use owncloud as a (near) instantaneous synchronization of my development environment between two workstation (and have a quick backup too). This means that files changes a lot. Versions are not needed because I also use subversion and neither is the trash needed as it would contain masses of compiler generated temporary files/. And actually this was the case and is the reason I disabled both.
I haven't actually checked, but I suspect ownCloud's app API does not provide something like a pre-disable call which could be used to resolve this. If what I suspect is correct then this issue report should be seen as a enhancement.
I realize this issue could be by design, this is for you to judge.