Connection crashen when sending control characters

Description

Java basically supports control characters in strings but xml parser recognize them as illegal characters. so if you are sending control characters openfire will close the connection immediately because of malformed data.

Environment

None

Activity

Show:
Holger Bergunde
February 14, 2012, 4:05 PM

fixed by replacing control characters with nothing

LG
February 19, 2012, 10:05 AM

With this fix also the valid character
u000D is removed. And there are much more illegal characters. On server side there is a similar issue http://issues.igniterealtime.org/browse/OF-391
Allowed Chars ::= #x9 | #xA | #xD | [#x20-#xD7FF] | [#xE000-#xFFFD] | [#x10000-#x10FFFF]

Holger Bergunde
February 23, 2012, 12:42 PM

yep, u000D is removed. in which situation do you need the cr flag?

Walter Ebeling
February 24, 2013, 9:29 AM

Mass closing of resolved issues

Fixed

Assignee

Holger Bergunde

Reporter

Holger Bergunde

Labels

None

Expected Effort

None

Ignite Forum URL

None

Fix versions

Affects versions

Priority

Major
Configure