Christoph,

On 6/4/24 05:49, Christoph Kukulies wrote:
I'm getting these when startig tomcat9:

This is a request, not startup. But it's not important.

04-Jun-2024 09:49:11.448 INFO [http-nio-8080-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 the 
request target [/sra_{xxxxxxx0-DDDD-3333-yyyyyyyyyyyyyy}/ ]. The valid 
characters are defined in RFC 7230 and RFC 3986
                 at 
org.apache.coyote.http11.Http11InputBuffer.parseRequestLine(Http11InputBuffer.java:502)
                 at 
org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:271)
                 at 
org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:65)
                 at 
org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:889)
                 at 
org.apache.tomcat.util.net.NioEndpoint$SocketProcessor.doRun(NioEndpoint.java:1735)
                 at 
org.apache.tomcat.util.net.SocketProcessorBase.run(SocketProcessorBase.java:49)
                 at 
org.apache.tomcat.util.threads.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1191)
                 at 
org.apache.tomcat.util.threads.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:659)
                 at 
org.apache.tomcat.util.threads.TaskThread$WrappingRunnable.run(TaskThread.java:61)
                 at java.base/java.lang.Thread.run(Thread.java:829)

Any clues?

The problem is the { and } characters.

My reading of RFC 7230 is that { and } /should/ be allowed, but Tomcat's code rejects them by default.

You can override this behavior by using the relaxedPathChars configuration attribute on your <Connector>[1].

-chris

[1] https://tomcat.apache.org/tomcat-9.0-doc/config/http.html

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to