Tomcat6url Request 400 Error (%2F and%5c)

Source: Internet
Author: User

In recent days, when the interface was developed, Tomcat reported 400 errors and looked for the following reasons.

Error cause : The parameters section of the URL contains/, the default tomcat is not supported URL parameters include:/(%2F), \ (%5c).

parsing method : can be configured by adding dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=true

Method 1: Modify the configuration file, tomcat6/conf/ catalina.properties file Add a line dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=true

Method 2: Add the startup parameters, -dorg.apache.tomcat.util.buf.udecoder.allow_encoded_slash=true


However, from the Apache official website, this configuration item belongs to the security group, do not know what kind of risk will be opened? Have to know the elder please advise ~
Official Note: http://tomcat.apache.org/tomcat-6.0-doc/config/systemprops.html#Security

Tomcat6url Request 400 Error (%2F and%5c)

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.