Uploaded image for project: 'Quarkus'
  1. Quarkus
  2. QUARKUS-2819

Quarkus Undertow doesn't work with blocking SecurityIdentityAugmentor

XMLWordPrintable

    • False
    • None
    • False
    • +
    • Hide

      I have created example github project, just start it up in dev mode and try following request:
      http://localhost:21380/bug/fruits
      Basic Auth: admin/pass

      Show
      I have created example github project , just start it up in dev mode and try following request: http://localhost:21380/bug/fruits Basic Auth: admin/pass
    • ---

      Found in versions: 2.15.0, 2.15.3

      Extension used: [cdi, resteasy, resteasy-jsonb, security, servlet, smallrye-context-propagation, vertx]

      In case that I have undertow together with some blocking security identity augmentor in the project, the authorized requests end with NullPointerException:

      2023-01-12 11:58:26,226 ERROR [io.und.req.io] (executor-thread-0) Exception handling request a2892aab-b89a-40b8-943a-ddd34d3a9b68-1 to /bug/fruits: java.lang.NullPointerException: Cannot invoke "io.vertx.ext.web.RoutingContext.request()" because "routingContext" is null
      	at io.quarkus.resteasy.runtime.ContextUtil.pushContext(ContextUtil.java:19)
      	at io.quarkus.resteasy.runtime.ResteasyFilter$ResteasyResponseWrapper.service(ResteasyFilter.java:69)
      	at io.quarkus.resteasy.runtime.ResteasyFilter$ResteasyResponseWrapper.sendError(ResteasyFilter.java:76)
      	at io.undertow.servlet.handlers.DefaultServlet.doGet(DefaultServlet.java:172)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:503)
      	at javax.servlet.http.HttpServlet.service(HttpServlet.java:590)
      

      There is no issue without undertow or with non blocking augmentor.

              rh-ee-mvavrik Michal Vavrik
              myroch Miroslav Holubec (Inactive)
              Michal Vavrik Michal Vavrik
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: