token 거래는 내부표준메세지 처리 안함.
requestBodyFilter.java 에서 HMAC 처리때문에 byte[]처리를 해야하고, byte[]처리를 위해서는 inbound어댑터 케릭터셋을 가져와야하지만, token 거래는 내부메세지 등록을 안함. 그래서 NullException 나던 bugfix. /token 가진것은 requestBodyFilter 타지 않도록 수정.
This commit is contained in:
@@ -75,12 +75,15 @@ public class ApiRequestBodyFilter extends OncePerRequestFilter {
|
||||
filterChain.doFilter(wrapped, response);
|
||||
}
|
||||
|
||||
private boolean isTarget(HttpServletRequest request) {
|
||||
String uri = request.getRequestURI();
|
||||
return ("POST".equals(request.getMethod()) || "PUT".equals(request.getMethod()))
|
||||
&& (uri.startsWith("/api") || uri.startsWith("/mapi"))
|
||||
&& !uri.startsWith("/mapi/oauth2/token");
|
||||
}
|
||||
private boolean isTarget(HttpServletRequest request) {
|
||||
String uri = request.getRequestURI();
|
||||
// token 이 포함되면 무조건 제외
|
||||
if (uri.contains("/token")) {
|
||||
return false;
|
||||
} else {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
private byte[] readBodyAsBytes(HttpServletRequest request) throws IOException {
|
||||
|
||||
Reference in New Issue
Block a user