Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[FIX] NoResourceFoundException 에러 해결 - #316 #317

Merged
merged 1 commit into from
Dec 2, 2024

Conversation

gardening-y
Copy link
Contributor

🔥Pull requests

⛳️ 작업한 브랜치

👷 작업한 내용

기존 시스템에서는 / URL 요청 시 NoResourceFoundException이 발생하며 디스코드 알림 시스템을 통해 불필요한 에러 알림이 전송되는 문제가 있었습니다. 이는 정상적인 서비스 동작과 무관한 요청에 대한 알림이 쌓여, 중요한 에러를 식별하기 어렵게 만드는 원인이 되었습니다.

이에 / URL 요청이 발생하더라도 디스코드 알림으로 전송되지 않도록 Spring Security 설정에서 / URL을 whiteList에서 제거하고, Security FilterChain을 통해 인증이 필요한 요청으로 처리되도록 변경했습니다. 이를 통해 / 요청은 Spring Security의 기본적인 인증 실패 처리 흐름에 따라 JwtAuthenticationEntryPoint에서 401 Unauthorized 응답으로 처리됩니다. 이 방식은 정상적인 에러 핸들링으로 간주되어 불필요한 디스코드 에러 알림을 차단하도록 합니다.

🚨 참고 사항

📟 관련 이슈

@gardening-y gardening-y self-assigned this Dec 2, 2024
@gardening-y gardening-y merged commit 76fdeef into develop Dec 2, 2024
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[FIX] "/" url NoResourceFoundException 알림 해결
1 participant