Affects: spring-boot 3.1.4
When calling non-existing endpoint (for example: /abc) like this:
curl --location --request PUT 'http://localhost:8081/abc' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--data-urlencode '%z1=a'
The response code is 500 and the exception is following:
java.lang.IllegalArgumentException: URLDecoder: Illegal hex characters in escape (%) pattern - Error at index 0 in: "z1"
It's rather unexpected as it seems response code in this situation should be 4XX
Comment From: rstoyanchev
Can you provide a sample or a stacktrace at least to show where exactly it fails? This could vary depending on the application stack and configuration.
Comment From: spring-projects-issues
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed.
Comment From: spring-projects-issues
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue.