We're updating the issue view to help you get more done. 

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

Acceptance Test - Entry

None

Activity

Show:
Gaston Dombiak
March 8, 2007, 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.

M.Kiesel
March 9, 2007, 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.

MattM
March 19, 2007, 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

Assignee

Gaston Dombiak

Reporter

LG

Labels

None

Expected Effort

None

Ignite Forum URL

None

Components

Fix versions

Affects versions

Priority

Major
Configure