Improve Message Parser Robustness and Message Body I18N

Description

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

Environment

None

Attachments

1

Activity

Show:

Henning Staib August 15, 2010 at 3:14 PM

fixed in revision 11824

Fixed

Details

Assignee

Reporter

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