The URL of Tomcat constructs special character encoding problem for time _ Time color platform

Source: Internet
Author: User
Tags rfc

The URL has special time _ when the color platform build 274 "enterprise-e" 7044651 characters such as curly braces {},^ etc Tomcat will return 400 error

Java.lang.IllegalArgumentException:Invalid character found in the request target. The valid characters is defined in RFC 7230 and RFC 3986
At Org.apache.coyote.http11.InternalAprInputBuffer.parseRequestLine (internalaprinputbuffer.java:235)
At Org.apache.coyote.http11.AbstractHttp11Processor.process (abstracthttp11processor.java:1028)
At Org.apache.coyote.abstractprotocol$abstractconnectionhandler.process (abstractprotocol.java:637)
At Org.apache.tomcat.util.net.aprendpoint$socketprocessor.dorun (aprendpoint.java:2549)
At Org.apache.tomcat.util.net.aprendpoint$socketprocessor.run (aprendpoint.java:2538)
At Java.util.concurrent.ThreadPoolExecutor.runWorker (threadpoolexecutor.java:1145)
At Java.util.concurrent.threadpoolexecutor$worker.run (threadpoolexecutor.java:615)
At Org.apache.tomcat.util.threads.taskthread$wrappingrunnable.run (taskthread.java:61)
At Java.lang.Thread.run (thread.java:745)
1
2
3
4
5
6
7
8
9
10
Since the new version of Tomcat adds a feature: URLs are defined strictly according to the RFT 3986 specification

Only English letters (A-ZA-Z), Numbers (0-9),-_.~4 special characters, and all reserved characters are allowed in the URL (the following characters are reserved characters in RFC3986:! * ' ();: @ & = + $,/? # [])
1
Workaround:

Use the lower version of Tomcat
URL encoding of the corresponding special character
Added in Tomcat config file catalina.properties: Time _ Time Color platform Build 274 "enterprise-ah" 7044651

The URL of Tomcat constructs special character encoding problem for time _ Time color platform

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.