-
Notifications
You must be signed in to change notification settings - Fork 2.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Migration disable all apps #1805
Comments
yep, it's probably worth to wipe cached app data after entering the maintenance mode |
Might be a problem in the info.xmls of the apps |
@karlitschek i don't see anything special... |
Yep. The beta 1 is 4.92. I think we have to fix all the version numbers in all apps |
ill take care of this next week unless someone spots the problem and quickfixes it earlier :) |
The require thing isn't a "minimum" required version? isn't the problem about https://github.com/owncloud/core/blob/master/lib/app.php#L854 here ? ( check also https://github.com/owncloud/core/blob/master/lib/app.php#L226 ) and i don't really understand the sign ... shouldn't we check float instead of strings (and in the other way arround) i mean : ( (float) ($version[0].'.'.$version[1]) > (float) $info['require'] )
// instead of
(($version[0].'.'.$version[1])>$info['require']) ? (and shouldn't we put the same check for install AND upgrade?) |
i think PHP automatically converts string to floats in this comparison, not sure though |
@eMerzh it's even more simple http://php.net/manual/en/function.version-compare.php |
ok then what about if(!isset($info['require']) or ( version_compare(implode('.',$version), $info['require'], '<' ) {
//THEN ERRRRRR |
@Raydiation no, they are compared as strings character by character without any casting. In general that's enough if both have the same length for every digit field and only digits inside: |
@eMerzh I've tried to replace the conditions at https://github.com/owncloud/core/blob/master/lib/app.php#L854 |
Could someone check if this is ok with #1888 |
Yep, thanks for the fix, it work fine for me |
I was using OC5 alpha1 (from yesterday's git master)...
today i pull the changes to the new beta and i got the message about the upgrade.... all good ...
but i also got the message about the disabled apps because of incompatibilities ...
All my apps got disabled ....
all those app are compatible with this version so they shouldn't be disabled...
i got all of them back after going in admin enabling all the apps.
debian stable,
apache,
firefox
The text was updated successfully, but these errors were encountered: