Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-8207

SseEventSource loses lastEventId on the 2nd reconnect attempt

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.3.5, 3.2.12
    • Fix Version/s: 3.3.6, 3.2.13, 3.4.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      https://github.com/apache/cxf/blob/master/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java#L82

      here it schedules reconnect passing the lastEventId parameter.

       

      https://github.com/apache/cxf/blob/master/rt/rs/sse/src/main/java/org/apache/cxf/jaxrs/sse/client/SseEventSourceImpl.java#L183

      here it creates a new instance of InboundSseEventListenerDelegate with lastEventId=null.

       

      So if the 1st reconnect attempt failed then on the 2nd one it won't send lastEventId header.

        Attachments

          Activity

            People

            • Assignee:
              reta Andriy Redko
              Reporter:
              artelkin Artem Elkin
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: