Openfire (ARCHIVED)

Problem with /> />

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Fixed
  • Affects Version/s: 3.2.2
  • Fix Version/s: 3.3.0 Beta 1, 3.2.4
  • Component/s: Core
  • Labels:
    None
  • Acceptance Test - Add?:
    No

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.

Activity

Hide
Gaston Dombiak added a comment -

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

Show
Gaston Dombiak added a comment - That is invalid XML. When sending ad-hoc messages from the debugger window it's up to you to send valid XML stanzas.
Hide
M.Kiesel added a comment -

<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.

Show
M.Kiesel added a comment - <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.
Hide
Matt Tucker added a comment -

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

Show
Matt Tucker added a comment - 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

People

Vote (1)
Watch (2)

Dates

  • Created:
    Updated:
    Resolved: