Repository navigation
fix: 관리자 URL 매칭을 PathPatternRequestMatcher로 전환 - #1396
Merged
jei007 merged 1 commit intoOct 30, 2026
Merged
Conversation
jei007
approved these changes
Oct 30, 2026
jei007
left a comment
Contributor
There was a problem hiding this comment.
표준프레임워크에 대한 지속적인 참여에
대단히 감사드립니다.
1 of 2 tasks
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.
기준·범위
mainfd9062b.문제
AuthenticInterceptor가 Spring Security 6.x에서 삭제 예정(deprecated and marked for removal)인AntPathRequestMatcher를 사용해 컴파일 경고가 발생합니다(부모 POM이 관리하는 Spring Security 6.5.5 확인, 해당 버전 태그 소스에서 권장 대체 API 존재 확인).변경
setAdminAuthPatternList에서PathPatternRequestMatcher.withDefaults()로 패턴을 미리 파싱해 재사용하고, 요청 시 매칭합니다. 인증 실패·ROLE_ADMIN거부 조건과 리다이렉트 문자열은 그대로입니다(매칭 불일치 시 조기break는 동작 중립).AuthenticInterceptorTest: 파라미터화 18행(정상 서블릿 경로·parsed path 유무·GET/POST × 권한·인증 여부). DB·서버·Spring 컨텍스트 불필요합니다.검증
mvn -DskipTests=false -Dtest=AuthenticInterceptorTest test).-DskipTests), 특수 인코딩 URI·Ant 전용 확장 패턴의 전역 동등성(실제/sec/ram/*.do설정과 정상 서블릿 경로 기준으로만 주장).