Skip to content

Commit

Permalink
Replace an Exception thrown with BAD_REQUEST
Browse files Browse the repository at this point in the history
Signed-off-by: Jan Supol <[email protected]>
  • Loading branch information
jansupol committed Dec 19, 2019
1 parent af5d00a commit 2f87ada
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -294,8 +294,9 @@ protected void service(final HttpServletRequest request, final HttpServletRespon
UriComponent.Type.PATH);

if (!decodedBasePath.equals(encodedBasePath)) {
throw new ProcessingException("The servlet context path and/or the "
+ "servlet path contain characters that are percent encoded");
setResponseForInvalidUri(response, new ProcessingException("The servlet context path and/or the "
+ "servlet path contain characters that are percent encoded"));
return;
}

final URI baseUri;
Expand Down

0 comments on commit 2f87ada

Please sign in to comment.