0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Tomcatのデフォルトはリクエストパスに%2fを含むと400を返す

Posted at

encodedSolidusHandling
When set to reject request paths containing a %2f sequence will be rejected with a 400 response.

https://tomcat.apache.org/tomcat-10.0-doc/config/http.html より抜粋

よって、http://localhost:8080/hoge/%2F のようなURLにアクセスすると@RestControllerに辿り着かずTomcatが400を返す。

http://localhost:8080/foo?hoge=%2F とかクエリで渡す分にはOK。

0
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?