Repository navigation
Create a backup of the original app folder so we can still install the app - #14716
nickvergessen wants to merge 1 commit into
Conversation
|
What triggers the message? We'll need that for testing. |
|
@jnfrmarks create a read-only folder |
There was a problem hiding this comment.
I guess this doesn't need a clearstatcache() ?
|
The code looks good. |
|
Refer to this link for build results (access rights to CI server needed): |
|
I'm currently trying with a real calendar app instance, but it doesn't try to upgrade. |
|
When going from 7 (where we ship calendar) to 8, the app is disabled as part of the upgrade process. Is that what a customer would do? I want to make sure I have a good handle on the use case we're resolving so that I have the right test cases lined up. |
|
It is still not clear how a RPM/DEB package upgrade would have left the calendar app hanging instead of removing it during upgrade. But this case could possibly be reproduced by using tarballs instead and have the "apps" folder read-only. |
|
Nope. The update process DOES NOT disable the calendar/contact app because they are "shipped". This is the problem from #14677 when you keep your apps folder as is. I tried this from git:
|
|
Now I wonder if this is about upgrading from 8.0.0 to 8.0.1 instead, like this guy: #14708 (not 7.0.4 to 8.0.1). Because at this stage, all RPMs are already separated into separate packages, which means that the contacts/calendar apps are NOT shipped in this, so would be auto-disabled on upgrade. I'll try this with git. |
|
Okay, based on my insights from #14711 (comment) the way to go is testing 8.0.0 -> 8.0.1 upgrade |
Testing with read-write apps folder
Please note that I didn't set anything to read-only. The message "app folder already exists" appeared even with those permissions ! |
|
Before we merge this we need to look into the why the button says "Enable" instead of "Update", could it be an OCSID issue ? Because it is more likely to be the core issues than a read-only folder. @karlitschek @georgehrke can you double check ? |
|
If the button said "Update" it is likely that there is logic to replace the old folder with a new one. (read-only case might need to be put there too, but still...) |
|
Just debugged: the OCS version is the same, so it's not technically an update. The "Enable" logic should probably check if the version on disk is already the wanted one, and instead of redownloading, just enable what is there. |
|
Can confirm @PVince81's assumption. Also matches the screenshot from the blog post. |
The issue here is that a new app was published for the calendar app in ownCloud 8. This new app is called Calendar for ownCloud 8 or something like that. The ocsid we added to the calendar app before the release points to a different app (an empty calendar app). So ownCloud doesn't know that there is an relation between the already installed calendar and the Calendar for ownCloud 8.0. That's why it says enable instead of update Edit: (I don't know why a new app was created and why we didn't use the placeholder (the empty app) on the app store.) |
|
OK so we might still need this PR here too for this special situation ? Another issue: the backup folder in "apps" will still be detected as an app. So calendar would be detected twice. Might need to move it somewhere else. |
|
I think this is no longer needed due to @LukasReschke work? (If that is the case, I'd say we can ignore the displaying of the message and make the patch simple) |
Fix #14711
Quick and dirty fix @DeepDiver1975 @karlitschek @PVince81 @georgehrke

If we don't need the information in the UI:
Only the edit on
lib/private/installer.phpis required.