rd444
May 29, 2019, 1:35pm
1
One other problem since upgrading this morning to 5.3.2.77 on 3 different servers. The update page now gives us this error:
I upgraded the lucee version from 5.2.9.31 ,5.3.1.102 to 5.3.2.77, the version upgraded successfully. I checked with express edition(snapshot) & command box.
line 92, a check is made to see if updateData.otherVersions exists
updateData=getAvailableVersion();*/
if(updateData.provider.location EQ "https://update.lucee.org" || updateData.provider.location EQ "http://update.lucee.org"){
version = "lucee";
}
else{
version = "custom";
}
versionsStr = {};
versionsStr.snapShot = {};
versionsStr.pre_Release= {};
versionsStr.release = {};
if(version eq 'custom'){
versionsStr.custom = {};
}
for(type in versionsStr){
versionsStr[type].upgrade = [];
versionsStr[type].downgrade = [];
}
if(version eq 'custom' && structKeyExists(updateData, "otherVersions") && Len(updateData.otherVersions)){
for(versions in updateData.otherVersions){
then on line 109 it just assumes it’s defined
versionsStr[type].downgrade = [];
}
if(version eq 'custom' && structKeyExists(updateData, "otherVersions") && Len(updateData.otherVersions)){
for(versions in updateData.otherVersions){
if(toVersionSortable(versions) LTE toVersionSortable(server.lucee.version)){
arrayPrepend(versionsStr.custom.downgrade, versions);
}
else{
arrayPrepend(versionsStr.custom.upgrade, versions);
}
hasOptions=true;
}
}
admin
action="getMinVersion"
type="#request.adminType#"
password="#session["password"&request.adminType]#"
returnvariable="minVersion";
minVs = toVersionSortable(minVersion);
Did this occur around the time of the server outage?
perhaps the update logic needs to be more robust when the lucee webservices are down?
this is reproduceable on localhost if you turn off wifi, restart lucee and go to server admin update
https://luceeserver.atlassian.net/browse/LDEV-2301
Zac,
Thanks for your suggestion on this & also created a new ticket for this issue. I’ve added a comment & updated a fix for this issue in the ticket.