Testsuite: org.apache.tomcat.util.http.TestMimeHeadersIntegration Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 2.312 sec ------------- Standard Error ----------------- 27-Sep-2023 16:07:22.324 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits1] 27-Sep-2023 16:07:22.707 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 27-Sep-2023 16:07:22.707 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true]. 27-Sep-2023 16:07:22.708 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 27-Sep-2023 16:07:22.710 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 27-Sep-2023 16:07:23.416 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-1"] 27-Sep-2023 16:07:23.456 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Sep-2023 16:07:23.456 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 27-Sep-2023 16:07:23.620 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-1-44241"] 27-Sep-2023 16:07:23.709 INFO [http-apr-127.0.0.1-auto-1-exec-1] 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: Request header is too large at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:602) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:286) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2129) 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:833) 27-Sep-2023 16:07:23.767 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-1-44241"] 27-Sep-2023 16:07:23.772 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Sep-2023 16:07:23.802 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-1-44241"] 27-Sep-2023 16:07:23.809 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-1-44241"] 27-Sep-2023 16:07:23.817 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits2] 27-Sep-2023 16:07:23.818 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 27-Sep-2023 16:07:23.831 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true]. 27-Sep-2023 16:07:23.832 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 27-Sep-2023 16:07:23.832 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 27-Sep-2023 16:07:23.833 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-2"] 27-Sep-2023 16:07:23.834 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Sep-2023 16:07:23.835 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 27-Sep-2023 16:07:23.847 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-2-41927"] 27-Sep-2023 16:07:23.910 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-2-41927"] 27-Sep-2023 16:07:23.912 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Sep-2023 16:07:23.917 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-2-41927"] 27-Sep-2023 16:07:23.926 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-2-41927"] 27-Sep-2023 16:07:23.928 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits3] 27-Sep-2023 16:07:23.935 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 27-Sep-2023 16:07:23.935 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true]. 27-Sep-2023 16:07:23.935 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 27-Sep-2023 16:07:23.936 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 27-Sep-2023 16:07:23.937 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-3"] 27-Sep-2023 16:07:23.939 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Sep-2023 16:07:23.939 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 27-Sep-2023 16:07:23.975 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-3-33525"] 27-Sep-2023 16:07:24.026 INFO [http-apr-127.0.0.1-auto-3-exec-1] 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.IllegalStateException: More than the maximum allowed number of headers, [100], were detected. at org.apache.tomcat.util.http.MimeHeaders.createHeader(MimeHeaders.java:262) at org.apache.tomcat.util.http.MimeHeaders.addValue(MimeHeaders.java:307) at org.apache.coyote.http11.Http11InputBuffer.parseHeader(Http11InputBuffer.java:892) at org.apache.coyote.http11.Http11InputBuffer.parseHeaders(Http11InputBuffer.java:591) at org.apache.coyote.http11.Http11Processor.service(Http11Processor.java:286) at org.apache.coyote.AbstractProcessorLight.process(AbstractProcessorLight.java:63) at org.apache.coyote.AbstractProtocol$ConnectionHandler.process(AbstractProtocol.java:928) at org.apache.tomcat.util.net.AprEndpoint$SocketWithOptionsProcessor.run(AprEndpoint.java:2129) 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:833) 27-Sep-2023 16:07:24.034 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-3-33525"] 27-Sep-2023 16:07:24.040 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Sep-2023 16:07:24.043 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-3-33525"] 27-Sep-2023 16:07:24.055 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-3-33525"] 27-Sep-2023 16:07:24.057 INFO [main] org.apache.catalina.startup.LoggingBaseTest.setUp Starting test case [testHeaderLimits4] 27-Sep-2023 16:07:24.058 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent Loaded Apache Tomcat Native library [1.2.38] using APR version [1.6.5]. 27-Sep-2023 16:07:24.058 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true], UDS [true]. 27-Sep-2023 16:07:24.058 INFO [main] org.apache.catalina.core.AprLifecycleListener.lifecycleEvent APR/OpenSSL configuration: useAprConnector [false], useOpenSSL [true] 27-Sep-2023 16:07:24.058 INFO [main] org.apache.catalina.core.AprLifecycleListener.initializeSSL OpenSSL successfully initialized [OpenSSL 1.1.1f 31 Mar 2020] 27-Sep-2023 16:07:24.065 INFO [main] org.apache.coyote.AbstractProtocol.init Initializing ProtocolHandler ["http-apr-127.0.0.1-auto-4"] 27-Sep-2023 16:07:24.065 INFO [main] org.apache.catalina.core.StandardService.startInternal Starting service [Tomcat] 27-Sep-2023 16:07:24.065 INFO [main] org.apache.catalina.core.StandardEngine.startInternal Starting Servlet engine: [Apache Tomcat/9.0.81-dev] 27-Sep-2023 16:07:24.090 INFO [main] org.apache.coyote.AbstractProtocol.start Starting ProtocolHandler ["http-apr-127.0.0.1-auto-4-34157"] 27-Sep-2023 16:07:24.114 INFO [main] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-apr-127.0.0.1-auto-4-34157"] 27-Sep-2023 16:07:24.117 INFO [main] org.apache.catalina.core.StandardService.stopInternal Stopping service [Tomcat] 27-Sep-2023 16:07:24.120 INFO [main] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-apr-127.0.0.1-auto-4-34157"] 27-Sep-2023 16:07:24.128 INFO [main] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-apr-127.0.0.1-auto-4-34157"] ------------- ---------------- --------------- Testcase: testHeaderLimits1 took 1.914 sec Testcase: testHeaderLimits2 took 0.112 sec Testcase: testHeaderLimits3 took 0.128 sec Testcase: testHeaderLimits4 took 0.074 sec