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
Only disable third party apps for major upgrades #14754
I'd say the probability of having apps break during a major upgrade (ex: 8.0->8.1) is much higher due to API changes / library upgrades, etc.
I guess most apps should survive minor upgrades, maybe it's still worth taking the risk not disabling them for minor upgrades.
Admins that use the "stable" or "8.0" repo/channel would expect to be able to update automatically without any further interaction.
Admins that use the "testing" or "stable" (the one without fixed version) repo/channel should expect major updates to appear and might require extra interaction.
So instead of a config switch it is mostly about which channel was used.
The problem might come from various workarounds put in place after a dot zero release. Devs will want their apps to work and maybe they'll introduce changes without making them available only for that specific version (their mistake), which means that after an oC upgrade which fixes a problem, the app might stop working and break oC altogether.
Just a theory... :)
Why not doing like piwigo (anothe php webbased service) and its plugins ?
All plugins have in metadatas the core version compatibility. When the core is upgraded, there is a warning with a list of plugins still not marked as compliant by the maintainer. If the OC admin still do the upgrade, only the not compliant plugins are disabled...
There, for maintainers that have tested during betas, the plugin is already OK when the core release appends and no one is annoyed by the unuseful deactivation. And for the other, the admin is warned, and can wait if it think the plugin is important, and can later check via the upgrade if those plugin have evolved.
@awikatchikaen We do the same. App developer can add the information which core versions are compatible. Unfortunately a lot of (most) app developer don´t maintain this information properly in the apps.
Another solution would be to not include appinfo/routes.php and appinfo/app.php on any upgrades so no thirdparty app code is executed on upgrade. If an app misbehaves this will leave you with a blank screen but after the upgrade, but the upgrade should have been successful. Also if a user reenables an app he will also be greeted with a blank screen.
This is just an idea, but couldnt we reengineer the behavior of GNOME or other systems when you change your display resolution? They give you a time window of 15 seconds. If you dont hit ok, they will revert to the previous settings. In terms of ownCloud what about we do the following on upgrade:
disable all apps
upgrade
enable one app and create a request to the files, apps and admin page or a page that is usually blank after an error. If these requests dont return successfully we can disable one app with the notice that the app is not working
@karlitschek : Then, if a screen is displayed just before upgrade with list of non-compatible apps, some users will delay upgrade and pressurise addons developers to update theirs apps and maintain this information before next big upgrade....
I'm coming into this a bit late in the game, but one comment I would have is that the auto-disabler that's currently on 8.0.2 doesn't seem to log the apps that were disabled anywhere... that seems like a pretty large oversight to me if you're auto-disabling part of someone's configuration.
I'm coming into this a bit late in the game, but one comment I would have is that the auto-disabler that's currently on 8.0.2 doesn't seem to log the apps that were disabled anywhere... that seems like a pretty large oversight to me if you're auto-disabling part of someone's configuration.
disabled apps are printed on the terminal in case the console is used - for the web based upgrade the apps are displayed on the screen. Missing piece: #14569
@DeepDiver1975 Yes, and I saw the apps that were being disabled for a brief moment before the page redirected away. So, #14569 is certainly a step in the right direction. When I got hit by this, I immediately went to the OC log to see what it had disabled, thinking that surely it logged its actions like any well-behaved app..........
My 2 cents... if OC is to be a cloud for the masses solution, it should warn before doing something like this (despite putting it in the rarely-read docs), and it should be able to tell you what it did after the fact, so you can correct/reconfigure anything that changed. That's just good UX.
@mrlego that was my point when I first complained about it. Rather than taking the easy way out and saying "well, other developers can't be assed to maintain theit projects correctly, so we're going to disable all 3rd party apps and break your OwnCloud install for certain, on the off chance that you have an incompatible app that might break it", the correct response (IMO) would be to warn (and give users the option to disable) when an app has a missing (or unrealistic) max version specified, or lacks compatibility data altogether; and warn of this issue on the download page, as well. Things should only be automatically disabled if the compatibility data says they're incompatible; and when something is automatically disabled, it should be logged and the page displaying the notification should not automatically forward. Let the app developers figure out why people stop using their apps; the problem will solve itself if you simply implement (and enforce) a few simple policies to combat it, rather than embracing it and making the upgrade process a huge PITA and causing people to simply stick with old (and vulnerable) versions of OwnCloud.
For all intents and purposes, an OwnCloud installation that loses functionality after an upgrade is just as broken as one that doesn't come back up at all. Someone who is in a hurry might upgrade, see that the page loads afterward, and assume that everything is fine, while it's obvious there's a problem if the page doesn't load after the upgrade; and yes, even the best of us are in a hurry sometimes, so having it simply not load if something is incompatible is preferable in most cases I can think up.
Of course, the issue of administrator competence will be raised in argument to my position. Please, save it. Yes, a competent administrator would hold the upgrade until they had time to fully test it, negating that specific argument; but then, the same competent administrator would know how to move 3rd party apps out of the apps directory and move them back in one at a time until it breaks (thereby identifying the offending app). We who have some semblance of competence do not want ou installs breaking after every upgrade; only after those during which an actual problem occurs (though, preferably, not at all).
Furthermore, I'll reiterate something I said in my original complaint: apps that were limited to certain users or groups before being disabled are no longer limited after being re-enabled. This has to be done manually; and if an app exposes, say, a company's internal data that they, perhaps, don't want clients seeing (we're talking potentially sensitive data here), that's a security vulnerability right there. All in the name of taking a shortcut during the upgrade process and holding the hands of the incompetent as you walk them off a cliff.
@karlitschek that's the app developer's problem, then. Do a bit of validation in the apps market, read the app's manifest and if it's invalid or missing some compatibility info, note that on the app's page, or, you know, reject the submission until they manage to submit it correctly. Do some basic quality control on the apps that are offered through the OwnCloud market and provide prominent warnings about lack of support for apps from other sources. By providing a simple way for your users to do their own due diligence to determine whether or not an app will work for them, you shift responsibility of ensuring that their OwnCloud installation doesn't break onto the user, where it belongs; more importantly, by clearly identifying and marking (or, better, rejecting) apps that do not follow compatibility guidelines, you shift much of that responsibility to the app developers who want people using their apps and supporting their work via donations.
@Raydiation's per-app test idea, coupled with not automatically advancing past the upgrade report, would work as a secondary mechanism to ensure that only the apps that actually fail are disabled, and the admin is properly notified of the action.
Crap like this is why I'm spending a few hours this month migrating to a
combination of OneDrive and Exchange. As much as I love the idealism of
having all of my data under my control, that's not the actuality of the
situation with OwnCloud, where I can either choose to remain vulnerable by
not installing updates, or choose to lose access to features and data,
potentially permanently if some app I'm using can't be re-enabled after the
update.
That's not my data under my control, that's my data under the control of a
team of people who don't have my needs at heart.
Microsoft, for all their flaws, at least provides a consistent experience;
and they don't make it too difficult to back up, either.
At least for my small team, the monthly cost per user is much less than the
monthly billable cost lost to maintaining OwnCloud.
Just some food for thought.
@kdslkdsaldsal I'm quite aware of that command-line flag, but I am also quite aware that the recommended way of installing and maintaining OwnCloud is via a repository, wherein that command-line flag is useless. Thanks, though 😄
I was in this conversation long before that command-line flag was added to OwnCloud; my last comment here was #14754 (comment) wherein I detail much of what was discussed before that comment. Much like the comment you just replied to, it was also not my first comment here. I tried to be productive, I tried to share ideas, I tried to work with the OwnCloud team toward a solution, and I may even had been willing to spend my own time implementing that solution once the concept had been accepted (more on that later, as it touches on something else you've said here). Where is your useful and productive input, @kdslkdsaldsal?
You're absolutely right, I'm not forced to use OwnCloud, which is why I won't be after this month. However, if something is not working as expected and a project is seeking input, it is my place as a user to make my voice heard. For the duration of time during which I choose to use OwnCloud, yes, my data is very much under the control of the OwnCloud dev team and the people who decide which PRs to accept or reject (more on that last bit later, as it pertains to something else you've said here). Until I migrate to another solution, my choices are to remain vulnerable by not upgrading or risk losing functionality (and possibly data which relies on that functionality in order to be properly utilized) during an upgrade. In fact, I will be losing data in the migration, as some of that data is associated with features added by 3rd-party apps which don't really have a parallel elsewhere. So that data remains under OwnCloud's control, as I can't really take it elsewhere; as a result, I lose that data when I go.
Such is life.
Yes, OwnCloud is Open Source and, in theory, the beauty of that is that I am free to contribute, fix, and implement. The reality, as someone who was once a strong proponent of the Free Software Movement, actually lies somewhere in between that idealism and proprietary software.
If I fix this, I already know my fix won't be accepted, as it has already been decided in this thread that the issue wasn't worth fixing. It was stated that things work the way they do because "reasons" and it was not going to change; any PR I might submit to change that would surely be rejected. So yes, while I could still fix it for myself in that case, I will have, then, added an integration task to every update; I would, then, need to integrate my fix into every update that comes after it, and fully test before deploying. At that point, I'm no longer using OwnCloud, but my own personal fork of the project, and the problem I've stated here is that I'm already spending more time than I can afford maintaining my OwnCloud installation. How does your suggestion that I fix it myself help with that?
So, no, I really don't have any more opportunity, in any reasonably non-pedantic sense of the word, to fix issues in an Open Source project than I do in a Closed Source project; both require that the maintainer agree that the issue is an issue, be willing to see the issue fixed, and be willing to let me do the fixing. Yes, I can fork the Open Source project, which is something I can't do with Closed Source; but, again, how does that fix my problem? It doesn't; it adds to it, because then I don't just have apps to re-enable after an upgrade, I have upstream patches to integrate and test against my modifications, which would be more work and take up more of my time.
There is a reason I chose a pre-existing team-backed project, rather than rolling my own; quite simply, I don't have time for that.
Microsoft might not give me the ability to fix issues and add missing features myself, but they do give me a phone number I can call to have that done on a priority basis if I'm paying for it. I've spend 20+ hours on the phone with them over the past 30 days hashing out implementation details for features and fixes in several Office products, including OneDrive and SharePoint, and those are being implemented.
Yes, I know, you're gonna say "but then you're paying for it". Yes. I am. Much less than the billable hours I would have to lose to have done it myself, as a matter of fact! You see, I've done the math, and it would cost me much more (in lost billable hours) to maintain my own fork of OwnCloud to incorporate the fix they've already said they don't want than Microsoft's solution will ever cost me.
You seem hurt that I'm not contributing my time and code to fix this, but I never heard back from the OwnCloud team on my proposed solution and, thus, never got approval to joint the team and implement that fix. Doing so without first knowing that (pending quality of code, of course) my work would even be accepted simply makes yet more work for me and costs me yet more than I'm already taking issue with.
You do see this, right?
Perhaps, if some consensus could have been reached regarding how to handle this, it could have been fixed. If the OwnCloud team, themselves, weren't interested in being the ones fixing it, they could have encouraged one of us who raised the issue (it wasn't me, by the way; it seems like you're brand new to this thread, so I just thought I'd point that out) to fix it by accepting one of our proposed solutions as "the way forward".
I would have started working on it right then and there. In fact, it would have been a race between at least 3 of us, to see who could build it better, faster.
also in general times change, so past decisions must be questioned because many factors that might have existed before might not exist any more in the present
While I am still migrating my data away from OwnCloud, I will still
consider assessing my available time to contribute this feature/fix.
I make no promises, as my workload has changed (increased) considerably
since the time when I would have jumped on this without a second thought
(thus why I am now choosing to pay someone else to manage the details), but
I'll do what I can.
Since my issue is primarily a time issue, I hope it is understood that I
lacked the time to bring that decision from two years ago into question, as
I also now lack the time to immediately begin familiarizing myself with the
OwnCloud codebase well enough to quickly and correctly implement this
feature/fix. For that reason, I was leaving the discussion up to everyone
else.
I now find myself in a position where certain pieces of Microsoft software
are the de-facto standard by which I must communicate with a subset of my
clients, and a massive chunk (per user) of OneDrive storage is included in
the licensing of that software, so the reality is that it solves my time
issue at no additional cost (beyond what I'm paying for support in order to
have certain features implemented).
At the end of the day, ideology is important, but practicality wins out.
While I'd love to see my needs met by Open Source software (and in many
areas of my business and personal life, indeed, I do see this), I am
considering *needs*, rather than *wants*, and I must make the decisions
that see those needs best fulfilled.
I'll keep revisiting this until either I find the time to implement the
feature/fix, or someone else beats me to it.
Activity
PVince81 commentedon Mar 9, 2015
I'd say the probability of having apps break during a major upgrade (ex: 8.0->8.1) is much higher due to API changes / library upgrades, etc.
I guess most apps should survive minor upgrades, maybe it's still worth taking the risk not disabling them for minor upgrades.
Admins that use the "stable" or "8.0" repo/channel would expect to be able to update automatically without any further interaction.
Admins that use the "testing" or "stable" (the one without fixed version) repo/channel should expect major updates to appear and might require extra interaction.
So instead of a config switch it is mostly about which channel was used.
What do you think ?
oparoz commentedon Mar 11, 2015
The problem might come from various workarounds put in place after a dot zero release. Devs will want their apps to work and maybe they'll introduce changes without making them available only for that specific version (their mistake), which means that after an oC upgrade which fixes a problem, the app might stop working and break oC altogether.
Just a theory... :)
awikatchikaen commentedon Mar 17, 2015
Why not doing like piwigo (anothe php webbased service) and its plugins ?
All plugins have in metadatas the core version compatibility. When the core is upgraded, there is a warning with a list of plugins still not marked as compliant by the maintainer. If the OC admin still do the upgrade, only the not compliant plugins are disabled...
There, for maintainers that have tested during betas, the plugin is already OK when the core release appends and no one is annoyed by the unuseful deactivation. And for the other, the admin is warned, and can wait if it think the plugin is important, and can later check via the upgrade if those plugin have evolved.
karlitschek commentedon Mar 17, 2015
@awikatchikaen We do the same. App developer can add the information which core versions are compatible. Unfortunately a lot of (most) app developer don´t maintain this information properly in the apps.
BernhardPosselt commentedon Mar 20, 2015
Another solution would be to not include appinfo/routes.php and appinfo/app.php on any upgrades so no thirdparty app code is executed on upgrade. If an app misbehaves this will leave you with a blank screen but after the upgrade, but the upgrade should have been successful. Also if a user reenables an app he will also be greeted with a blank screen.
This is just an idea, but couldnt we reengineer the behavior of GNOME or other systems when you change your display resolution? They give you a time window of 15 seconds. If you dont hit ok, they will revert to the previous settings. In terms of ownCloud what about we do the following on upgrade:
awikatchikaen commentedon Mar 20, 2015
@karlitschek : Then, if a screen is displayed just before upgrade with list of non-compatible apps, some users will delay upgrade and pressurise addons developers to update theirs apps and maintain this information before next big upgrade....
BernhardPosselt commentedon Mar 20, 2015
@awikatchikaen almost no apps add a maximum version so this wont help
mgriego commentedon Mar 31, 2015
I'm coming into this a bit late in the game, but one comment I would have is that the auto-disabler that's currently on 8.0.2 doesn't seem to log the apps that were disabled anywhere... that seems like a pretty large oversight to me if you're auto-disabling part of someone's configuration.
DeepDiver1975 commentedon Apr 1, 2015
disabled apps are printed on the terminal in case the console is used - for the web based upgrade the apps are displayed on the screen. Missing piece: #14569
mgriego commentedon Apr 1, 2015
@DeepDiver1975 Yes, and I saw the apps that were being disabled for a brief moment before the page redirected away. So, #14569 is certainly a step in the right direction. When I got hit by this, I immediately went to the OC log to see what it had disabled, thinking that surely it logged its actions like any well-behaved app..........
mgriego commentedon Apr 1, 2015
My 2 cents... if OC is to be a cloud for the masses solution, it should warn before doing something like this (despite putting it in the rarely-read docs), and it should be able to tell you what it did after the fact, so you can correct/reconfigure anything that changed. That's just good UX.
KeithBronstrup commentedon Apr 1, 2015
@mrlego that was my point when I first complained about it. Rather than taking the easy way out and saying "well, other developers can't be assed to maintain theit projects correctly, so we're going to disable all 3rd party apps and break your OwnCloud install for certain, on the off chance that you have an incompatible app that might break it", the correct response (IMO) would be to warn (and give users the option to disable) when an app has a missing (or unrealistic) max version specified, or lacks compatibility data altogether; and warn of this issue on the download page, as well. Things should only be automatically disabled if the compatibility data says they're incompatible; and when something is automatically disabled, it should be logged and the page displaying the notification should not automatically forward. Let the app developers figure out why people stop using their apps; the problem will solve itself if you simply implement (and enforce) a few simple policies to combat it, rather than embracing it and making the upgrade process a huge PITA and causing people to simply stick with old (and vulnerable) versions of OwnCloud.
For all intents and purposes, an OwnCloud installation that loses functionality after an upgrade is just as broken as one that doesn't come back up at all. Someone who is in a hurry might upgrade, see that the page loads afterward, and assume that everything is fine, while it's obvious there's a problem if the page doesn't load after the upgrade; and yes, even the best of us are in a hurry sometimes, so having it simply not load if something is incompatible is preferable in most cases I can think up.
Of course, the issue of administrator competence will be raised in argument to my position. Please, save it. Yes, a competent administrator would hold the upgrade until they had time to fully test it, negating that specific argument; but then, the same competent administrator would know how to move 3rd party apps out of the apps directory and move them back in one at a time until it breaks (thereby identifying the offending app). We who have some semblance of competence do not want ou installs breaking after every upgrade; only after those during which an actual problem occurs (though, preferably, not at all).
Furthermore, I'll reiterate something I said in my original complaint: apps that were limited to certain users or groups before being disabled are no longer limited after being re-enabled. This has to be done manually; and if an app exposes, say, a company's internal data that they, perhaps, don't want clients seeing (we're talking potentially sensitive data here), that's a security vulnerability right there. All in the name of taking a shortcut during the upgrade process and holding the hands of the incompetent as you walk them off a cliff.
KeithBronstrup commentedon Apr 1, 2015
@karlitschek that's the app developer's problem, then. Do a bit of validation in the apps market, read the app's manifest and if it's invalid or missing some compatibility info, note that on the app's page, or, you know, reject the submission until they manage to submit it correctly. Do some basic quality control on the apps that are offered through the OwnCloud market and provide prominent warnings about lack of support for apps from other sources. By providing a simple way for your users to do their own due diligence to determine whether or not an app will work for them, you shift responsibility of ensuring that their OwnCloud installation doesn't break onto the user, where it belongs; more importantly, by clearly identifying and marking (or, better, rejecting) apps that do not follow compatibility guidelines, you shift much of that responsibility to the app developers who want people using their apps and supporting their work via donations.
@Raydiation's per-app test idea, coupled with not automatically advancing past the upgrade report, would work as a secondary mechanism to ensure that only the apps that actually fail are disabled, and the admin is properly notified of the action.
34 remaining items
PVince81 commentedon Apr 6, 2017
whatever, backlog now...
I hope the market will have a stronger validation for app versions, etc, so maybe at some point we could even keep all apps enabled on update.
KeithBronstrup commentedon Apr 6, 2017
KeithBronstrup commentedon Apr 8, 2017
@kdslkdsaldsal I'm quite aware of that command-line flag, but I am also quite aware that the recommended way of installing and maintaining OwnCloud is via a repository, wherein that command-line flag is useless. Thanks, though 😄
I was in this conversation long before that command-line flag was added to OwnCloud; my last comment here was #14754 (comment) wherein I detail much of what was discussed before that comment. Much like the comment you just replied to, it was also not my first comment here. I tried to be productive, I tried to share ideas, I tried to work with the OwnCloud team toward a solution, and I may even had been willing to spend my own time implementing that solution once the concept had been accepted (more on that later, as it touches on something else you've said here). Where is your useful and productive input, @kdslkdsaldsal?
You're absolutely right, I'm not forced to use OwnCloud, which is why I won't be after this month. However, if something is not working as expected and a project is seeking input, it is my place as a user to make my voice heard. For the duration of time during which I choose to use OwnCloud, yes, my data is very much under the control of the OwnCloud dev team and the people who decide which PRs to accept or reject (more on that last bit later, as it pertains to something else you've said here). Until I migrate to another solution, my choices are to remain vulnerable by not upgrading or risk losing functionality (and possibly data which relies on that functionality in order to be properly utilized) during an upgrade. In fact, I will be losing data in the migration, as some of that data is associated with features added by 3rd-party apps which don't really have a parallel elsewhere. So that data remains under OwnCloud's control, as I can't really take it elsewhere; as a result, I lose that data when I go.
Such is life.
Yes, OwnCloud is Open Source and, in theory, the beauty of that is that I am free to contribute, fix, and implement. The reality, as someone who was once a strong proponent of the Free Software Movement, actually lies somewhere in between that idealism and proprietary software.
If I fix this, I already know my fix won't be accepted, as it has already been decided in this thread that the issue wasn't worth fixing. It was stated that things work the way they do because "reasons" and it was not going to change; any PR I might submit to change that would surely be rejected. So yes, while I could still fix it for myself in that case, I will have, then, added an integration task to every update; I would, then, need to integrate my fix into every update that comes after it, and fully test before deploying. At that point, I'm no longer using OwnCloud, but my own personal fork of the project, and the problem I've stated here is that I'm already spending more time than I can afford maintaining my OwnCloud installation. How does your suggestion that I fix it myself help with that?
So, no, I really don't have any more opportunity, in any reasonably non-pedantic sense of the word, to fix issues in an Open Source project than I do in a Closed Source project; both require that the maintainer agree that the issue is an issue, be willing to see the issue fixed, and be willing to let me do the fixing. Yes, I can fork the Open Source project, which is something I can't do with Closed Source; but, again, how does that fix my problem? It doesn't; it adds to it, because then I don't just have apps to re-enable after an upgrade, I have upstream patches to integrate and test against my modifications, which would be more work and take up more of my time.
There is a reason I chose a pre-existing team-backed project, rather than rolling my own; quite simply, I don't have time for that.
Microsoft might not give me the ability to fix issues and add missing features myself, but they do give me a phone number I can call to have that done on a priority basis if I'm paying for it. I've spend 20+ hours on the phone with them over the past 30 days hashing out implementation details for features and fixes in several Office products, including OneDrive and SharePoint, and those are being implemented.
Yes, I know, you're gonna say "but then you're paying for it". Yes. I am. Much less than the billable hours I would have to lose to have done it myself, as a matter of fact! You see, I've done the math, and it would cost me much more (in lost billable hours) to maintain my own fork of OwnCloud to incorporate the fix they've already said they don't want than Microsoft's solution will ever cost me.
You seem hurt that I'm not contributing my time and code to fix this, but I never heard back from the OwnCloud team on my proposed solution and, thus, never got approval to joint the team and implement that fix. Doing so without first knowing that (pending quality of code, of course) my work would even be accepted simply makes yet more work for me and costs me yet more than I'm already taking issue with.
You do see this, right?
Perhaps, if some consensus could have been reached regarding how to handle this, it could have been fixed. If the OwnCloud team, themselves, weren't interested in being the ones fixing it, they could have encouraged one of us who raised the issue (it wasn't me, by the way; it seems like you're brand new to this thread, so I just thought I'd point that out) to fix it by accepting one of our proposed solutions as "the way forward".
I would have started working on it right then and there. In fact, it would have been a race between at least 3 of us, to see who could build it better, faster.
PVince81 commentedon Apr 10, 2017
If someone has time to implement a check to only disable for major releases but not minor releases, I'd be willing to accept it.
@DeepDiver1975 will the market have stronger validation to make sure apps have proper deps info and min/max versions ?
Side note: since the fork some things that weren't possible before have become possible, so a decision made two years ago can be reconsidered.
PVince81 commentedon Apr 10, 2017
also in general times change, so past decisions must be questioned because many factors that might have existed before might not exist any more in the present
KeithBronstrup commentedon Apr 10, 2017
PVince81 commentedon Apr 24, 2017
10.0 will not disable third party apps any more.
KeithBronstrup commentedon Apr 24, 2017
lock commentedon Aug 2, 2019
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.