Spark
  1. Spark
  2. SPARK-1475

Connection crashen when sending control characters

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.6.3
    • Fix Version/s: 2.7.0
    • Component/s: None
    • Labels:
      None

      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.

        Activity

        Hide
        Holger Bergunde added a comment -

        fixed by replacing control characters with nothing

        Show
        Holger Bergunde added a comment - fixed by replacing control characters with nothing
        Hide
        LG added a comment -

        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

        Show
        LG added a comment - 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
        Hide
        Holger Bergunde added a comment -

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

        Show
        Holger Bergunde added a comment - yep, u000D is removed. in which situation do you need the cr flag?
        Hide
        Walter Ebeling added a comment -

        Mass closing of resolved issues

        Show
        Walter Ebeling added a comment - Mass closing of resolved issues

          People

          • Assignee:
            Holger Bergunde
            Reporter:
            Holger Bergunde
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: