Closed (fixed)
Project:
Drupal core
Version:
7.0-rc1
Component:
filter.module
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 Dec 2010 at 12:21 UTC
Updated:
13 Jan 2011 at 18:00 UTC
Jump to comment: Most recent, Most recent file
Comments
Comment #1
Anonymous (not verified) commentedis the D6 site upgraded to the latest version? which contrib modules do you have installed (and disabled)?
is it possible to get a copy of your database?
Comment #2
ralphb commentedSee #989558: Broken Upgrade: system #7067
Comment #3
ralphb commentedI should also note that after the upgrade, the site is non-functional:
Debugging shows that the actual error is
Which is correct; there is no "filter" table, only "filters".
Raising priority, as this seems to be a show-stopper.
Comment #4
bleen commentedralphb: lets get to teh bottom of the cause of the prbolem you are having before we deem this critical and not ralphb's site-specific. Can you be more specific in your list of modules (copy and pate from drush sm would be great)
Comment #5
bfroehle commentedLooking at the Filter update #7001, shouldn't the insert values be 'module' => 'filter' instead of 'filter' => 'filter' ??
Comment #6
bfroehle commentedRegression came in #570900: Destroy remnants of update_sql(), for the curious.
Comment #7
ralphb commentedYes! That patch fixed the upgrade issue for me (and #989560: Broken Upgrade: node #7008 and #989558: Broken Upgrade: system #7067 as well)! Thanks!
Comment #8
damien tournoud commentedComment #9
bfroehle commentedHere's a simple test both with and without the patch in #5.
Comment #10
moshe weitzman commentedReally, I think we have proven the upgrade fix sufficiently.
Comment #11
webchickNot to be a pain, but could we please label that something other than 'filter_update_7001 test' for future generations? What exactly is that data testing?
Comment #12
bfroehle commented@webchick: Yes, you are a pain. :)
I think the patch in #5 (i.e., the one without the test) is fine, but if you must I've changed the name to 'Escape HTML Filter' which matches (case-insensitively) the comment in filter_update_7001().
Comment #13
bfroehle commentedAll the patch does is test whether the code which would upgrade an "Escape HTML Filter" actually runs. Nothing more. It certainly doesn't check that the filter is still there after the upgrade procedure. (By "Escape HTML Filter", I mean "HTML Filter" where on the configuration page you choose "Escape HTML").
I understand the need for tests, but it seems silly to me to keep writing these ad-hoc tests for things which were bungled up in DBTNG-type conversions. Oh well.
Comment #14
webchickSorry, I'm still not understanding how the test you've written fails without the patch and passes without it. I'm glad that it does! But we either need a comment there or a better name or... something... to explain this, because in future refactorings we want to make sure we don't lose this test since it's legit.
Comment #15
bfroehle commented@webchick: Did you see #12. Is that name not acceptable?
Literally the upgrade path is using wrong DB calls so that it dies if it ever gets run. It only runs if there is an input filter with the "Filter HTML" module enabled and on the configuration screen you choose "Escape HTML." (This is a pretty rare configuration). So that's what the test did -- it created just such an "Escape HTML Filter".
Comment #16
webchickI did. #12 is what continued to confuse me despite the human-readable name. Maybe I should stop reviewing patches at 12am or.. something.... :P
I think what you're maybe saying is that this:
...needs a comment above it like:
But I can't quite parse out what FLERZYWHATSIT is. Can you help? :)
Comment #17
bfroehle commentedThis has been languishing in the issue queue for far too long. What was a simple typographical fix --- the {filters} table has a column named 'module' not 'filter' --- is getting held up because of a desire to create a properly documented test.
Now the test provided in #12 (and in #9) does detect the presence of this patch, but the scope of the test is rather narrow --- it only ensures that the filter_update_7001() code actually runs. I've uploaded two patches.
The first, 989556-17.patch, includes the test with the following comment in response to Angie in #16:
The second, 989556-17_0.patch, includes only the typographical fix.
(Sorry for the duplicitous filenames!!)
I'd recommend committing the version with the test if you find the comment tolerable, and the version without the test if you find the comment confusing.
Comment #18
bfroehle commentedComment #19
webchickThanks, that's what I was looking for.
Committed to HEAD.
And I know it's frustrating when patches get held up for comments, but it's also frustrating to have a phantom test failure sometime far into the future and have no hope about figuring out why.
Comment #20
bfroehle commentedThanks webchick for your infinite patience.