Skip to content

fix: MethodArgumentTypeMismatchException 전용 핸들러 추가로 잘못된 enum 파라미터 400 응답 처리#36

Draft
Jeongho0805 wants to merge 1 commit into
stagefrom
fix/PRACTICKET-4P-period-type-mismatch
Draft

fix: MethodArgumentTypeMismatchException 전용 핸들러 추가로 잘못된 enum 파라미터 400 응답 처리#36
Jeongho0805 wants to merge 1 commit into
stagefrom
fix/PRACTICKET-4P-period-type-mismatch

Conversation

@Jeongho0805

Copy link
Copy Markdown
Owner

변경 사항

  • GlobalExceptionHandlerMethodArgumentTypeMismatchException 전용 핸들러 추가
  • 잘못된 enum 파라미터(예: period=undefined) 요청을 500 대신 400 PARAMETER_IS_NOT_VALID로 응답

배경

Sentry 이슈 PRACTICKET-4P: GET /api/practice/rank?period=undefined 요청 시 클라이언트가 JavaScript undefined를 문자열로 전송해 MethodArgumentTypeMismatchException이 발생했다. 기존 GlobalExceptionHandler에는 이 예외에 대한 전용 핸들러가 없어 catch-all Exception 핸들러로 빠지며 Sentry에 500 서버 에러로 8회 기록됐다(영향 사용자 3명). 이는 서버 버그가 아닌 클라이언트 입력 오류이므로 Sentry 캡처 없이 400으로 처리해야 한다.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant