You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
install an app if directory is still there. #14711
If we detect during installation of an app that there is already a directory with the same name than we have to create an "legacy" directory (if it is not already there) and move the old directory into it.
What should the "legacy" folder look like ? Is it just a backup folder ?
Should all apps be moved there ? What if someone installs the "encryption" app from the app store (if that is every possible at some point), should it also replace and rename the shipped encryption app ?
If we detect during installation of an app that there is already a directory with the same name than we have to create an "legacy" directory (if it is not already there) and move the old directory into it.
In some installations (installed via packages) the preinstalled apps are in a read-only directory and we can't move them. What should we do in this case?
i would call it legacy or backup or apps_backup. should be outside the apps directory of course. the current idea is to do this only for collisions aka if the directory is there when a new app should be installed.
does this make sens?
I believe that the ones from the packages would automatically delete those apps too (like it did for me for the RPM upgrade). This is mostly about people upgrading with tarballs and who "forget" to manually delete the apps. Not 100% sure though.
Also, such people using tarballs might have locked the apps directory too.
@PVince81 good idea that the linux packages should delete this old apps too. I had the same idea. But this doesn´t work because of 1. possible not enough permissions and 2. we might remove too many apps. So I suggest to do it on demand when we have a collision but not earlier
If you upgrade from 7.0.4 to 8.0.1 with RPM: the RPM should kill the old apps/calendar and apps/contacts folders.
If you upgrade from 8.0.0 to 8.0.1 with RPM: the OLD apps/calendar and apps/contacts will STILL be there because the RPM doesn't care (they were not bundled). So you'll have the old version and need to reenable + update.
So, here is a summary: the core issue is that when upgrading from 8.0.0 to 8.0.1 with calendar/contact apps enabled, something goes wrong with the ocsid and the apps cannot be enabled from the recommended page, which says "app cannot be installed, folder already exists". This is because the apps were not recognized.
@DeepDiver1975's fix on master does not seem to work for all cases as far I can tell. Apps like "Imprint" are still shown wrongly in the "Tool" section and throw those errors (to verify that behaviour you need to change the ownCloud version back to 8 in version.php)
Activity
PVince81 commentedon Mar 5, 2015
I guess @georgehrke isn't around ?
PVince81 commentedon Mar 5, 2015
@nickvergessen said he'll have a look. I'll support him where needed. (none of us know anything about that part)
georgehrke commentedon Mar 5, 2015
I'm around, will check.
PVince81 commentedon Mar 5, 2015
Great, thanks.
What should the "legacy" folder look like ? Is it just a backup folder ?
Should all apps be moved there ? What if someone installs the "encryption" app from the app store (if that is every possible at some point), should it also replace and rename the shipped encryption app ?
georgehrke commentedon Mar 5, 2015
In some installations (installed via packages) the preinstalled apps are in a read-only directory and we can't move them. What should we do in this case?
karlitschek commentedon Mar 5, 2015
i would call it legacy or backup or apps_backup. should be outside the apps directory of course. the current idea is to do this only for collisions aka if the directory is there when a new app should be installed.
does this make sens?
PVince81 commentedon Mar 5, 2015
I believe that the ones from the packages would automatically delete those apps too (like it did for me for the RPM upgrade). This is mostly about people upgrading with tarballs and who "forget" to manually delete the apps. Not 100% sure though.
Also, such people using tarballs might have locked the apps directory too.
georgehrke commentedon Mar 5, 2015
yes, I see what you mean.
PVince81 commentedon Mar 5, 2015
@karlitschek you mentionned "package" in the first post, did you mean "OBS package" or tarball ?
jnfrmarks commentedon Mar 5, 2015
@PVince81
Does the server delivery method matter in this case? If I install via tarball, copy over my 7.x app, can't I run into the same situation?
karlitschek commentedon Mar 5, 2015
@PVince81 good idea that the linux packages should delete this old apps too. I had the same idea. But this doesn´t work because of 1. possible not enough permissions and 2. we might remove too many apps. So I suggest to do it on demand when we have a collision but not earlier
13 remaining items
PVince81 commentedon Mar 5, 2015
Okay, so if there are no packages:
If you upgrade from 7.0.4 to 8.0.1 with RPM: the RPM should kill the old apps/calendar and apps/contacts folders.
If you upgrade from 8.0.0 to 8.0.1 with RPM: the OLD apps/calendar and apps/contacts will STILL be there because the RPM doesn't care (they were not bundled). So you'll have the old version and need to reenable + update.
Good... so that's our scenario.
Fix totally broken AppStore
LukasReschke commentedon Mar 5, 2015
Another patch for that: #14719 – all fame to @PVince81 and @nickvergessen…
And we really have to stop this crap where we add yet more static code to already existing code… – The time we wasted on such an issue!!!!!!
PVince81 commentedon Mar 5, 2015
Just now I remember that @DeepDiver1975 put a fix on master with a similar title: 39d8406#diff-34e065ae305e501c5b8d33de1300f2a1R150
But in that PR it seems to just not display the broken app entries at all ?
PVince81 commentedon Mar 5, 2015
Looks like this exact same issue was already known here: #13945 (which is the one of @DeepDiver1975's PR)
PVince81 commentedon Mar 5, 2015
So, here is a summary: the core issue is that when upgrading from 8.0.0 to 8.0.1 with calendar/contact apps enabled, something goes wrong with the ocsid and the apps cannot be enabled from the recommended page, which says "app cannot be installed, folder already exists". This is because the apps were not recognized.
Three different fixes have been proposed:
I vote for @LukasReschke's fix #14719 as it seems to address the core issue properly instead of just working it around.
@DeepDiver1975 @nickvergessen @georgehrke @karlitschek what do you think ?
LukasReschke commentedon Mar 5, 2015
@DeepDiver1975's fix on master does not seem to work for all cases as far I can tell. Apps like "Imprint" are still shown wrongly in the "Tool" section and throw those errors (to verify that behaviour you need to change the ownCloud version back to 8 in version.php)
LukasReschke commentedon Mar 5, 2015
If my patch gets merged in 8 I'll create a PR for master as well.
karlitschek commentedon Mar 5, 2015
agreed. Thanks a lot guys.
PVince81 commentedon Mar 5, 2015
@LukasReschke provided a follow up patch, I hope you didn't miss it: #14721
Fix totally broken AppStore code...
LukasReschke commentedon Mar 5, 2015
Master port is at #14722