Problem with /> />

Description

I could reproduce this issue with Spark using ad-hoc messages.
<message to="recv@host" id="XRk8p-X">
<body>&lt;item/&gt;&lt;item/&gt;</body>
</message>
works fine while
<message to="lg@jivesoftware.com" id="XRk8p-X">
<body>&lt;item/>&lt;item/></body>
</message>
will disconnect the sender.

Environment

None

Activity

Show:

MattM 
March 19, 2007 at 4:39 AM

It appears we were wrong on this one – the characters are valid XML and we should deal with this case. A patch and test cases have been kindly created by a community member:

http://www.igniterealtime.org/forum/thread.jspa?threadID=25124

M.Kiesel 
March 9, 2007 at 7:53 PM

<message to="lg@jivesoftware.com" id="XRk8p-X">
<body> /> /> </body>
</message>

This IS well-formed XML. Any XML validator confirms that. See Remko's comment in http://www.igniterealtime.org/forum/thread.jspa?threadID=24992&tstart=0 .

Contact me as I might try to fix the bug in the meantime, I will give the code to you then.

Gaston Dombiak 
March 8, 2007 at 8:40 AM

That is invalid XML. When sending ad-hoc messages from the debugger window it's up to you to send valid XML stanzas.

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created March 7, 2007 at 6:17 AM
Updated March 30, 2007 at 2:18 AM
Resolved March 30, 2007 at 2:18 AM