https://bz.apache.org/bugzilla/show_bug.cgi?id=60722
Bug ID: 60722
Summary: URLEncoding error in combination with Spring
DeferredResult and "%25" character in PathVariable
Product: Tomcat 8
Version: 8.5.11
Hardware: PC
OS: Mac OS X 10.1
Status: NEW
Severity: normal
Priority: P2
Component: Catalina
Assignee: [email protected]
Reporter: [email protected]
Target Milestone: ----
reference reported bug at Spring:
https://jira.spring.io/browse/SPR-15242
URLEncoding error in combination with DeferredResult and "%25" character in
PathVariable
There is a bug in combination with Percentage Encoding for the "%" character.
In combination with the DeferredResult and using @PathVariable.
For any other legal Percentage Encoding it works fine, except for the "%25",
i.e. "%" character.
Here is the code snippet:
----
@RequestMapping(value = "/test/{path_variable}", method =
RequestMethod.GET)
public DeferredResult<String> test(@PathVariable String path_variable) {
DeferredResult<String> response = new DeferredResult<>();
LOG.info("Request for {}", path_variable);
try {
response.setResult("Hello World");
}
catch (Error e) {
LOG.debug("Error", e);
}
catch (Exception e) {
LOG.debug("Exception", e);
}
return response;
}
----
--
You are receiving this mail because:
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]