Fixed
Details
Assignee
Robin CollierRobin CollierReporter
Henning StaibHenning StaibIgnite Forum URL
Components
Fix versions
Priority
Major
Details
Details
Assignee
Robin Collier
Robin CollierReporter
Henning Staib
Henning StaibIgnite Forum URL
Components
Fix versions
Priority
Created April 7, 2010 at 4:37 PM
Updated October 28, 2020 at 1:28 PM
Resolved November 24, 2010 at 3:09 AM
Smack should not close the connection if the message body contains additional tags. Although specification says that the body must not contain any tags it is user input and it should not be possible for a user with an errornous client to send messages that close the connection of other users.
Additionally for the parser to correctly set message bodies in different languages that may occur in a message packet the patch fixes the faulty handling of localized bodies.
A message tag may contain an xml:lang attribute which sets the default language of the message. This attribute is now not ignored anymore when correlating the message bodies to a language. Every message body now has a language associated (no null language for the default language of the message or application at the moment the body was set).