fix: MethodArgumentTypeMismatchException 전용 핸들러 추가로 잘못된 enum 파라미터 400 응답 처리#36
Draft
Jeongho0805 wants to merge 1 commit into
Draft
fix: MethodArgumentTypeMismatchException 전용 핸들러 추가로 잘못된 enum 파라미터 400 응답 처리#36Jeongho0805 wants to merge 1 commit into
Jeongho0805 wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
변경 사항
GlobalExceptionHandler에MethodArgumentTypeMismatchException전용 핸들러 추가period=undefined) 요청을 500 대신 400PARAMETER_IS_NOT_VALID로 응답배경
Sentry 이슈 PRACTICKET-4P:
GET /api/practice/rank?period=undefined요청 시 클라이언트가 JavaScriptundefined를 문자열로 전송해MethodArgumentTypeMismatchException이 발생했다. 기존GlobalExceptionHandler에는 이 예외에 대한 전용 핸들러가 없어 catch-allException핸들러로 빠지며 Sentry에 500 서버 에러로 8회 기록됐다(영향 사용자 3명). 이는 서버 버그가 아닌 클라이언트 입력 오류이므로 Sentry 캡처 없이 400으로 처리해야 한다.