View Issue Details

IDProjectCategoryView StatusLast Update
0000374XMB1Bugspublic2010-12-23 02:02
Reportermiqrogroove Assigned Tomiqrogroove  
PrioritylowSeveritycrashReproducibilityrandom
Status closedResolutionfixed 
Product Version1.9.10 
Target Version1.9.11.10Fixed in Version1.9.11.10 
Summary0000374: Temp Fields Handled Wrong in Legacy Upgrader
DescriptionThe upgrade flow of control goes something like this:

"Opening XMB Upgrade Template", existing schema is loaded.

"Creating temporary fields...", temp fields are added if not already present.

"Changing table schemas", diffs are calculated from existing schema, queries are calculated from diffs, then queries are executed.

"Dropping temporary fields...", temp fields are deleted.


Now look what happens when the temp fields are present before starting the upgrade.
TagsNo tags attached.
MySQL Version
PHP Version
Web Server
Browser
Flags
Original Reporter
SVN Revision2399

Relationships

related to 0000417 closedmiqrogroove Get Rid of the Legacy Upgrader 

Activities

miqrogroove

2010-05-16 10:21

administrator   ~0000262

On top of all that, it's using the wrong condition, WHERE pollopts != ''

miqrogroove

2010-05-16 12:56

administrator   ~0000263

Looks like this was exacerbated by a change in XMB 1.9.9 where they tried to solve the problem by only adding pollopts_temp if it didn't already exist. This was carried into XMB 1.9.10, but is wrong. The existence of pollopts_temp indicates an inconsistent schema, the format of which cannot be predicted.

miqrogroove

2010-05-16 13:50

administrator   ~0000264

Removed the inner-loop query pattern and added sanity checks while I was in there.

miqrogroove

2010-09-10 08:50

administrator   ~0000265

There is a syntax error in upgrade.lib.php, pointed out by RichJ at http://forums.xmbforum.com/viewthread.php?tid=775845&goto=search&pid=1370057

miqrogroove

2010-12-11 18:37

administrator   ~0000270

Re-patched.

Fully tested using XMB 1.9.5, PHP 5.2.14, and MySQL 5.1.47.

Ready for release!

Issue History

Date Modified Username Field Change
2010-04-09 20:08 miqrogroove New Issue
2010-05-16 09:13 miqrogroove Status new => assigned
2010-05-16 09:13 miqrogroove Assigned To => miqrogroove
2010-05-16 10:21 miqrogroove Note Added: 0000262
2010-05-16 12:56 miqrogroove Note Added: 0000263
2010-05-16 13:48 miqrogroove SVN Revision => 2389
2010-05-16 13:48 miqrogroove Status assigned => resolved
2010-05-16 13:48 miqrogroove Product Version 1.9.8 SP2 => 1.9.10
2010-05-16 13:48 miqrogroove Fixed in Version => 1.9.11.10
2010-05-16 13:50 miqrogroove Note Added: 0000264
2010-05-16 13:50 miqrogroove Resolution open => fixed
2010-09-10 08:50 miqrogroove Note Added: 0000265
2010-09-10 08:50 miqrogroove Status resolved => feedback
2010-09-10 08:50 miqrogroove Resolution fixed => reopened
2010-12-11 16:39 miqrogroove Status feedback => assigned
2010-12-11 18:37 miqrogroove SVN Revision 2389 => 2399
2010-12-11 18:37 miqrogroove Note Added: 0000270
2010-12-11 18:37 miqrogroove Status assigned => resolved
2010-12-11 18:37 miqrogroove Resolution reopened => fixed
2010-12-23 02:02 miqrogroove Status resolved => closed
2011-01-15 04:48 miqrogroove Relationship added related to 0000417