Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-772

SSE fillBuffer() does not handle data containing line breaks correctly

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 2.0.0.Beta1, 1.4.0.Final
    • 1.3.22.Final
    • Core
    • None

      ServerSentEventConnection#fillBuffer() does not check the event data string for line breaks. This results in incorrect output sent to the client.

      Per the spec, consecutive "data:" lines are re-concatenated on the other end, so fillBuffer() should split the data on line breaks and send one data line for each line in the event data string.

            sdouglas1@redhat.com Stuart Douglas
            rdicroce Richard DiCroce (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: