3986
java.lang.IllegalArgumentException: 在请求目标中找到无效字符[/xxx/xx/getXxxList?page=1&pageSize=10&lists[]=0&lists[]=1&_t=1702523856439 ]。有效字符在RFC 7230和RFC 3986中定义
在请求中出现了lists[]=,其中[]这个是tomcat默认不识别的。 解决: <Connector port="8080" protocol="HTTP/1.1" connectionTimeout="20000" redirectPort="8443" maxParameterCount="1 ......
解决 springboot 2.6.6 版本中内嵌 tomcat 9.0.60 版本 严格执行RFC 3986规范,导致在 GET 请求中出现保留字符请求错误的问题。
项目中get请求:http://domain:port/api/module/function/getList?pageNum=1&pageSize=1000&keyWord=[]&id=; keyWord的参数应该是 keyWord="[]",如果不加双引号,keyWord就变成了数组,后台接口就 ......
Tomcat在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义
tomcat安装目录,\tomcat-8.5.66\conf 文件夹下 有个 server.xml 文件,找到 <connector> 标签,在后面添加以下: 向server.xml 中Connector添加 relaxedPathChars="|{}[],%" relaxedQueryChars= ......
Tomcat 在请求目标中找到无效字符。有效字符在RFC 7230和RFC 3986中定义
HTTP状态 400 - 错误的请求 类型 异常报告 消息 在请求目标中找到无效字符[/iserver/manager/filechooser?extensions=sci|inf&refer=D: ]。有效字符在RFC 7230和RFC 3986中定义 描述 由于被认为是客户端对错误(例如:畸形的 ......
Invalid character found in the request target [/api/hsFile/download?filePath=E:\\%E4%B8%B4%E6%97%B6%E6%96%87%E4%BB%B6&fileName=aaaaa.xlsx]. The valid characters are defined in RFC 7230 and RFC 3986
java.lang.IllegalArgumentException: Invalid character found in the request target [/api/hsFile/download?filePath=E:\\%E4%B8%B4%E6%97%B6%E6%96%87%E4%BB ......