Uploaded image for project: 'Red Hat Fuse'
  1. Red Hat Fuse
  2. ENTESB-19361

access logging support by cxf with embedded undertow server on karaf does not log URI

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • fuse-7.11.1-GA
    • fuse-7.10.2-GA
    • CXF
    • None
    • False
    • None
    • False
    • Release Notes
    • % %
    • Todo
    • Release Note
    • Hide
      1. Start fuse 7.10.2 karaf runtime
      2. Download and unzip the attached maven project
      3. Move to "cxf-camel-cxf-contract-first" directory and do "mvn clean install"
      4. On the karaf console, do "bundle:install -s mvn:org.jboss.fuse.quickstarts/cxf-camel-cxf-contract-first/7.10.0.fuse-7_10_2-00001-redhat-00002"
      5. On the local terminal, do "curl -X POST -d @src/test/resources/request.xml http://localhost:8080/demo" under "cxf-camel-cxf-contract-first" directory

      Actual Result Lack of URI log "/demo"

      127.0.0.1 - - [20/Jun/2022:12:12:19 +0900] "POST  HTTP/1.1" 200 208 "-" "curl/7.61.1"
      

      Expected Result Something like this. The point is URI "/demo" is logged

      127.0.0.1 - - [17/Jun/2022:12:13:59 +0900] POST /demo HTTP/1.1 500 288 XNIO-6 task-1;
      
      Show
      Start fuse 7.10.2 karaf runtime Download and unzip the attached maven project Move to "cxf-camel-cxf-contract-first" directory and do "mvn clean install" On the karaf console, do "bundle:install -s mvn:org.jboss.fuse.quickstarts/cxf-camel-cxf-contract-first/7.10.0.fuse-7_10_2-00001-redhat-00002" On the local terminal, do "curl -X POST -d @src/test/resources/request.xml http://localhost:8080/demo " under "cxf-camel-cxf-contract-first" directory Actual Result Lack of URI log "/demo" 127.0.0.1 - - [20/Jun/2022:12:12:19 +0900] "POST HTTP/1.1" 200 208 "-" "curl/7.61.1" Expected Result Something like this. The point is URI "/demo" is logged 127.0.0.1 - - [17/Jun/2022:12:13:59 +0900] POST /demo HTTP/1.1 500 288 XNIO-6 task-1;

      The access logging support by cxf with embedded undertow server on karaf does not log URI as expected.
      With this knwoeldge, it works fine with Fuse 7.9.
      https://access.redhat.com/solutions/5885141

      Components detail
      Fuse 7.9:
      cxf-3.3.6.fuse-790049-redhat-00001
      <cxf.undertow.version>2.2.5.Final-redhat-00001</cxf.undertow.version>

      Fuse 7.10.2
      cxf-3.3.6.fuse-7_10_2-00001-redhat-00005
      <cxf.undertow.version>2.2.12.Final-redhat-00001</cxf.undertow.version>

      The execution of io.undertow.server.HttpServerExchange.setRelativePath("") updates the URI value to blank.

      io.undertow.server.HttpServerExchange.setRelativePath(HttpServerExchange.java:-1)
      io.undertow.server.handlers.PathHandler.handleRequest(PathHandler.java:96)
      io.undertow.server.handlers.HttpContinueReadHandler.handleRequest(HttpContinueReadHandler.java:69)
      io.undertow.server.handlers.accesslog.AccessLogHandler.handleRequest(AccessLogHandler.java:148)
      jp.smbc.az.esb.runtime.fuse.extension.handler.LogHandler.handleRequest(LogHandler.java:50)
      io.undertow.server.Connectors.executeRootHandler(Connectors.java:387)
      io.undertow.server.protocol.http.HttpReadListener.handleEventWithNoRunningRequest(HttpReadListener.java:256)
      io.undertow.server.protocol.http.HttpReadListener.handleEvent(HttpReadListener.java:136)
      io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:162)
      io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:100)
      io.undertow.server.protocol.http.HttpOpenListener.handleEvent(HttpOpenListener.java:57)
      org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
      org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
      org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
      org.xnio.nio.QueuedNioTcpServer2.acceptTask(QueuedNioTcpServer2.java:178)
      org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
      org.xnio.nio.WorkerThread.run(WorkerThread.java:479)
      

      It might be a regression issue caused by UNDERTOW-1591.

              ggrzybek Grzegorz Grzybek
              rhn-support-hfuruich Hisao Furuichi
              Federico Mariani Federico Mariani
              Votes:
              0 Vote for this issue
              Watchers:
              11 Start watching this issue

                Created:
                Updated:
                Resolved: