Unescaped <> characters in xmlls output

Bug #568941 reported by Sergio Gelato
10
This bug affects 2 people
Affects Status Importance Assigned to Milestone
bzr-xmloutput
Fix Released
High
Guillermo Gonzalez

Bug Description

When I run
    bzr xmlls
the output contains items of the form
<item><id>x_Sergio_Gelato_<email address hidden>_Sat_Oct_25_16:07:32_2008_9764.0</id>...</item>

The <> around my email address need to be encoded as &lt; and &gt; .

I became aware of this bug by noticing error messages from Eclipse along the lines of:

Apr 23, 2010 1:29:29 PM org.vcs.bazaar.client.commandline.parser.XMLLsParser parse
SEVERE: name expected (position:START_TAG <Sergio.Gelato>@1:2254 in java.io.StringReader@1cb5978)
org.xmlpull.v1.XmlPullParserException: name expected (position:START_TAG <Sergio.Gelato>@1:2254 in java.io.StringReader@1cb5978)
 at org.kxml2.io.KXmlParser.exception(Unknown Source)
 at org.kxml2.io.KXmlParser.error(Unknown Source)
 at org.kxml2.io.KXmlParser.readName(Unknown Source)
 at org.kxml2.io.KXmlParser.parseStartTag(Unknown Source)
 at org.kxml2.io.KXmlParser.nextImpl(Unknown Source)
 at org.kxml2.io.KXmlParser.next(Unknown Source)
 at org.kxml2.io.KXmlParser.nextText(Unknown Source)
 at org.vcs.bazaar.client.commandline.parser.XMLLsParser.parseItem(XMLLsParser.java:86)
 at org.vcs.bazaar.client.commandline.parser.XMLLsParser.parse(XMLLsParser.java:52)
 at org.vcs.bazaar.client.commandline.parser.XMLLsParser.parse(XMLLsParser.java:34)
 at org.vcs.bazaar.client.commandline.CommandLineClient.ls(CommandLineClient.java:467)
 at org.vcs.bazaar.eclipse.core.commands.LsCommand.run(LsCommand.java:45)

Related branches

Revision history for this message
Guillermo Gonzalez (verterok) wrote :

Hi Sergio!

Thanks for reporting the issue, I'll try to fix it ASAP and inclue it in the next release.

Regards,

Changed in bzr-xmloutput:
status: New → Confirmed
importance: Undecided → High
assignee: nobody → Guillermo Gonzalez (verterok)
milestone: none → 0.8.7
Changed in bzr-xmloutput:
status: Confirmed → In Progress
status: In Progress → Fix Committed
Changed in bzr-xmloutput:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.