[fix] #606 - 콕찌르기/Platform 연동 안정화 & Slack 로깅 예외 방지 #607
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.
Related issue 🛠
Work Description ✏️
작업 내용 요약
배경 / 현상
원인 분석
서버 명세는 userIds=1,2,3 CSV 1개 키를 요구. 기존 코드는
Map<String, Collection>로 userIds 키를 여러 번 넣어 실제로는 서버가 파라미터 미존재로 인식.
전역적으로 @AuthenticationPrincipal Long을 사용하는데 AOP에서 (User) principal 캐스팅을 시도해 예외.
PokeFacade#getFriendUserInfo()에서 PokedUserInfo.userId에 userId(나)를 넣고 있었음.
.get(0)로 첫 요소 접근, 빈 컬렉션에 대한 외부 호출, 빈 IN 쿼리 등.
로컬 User 미존재 케이스가 자연스럽게 NotFound로 떨어지지 않거나 메시지가 불명확.
변경 사항 (Fixes)
Platform 연동
바디 스펙: {"userIds":[1,2,3]}
Slack 로깅
콕찌르기 도메인
리팩토링/기타
Trouble Shooting ⚽️
Related ScreenShot 📷
Uncompleted Tasks 😅
To Reviewers 📢