Undefined index: DESCRIPTION in aggregator.module on line 631.

mustafau - August 10, 2008 - 16:51
Project:Drupal
Version:7.x-dev
Component:aggregator.module
Category:bug report
Priority:critical
Assigned:Unassigned
Status:needs review
Description

This error appears if a feed's channel has no description element. Attached patch fixes the error.

AttachmentSizeStatusTest resultOperations
undefined_description.patch866 bytesIdleFailed: Failed to install HEAD.View details | Re-test

#1

obsidiandesign - August 15, 2008 - 03:50

Rerolled the patch - got "fuzz 2 (offset 9 lines)" with the original. Tested with an RSS feed w/o description to confirm the error message, patch corrects the issue. All SimpleTests for Aggregator succeed after applying the patch. +1 for RTBC.

(patch re-uploaded so it's the full path)

AttachmentSizeStatusTest resultOperations
undefined_description_0814.patch846 bytesIdleFailed: Failed to apply patch.View details | Re-test

#2

mustafau - August 23, 2008 - 09:15
Priority:normal» critical

Re-roll.

Critical because aggregator is not working without this.

AttachmentSizeStatusTest resultOperations
undefined_description_2.patch1.28 KBIdleFailed: Failed to install HEAD.View details | Re-test

#3

Arancaytar - November 13, 2008 - 02:22

I understand adding the array with empty default values.

Why are you moving the $etag line to above the foreach loop? Is this needed?

#4

Arancaytar - November 13, 2008 - 02:24
Status:needs review» reviewed & tested by the community

Mh, never mind, it does seem cleaner to put it together with the $modified line.

Testbot thinks this works, and I think the code looks good. RTBC?

#5

Damien Tournoud - November 13, 2008 - 07:39
Status:reviewed & tested by the community» needs work

This needs a test.

#6

Arancaytar - November 13, 2008 - 15:08

Tricky to come up with a meaningful test case there. description is a required field in RSS, so should the test case check for behavior of missing title/link as well?

#7

Damien Tournoud - November 13, 2008 - 15:17

If 'description' is a required field, wouldn't the sensible thing to do be to reject the feed altogether?

#8

Arancaytar - November 13, 2008 - 15:31
Status:needs work» needs review

I've added a test function to UpdateFeedTestCase that may catch this, but currently even running the unmodified test case crashes with a 500 on my server, so someone else will need to work on this.

Note: This one *only* adds the test function, you still need to apply the above patch. This is to make sure the unpatched site fails the test.

AttachmentSizeStatusTest resultOperations
aggregator-test-no-description-293536-7.patch2.02 KBIdleFailed: Failed to install HEAD.View details | Re-test

#9

System Message - November 16, 2008 - 22:05
Status:needs review» needs work

The last submitted patch failed testing.

#10

Arancaytar - November 17, 2008 - 11:06
Status:needs work» needs review

Works for me; the problem must be on your end, testbot.

AttachmentSizeStatusTest resultOperations
aggregator-test-no-description-293536-7.patch2.02 KBIdleFailed: 8023 passes, 0 fails, 1 exceptionView details | Re-test

#11

System Message - December 24, 2008 - 10:30
Status:needs review» needs work

The last submitted patch failed testing.

#12

mustafau - August 31, 2009 - 19:05
Status:needs work» needs review

Reroll of the test.

The issue is fixed in CVS HEAD. If this test gets committed, I will submit a patch for DRUPAL-6.

AttachmentSizeStatusTest resultOperations
aggregator-test-no-description-293536-12.patch1.93 KBIdlePassed: 14764 passes, 0 fails, 0 exceptionsView details | Re-test
 
 

Drupal is a registered trademark of Dries Buytaert.