You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Alexander Onnikov (Jira)" <ji...@apache.org> on 2019/12/03 14:30:00 UTC

[jira] [Updated] (CXF-8171) SSE Client does not support multiple data fields

     [ https://issues.apache.org/jira/browse/CXF-8171?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Alexander Onnikov updated CXF-8171:
-----------------------------------
    Description: 
According to [Server-Sent Events specification|https://www.w3.org/TR/eventsource/#parsing-an-event-stream] events may contain multiple *data* fields. In this case the client should concatenate all data field values with U+000A LINE FEED (LF) character.

Current SSE client implementation keeps only latest line.

 

I provided PR with test case that demonstrates the issue and fix.

  was:
According to [Server-Sent Events specification|https://www.w3.org/TR/eventsource/#parsing-an-event-stream] events may contain multiple *data* fields. In this case the client should concatenate all data field values with U+000A LINE FEED (LF) character.

Current SSE client implementation keeps only latest line.


> SSE Client does not support multiple data fields
> ------------------------------------------------
>
>                 Key: CXF-8171
>                 URL: https://issues.apache.org/jira/browse/CXF-8171
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 3.2.5
>            Reporter: Alexander Onnikov
>            Priority: Minor
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> According to [Server-Sent Events specification|https://www.w3.org/TR/eventsource/#parsing-an-event-stream] events may contain multiple *data* fields. In this case the client should concatenate all data field values with U+000A LINE FEED (LF) character.
> Current SSE client implementation keeps only latest line.
>  
> I provided PR with test case that demonstrates the issue and fix.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)