Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-15134

[GSS](7.1.z) UNDERTOW-1404 - Need Bad Request handling of AJP for UT000072

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 7.1.6.CR1, 7.1.6.GA
    • 7.1.3.GA
    • Undertow
    • None
    • Hide

      Access JBoss via Apache httpd/mod_proxy with invalid URL parameter.

      curl -v "http://<httpd address>/test?url=aaa%http"
      
      Show
      Access JBoss via Apache httpd/mod_proxy with invalid URL parameter. curl -v "http: //<httpd address>/test?url=aaa%http"

      UT000072 exception is not handled as Bad Request on ajp-listener process. It needs Bad Request handling like a UNDERTOW-1021.

      12:08:24,775 ERROR [io.undertow.request] (default I/O-3) UT005001: An exception occurred processing the request: java.lang.IllegalArgumentException: UT000072: Failed to decode url aaa%http to charset UTF-8
              at io.undertow.util.URLUtils.decode(URLUtils.java:152)
              at io.undertow.util.URLUtils$QueryStringParser.decode(URLUtils.java:273)
              at io.undertow.util.URLUtils$QueryStringParser.parse(URLUtils.java:256)
              at io.undertow.util.URLUtils.parseQueryString(URLUtils.java:53)
              at io.undertow.server.protocol.ajp.AjpRequestParser.parse(AjpRequestParser.java:420)
              at io.undertow.server.protocol.ajp.AjpReadListener.handleEvent(AjpReadListener.java:169)
              at io.undertow.server.protocol.ajp.AjpOpenListener.handleEvent(AjpOpenListener.java:143)
              at io.undertow.server.protocol.ajp.AjpOpenListener.handleEvent(AjpOpenListener.java:52)
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:291)
              at org.xnio.ChannelListeners$10.handleEvent(ChannelListeners.java:286)
              at org.xnio.ChannelListeners.invokeChannelListener(ChannelListeners.java:92)
              at org.xnio.nio.QueuedNioTcpServer$1.run(QueuedNioTcpServer.java:131)
              at org.xnio.nio.WorkerThread.safeRun(WorkerThread.java:612)
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:479)
      

              thofman Tomas Hofman
              rhn-support-enagai Eiichi Nagai (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              10 Start watching this issue

                Created:
                Updated:
                Resolved: