Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-18446

Error parsing HTTP request header after starting XWiki on Tomcat

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 12.10.5, 13.1
    • None
    • None
    • Windows 10 Pro 64 bit, Firefox 86, using a local instance XWiki 12.10.5 on Oracle 19c, Tomcat 9.0.44
    • Unknown

    Description

      STEPS TO REPRODUCE

      1. Start an XWiki 12.10.5 instance on Tomcat (tested with Tomcat 9.0.44)
      2. Access the instance

      EXPECTED RESULTS

      No errors/warnings are displayed in console.

      ACTUAL RESULTS

      After accessing the instance, at some time, the following stacktrace occurs in console:

       

      17-Mar-2021 11:36:16.427 INFO [http-nio-1115-exec-6] org.apache.coyote.http11.Http11Processor.service Error parsing HTTP request header
       Note: further occurrences of HTTP request parsing errors will be logged at DEBUG level.
              java.lang.IllegalArgumentException: Invalid character found in method name [0x160x030x010x00u0x010x000x00q0x030x03Uv0xf20xba+Cc0xc60xb20xb50x860xfc0x810xc4n0xf30x1e0x180xcf?}0xf9P+:0x820xe70x10am0x8au0x000x000x1a0xc0/0xc0+0xc00x110xc00x070xc00x130xc00x090xc00x140xc00x0a0x000x050x00/0x0050xc00x120x000x0a0x010x000x00.0x000x050x000x050x010x000x000x000x000x000x0a0x000x080x000x060x000x170x000x180x000x190x000x0b0x000x020x010x000x000x0d0x000x0a0x000x080x040x010x040x030x020x010x020x030xff0x010x000x01...]. HTTP method names must be tokens
                      at org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:417)
                      at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:261)
                      at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                      at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:893)
                      at org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1707)
                      at org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                      at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
                      at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
                      at org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                      at java.base/java.lang.Thread.run(Thread.java:834)

      After accessing the instance, I created some users, added them in some groups and configured Mail Sending. I don't know, though, if these actions are related to the stacktrace.

      The issue reproduces also on XWiki 13.1.

      Attachments

        Activity

          People

            Unassigned Unassigned
            iandriuta Ilie Andriuta
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: