Closed (fixed)
Project:
Drupal core
Version:
7.x-dev
Component:
aggregator.module
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
21 Mar 2010 at 18:36 UTC
Updated:
7 Apr 2010 at 09:00 UTC
Jump to comment: Most recent file
Comments
Comment #1
mr.baileysThis is the result of "The signature of the callback from drupal_get_form() changed to add $form"
Comment #2
mr.baileysThe aggregator module uses aggregegator_page_category() and aggregator_page_source() both as normal callbacks as well as through a drupal_get_form callback. This leads to a strange function signature:
The fact that $form was added to the drupal_get_form callback signature causes this to fail.
I'd opt to split the function into a regular callback and a callback for drupal_get_form. This fixes the issue, and is more developer friendly.
Comment #3
mr.baileysMarked #725640: Module fails to load RSS Feed with errors as a duplicate. Improved the doxygen comments in the previous patch some more.
Comment #5
mr.baileys#3: aggregator.patch queued for re-testing.
Comment #6
catchPatch looks sane enough. Could we add a quick test - just visiting the path ought to be enough to trigger it no?
Comment #7
mr.baileysWe could add tests (you are right, a simple page visit will trigger the notices), but I'd prefer to have this handled by #276486: Tests needed: aggregator.admin.inc and #276499: Tests needed: aggregator.pages.inc to prevent scattered bits and pieces of tests. On the other hand, those two issues haven't seen much movement lately.
Comment #8
dodorama commentedI applied the patch everything works now.
Comment #9
catchI've actually been closing out those "tests needed" issues because they're usually so stale that there's no useful summary of what's actually missing or not - since we moved to adding tests when and if rather than just trying to get coverage up overall, but this could probably go in as a quick fix as well.
Comment #10
catchHere's the test.
edit: this was supposed to be just the test by itself, but other patches got in with it, however the 8 exceptions are the ones we wanted to see. Following post is the patch + the test together.
Comment #16
catchAnd the patch + test combined.
Comment #17
mr.baileysThanks catch! Test looks good to me, and confirmed that the test correctly catches the bug without the rest of the patch applied. Now we just need someone else to review & RTBC...
Comment #18
catchI reviewed #3, mr.baileys reviewed #16. Test bot reviewed both, I think that's a quorum.
Comment #19
dries commentedGood fix. Committed to CVS HEAD. Thanks.