[Owncloud] Old File Remains and Upgrade

Arthur Schiwon blizzz at owncloud.com
Fri May 11 15:10:47 UTC 2012


Hey,

for a test case I installed old ownCloud 3.0.3 and copied later our 
lovely OC 4 over it. That's the upgrade path.

Few hours later I wondered about an error:
Error: scanFiles is not defined Source File: 
http://192.168.56.222/owncloud/apps/files_sharing/js/share.js Line: 220

The cause was that instead of
/apps/files/js/files.js
the old
/files/js/files.js
has been loaded.

Of course this and other files remained (actually whole /files) there 
after copying.

What can we do?

a) When running the update routine the affected app should remove old 
files.
Problems can arise, when the web user has not enough privileges to 
remove them. In that case, detailed info should be shown.

b) Instruct users to delete everything but the config and data folder 
for upgrade reasons and only then copy all the new files.
That's not so-so funny for packaging, I believe. And complicated-ugly.

I pledge for a ;)

=> in any case we need upgrade instructions on owncloud.org :)

Afaik it only affects /files so far, however this scenario can come up 
again.

What do you think?

Cheers
Arthur




More information about the Owncloud mailing list