Closed Bug 320967 Opened 19 years ago Closed 19 years ago

'content:encoded' field ignored in RSS2 feed parsing

Categories

(MailNews Core :: Feed Reader, defect)

defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dwsharp, Assigned: mscott)

References

Details

(Keywords: fixed1.8.0.2, fixed1.8.1, regression)

Attachments

(1 file)

User-Agent:       Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.12) Gecko/20050915 Firefox/1.0.7 (CK-IBM)
Build Identifier: Thunderbird nightly build version 1.5 (20051219) from http://ftp.mozilla.org/pub/mozilla.org/thunderbird/nightly/latest-mozilla1.8/

When I upgraded from Thunderbird 1.0.7 to Thunderbird 1.5, an RSS 2.0 feed I monitored changed from showing the full content of the article to only showing the description.  It appears that in content/messenger-newsblog/feed-parser.js (in chrome/newsblog.jar), the function parseAsRSS2() contains only the line

var content = getNodeValue(itemNode.getElementsByTagNameNS(RSS_CONTENT_NS, "encoded")[0]);

which puts the 'content:encoded' text into a local variable, but does nothing else with it -- specifically, it doesn't add the data to the item.content variable.  The corresponding code from feed.js in Thunderbird 1.0.7 has

var content = getNodeValue(itemNode.getElementsByTagNameNS(RSS_CONTENT_NS, "encoded")[0]);
if (content)
   item.content = converter.ConvertFromUnicode(content);

so it appears that either the last two lines were lost somewhere along the line, or the first line was not updated to use 'item.content' instead of 'var content'.

Reproducible: Always

Steps to Reproduce:
1. Subscribe to an RSS 2.0 feed, setting the 'Show the article summary instead of loading the web page' option.
2. Fetch the feed.
3. View a message from the feed.
4. View the original XML RSS feed file.

Actual Results:  
The body of the message you view will contain only the 'description' data from the RSS feed, not the 'contents:encoded' data.

Expected Results:  
The 'contents:encoded' data from the feed should be displayed.  Even if the 'Show the article summary instead of loading the web page' option is set, displaying the 'description' is overridden by displaying the 'contents:encoded' if it is available.
Confirmed on Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051213 Thunderbird/1.5 ID:2005121307

Seems like fallout from bug 272812. I'll attach a patch for this.
Status: UNCONFIRMED → NEW
Ever confirmed: true
Keywords: regression
OS: Windows XP → All
Hardware: PC → All
This adds back setting item.content which was removed by mistake earlier, I assume. Also removes a converter that isn't used for anything.
Attachment #206628 - Flags: superreview?(mscott)
Attachment #206628 - Flags: review?(sayrer)
Attachment #206628 - Flags: review?(sayrer) → review+
Is there any way this can get on the branch radar? This affects the 1.5 RC builds too and is a big regression. For example, http://www.imhostfu.com/index.php?/feeds/index.rss2 now only displays the article titles and none of the content, and many other blogs I subscribe to are now showing short, unformatted snippets instead of the full articles. It's making Thunderbird almost useless as an RSS reader.
Flags: blocking1.8.1?
once it's been tested on the trunk it will be a good candidate for 1.5.0.1 (only effects tbird) and 2.0.
Target Milestone: --- → Thunderbird2.0
Attachment #206628 - Flags: superreview?(mscott) → superreview+
Whiteboard: [checkin needed]
fixed on the trunk. leaving open so I don't forget this for 1.8.1 branch once checkin.

thanks for the patch mkmelin and happy new year.
Status: NEW → ASSIGNED
Whiteboard: [checkin needed]
fixed on the trunk.

leaving open for landing this fix for 1.5.1
Flags: blocking1.8.1? → blocking1.8.1+
Keywords: fixed1.8.1
Status: ASSIGNED → RESOLVED
Closed: 19 years ago
Keywords: fixed1.8.0.1
Resolution: --- → FIXED
*** Bug 299502 has been marked as a duplicate of this bug. ***
1.8.0.2 is technically the first release with this Thunderbird fix. 
Component: RSS → Feed Reader
Product: Thunderbird → MailNews Core
Target Milestone: Thunderbird2.0 → ---
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: