Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20721

SSE does not work when wrapped in servlet filter

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not a Bug
    • Icon: Major Major
    • None
    • 26.1.3.Final, 36.0.1.Final
    • REST, Web (Undertow)
    • None
    • Hide

      https://github.com/alexlitovsky/wildfly-sse-bug

      1. Deploy to WildFly
      2. Go to http://localhost:8080/sse
      3. Everything works fine
      4. Un-comment the filter-mapping in web.xml
      5. Get an error
      Show
      https://github.com/alexlitovsky/wildfly-sse-bug Deploy to WildFly Go to http://localhost:8080/sse Everything works fine Un-comment the filter-mapping in web.xml Get an error
    • ---
    • ---

      When an SSE REST endpoint is wrapped in a servlet-filter that introspects the request/response, SSE no longer works.

      This is the warning in the log:

      RESTEASY002186: Failed to set servlet request into asynchronous mode, server sent events may not work

              jperkins-rhn James Perkins
              alexlitovsky@gmail.com Alex Litovsky (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: