Closed (fixed)
Project:
Drupal core
Version:
5.x-dev
Component:
update system
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
13 Apr 2008 at 16:42 UTC
Updated:
29 Sep 2008 at 06:01 UTC
Jump to comment: Most recent file
Comments
Comment #1
damien tournoud commentedI'm not sure there are any real-world consequences for that bug, so that's not critical. Any way, I can confirm that bugs. All updates functions in install.php and update.php expects the result of
drupal_get_schema_versions()to be sorted, while nothing in thedrupal_get_schema_versions()contract guarantees that.I have not tested the patch. On review, it looks good, but the change in the behavior of the function (ie. the results will always be ordered) should be documented in its doxygen comment.
Comment #2
bjaspan commentedThe real-world consequence is that foo_update_1() will never be run and foo_update_2() will be. That's bad and complete violates the specification for update functions.
Comment #3
floretan commentedMention the sorting in the doxygen comment.
Comment #4
damien tournoud commentedTested and confirmed to work on a dummy module.
No module was ever broken due to this bug, because all follows the sound convention of putting updates stages in order, so demoting this to normal.
Comment #5
damien tournoud commentedRerolled for head. Trivial fix that solves a confirmed problem, marked as RTBC.
Comment #6
dries commentedCommitted to CVS HEAD and DRUPAL-6. Might have to go into DRUPAL-5 too.
Comment #7
drummCommitted to 5.x.
Comment #8
Anonymous (not verified) commentedAutomatically closed -- issue fixed for two weeks with no activity.