[SPARK-1475] Connection crashen when sending control characters Created: 14/Feb/12  Updated: 24/Feb/13  Resolved: 14/Feb/12

Status: Closed
Project: Spark
Components: None
Affects versions: 2.6.3
Fix versions: 2.7.0

Type: Bug Priority: Major
Reporter: Holger Bergunde Assignee: Holger Bergunde
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original estimate: Not Specified


 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.



 Comments   
Comment by Holger Bergunde [ 14/Feb/12 ]

fixed by replacing control characters with nothing

Comment by LG [ 19/Feb/12 ]

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

Comment by Holger Bergunde [ 23/Feb/12 ]

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

Comment by Walter Ebeling [ 24/Feb/13 ]

Mass closing of resolved issues

Generated at Fri Mar 29 14:15:12 UTC 2024 using Jira 1001.0.0-SNAPSHOT#100248-rev:6a03a54452e975225e04dfda06fdac6fd9e95b00.