tracker issue : CF-3043798

select a category, or use search below
(searches all categories and all time range)
Title:

Bug 86883:(Watson Migration Closure)If you use CFFEED to parse an RSS feed and get metadata for a feed that uses itunes categories, AND if subcategories exist, you will get an error

| View in Tracker

Status/Resolution/Reason: Closed/Fixed/

Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)

Created: 04/28/2011

Components: CFFeed

Versions: 9.0.1

Failure Type: Unspecified

Found In Build/Fixed In Build: 0000 /

Priority/Frequency: Major / Most users will encounter

Locale/System: English / Platforms All

Vote Count: 0

Problem:

If you use CFFEED to parse an RSS feed and get metadata for a feed that uses itunes categories, AND if subcategories exist, you will get an error. To be clear, the XML must contain "child" categories:<itunes:category text="Technology">   <itunes:category text="Tech News"/> </itunes:category> <itunes:category text="Technology">   <itunes:category text="Software How-To"/> </itunes:category>and your cffeed tag must request the metadata.
Method:

Try the below code:
<cftry>
	
	<cffeed action="read" source="http://www.2ddu.com/feed/" name="struct" query="qry" xmlvar="xvar">
	<cfdump var="#xvar#" label="Query">
<cfcatch type="Any" >
	<cfdump var="#cfcatch#">
</cfcatch>
</cftry>

Observe the stack trace.
Result:

java.util.NoSuchElementException at java.util.StringTokenizer.nextToken(StringTokenizer.java:332) at coldfusion.syndication.RSSParser.getItunesCategoryStruct

----------------------------- Additional Watson Details -----------------------------

Watson Bug ID:	3043798

External Customer Info:
External Company:  
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 04/28/2011

Attachments:

Comments: