Uploaded image for project: 'Undertow'
  1. Undertow
  2. UNDERTOW-325

CONNECT requests should return 400 instead of throwing IAE

    XMLWordPrintable

Details

    • Feature Request
    • Resolution: Obsolete
    • Major
    • None
    • 1.0.15.Final
    • None
    • None

    Description

      HTTP CONNECT requests coming from scans for proxy servers like this

      1.161.56.108 - - [02/Oct/2014:13:08:53 +0000] "CONNECT mx2.mail2000.com.tw:25 HTTP/1.0" 404 - "-" "-"
      

      throw IAE "unknown method" instead of returning 400.

      UT005001: An exception occurred processing the request
      Exception summary:
      
      Exception level 0: java.lang.IllegalArgumentException: Unknown method type -1
      
      
      Exception details:
      
      Exception level 0: java.lang.IllegalArgumentException: Unknown method type -1
              at io.undertow.server.protocol.ajp.AjpRequestParser.parse(AjpRequestParser.java:202)
              at io.undertow.server.protocol.ajp.AjpReadListener.handleEvent(AjpReadListener.java:125)
              at io.undertow.server.protocol.ajp.AjpOpenListener.handleEvent(AjpOpenListener.java:54)
              at io.undertow.server.protocol.ajp.AjpOpenListener.handleEvent(AjpOpenListener.java:19)
              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.NioTcpServerHandle.handleReady(NioTcpServerHandle.java:53)
              at org.xnio.nio.WorkerThread.run(WorkerThread.java:539)
      

      This is polluting the server log. It should have returned HTTP 400 instead.

      Attachments

        Activity

          People

            sdouglas1@redhat.com Stuart Douglas
            balusc@gmail.com Bauke Scholtz (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: