Title:
Bug 72823:THere is an issue with some characters making cffeed throw a jdom type error
| View in TrackerStatus/Resolution/Reason: Closed/Fixed/
Reporter/Name(from Bugbase): Raymond Camden / Raymond Camden (Raymond Camden)
Created: 08/29/2008
Components: CFFeed
Versions: 9.0
Failure Type: Unspecified
Found In Build/Fixed In Build: 0000 / 230981
Priority/Frequency: Normal / Most users will encounter
Locale/System: English / Platforms All
Vote Count: 0
Problem:
THere is an issue with some characters making cffeed throw a jdom type error. Now I know this is the strings fault, but darnit, there REALLY needs to be a way to clean strings before sending them to cffeed. (Sorry, but cffeed still seems to have way too many warts.) Sample code, and more description, may be found here:
http://www.coldfusionjedi.com/index.cfm/2008/8/29/CFFEED--You-have-failed-me-for-the-last-time
Method:
<cfset getEntries = queryNew("publisheddate,content,title")>
<cfset queryAddRow(getEntries)>
<cfset querySetCell(getEntries,"title", "LAST ENTRY")>
<cfset querySetCell(getEntries,"content", "<b>Test</b>")>
<cfset querySetCell(getEntries,"publisheddate", now())>
<cfset queryAddRow(getEntries)>
<cfset querySetCell(getEntries,"title", "LAST ENTRY2")>
<cfset querySetCell(getEntries,"content", "#chr(8220)#Test#chr(8220)# #chr(19)#")>
<cfset querySetCell(getEntries,"publisheddate", now())>
<cfset props = {version="rss_2.0",title="Test Feed",link="http://127.0.0.1",description="Test"}>
<cffeed action="create" properties="#props#" query="#getEntries#" xmlVar="result">
<cfcontent type="text/xml" reset="true"><cfoutput>#result#</cfoutput>
Result:
----------------------------- Additional Watson Details -----------------------------
Watson Bug ID: 3035907
External Customer Info:
External Company:
External Customer Name: Raymond Camden
External Customer Email: 5FBC41E943BD265C992015D5
External Test Config: 08/29/2008
Attachments:
Comments: