• 게시글 알림 신청 취소 Controller의 header 필드명 uuid로 변경

  • 소셜 회원가입에 대한 회원탈퇴(soft delete) 진행

    • kafka broker로 보낼 메세지 토픽명(account-delete)은 동일
    @Override
    	public void deleteSocialAccountState(String uuid) {
    		OAuth oAuth = oAuthRepository.findByUuid(uuid).orElseThrow(
    			() -> new BaseException(BaseResponseStatus.NO_EXIST_USER)
    		);
    
    		OAuth softDeletedUser = OAuth.builder()
    			.id(oAuth.getId())
    			.uuid(oAuth.getUuid())
    			.provider(oAuth.getProvider())
    			.providerAccountId(oAuth.getProviderAccountId())
    			.isState(false)
    			.deletedAt(LocalDateTime.now())
    			.build();
    
    		oAuthRepository.save(softDeletedUser);
    		AccountDeleteKafkaRequestDto softDeleteSocialUser = AccountDeleteKafkaRequestDto.builder().uuid(uuid).build();
    		kafkaAccountDeleteTemplate.send(accountDeleteTopic, softDeleteSocialUser);
    		log.info("send success delete social user: {}", softDeleteSocialUser.getUuid());
    
    	}
    
  • sse 연결 위한 get controller 를 Front 측에서 호출 시 JWT 토큰 인증이 되지 않는다는 오류 발생

    • nextJs와 springBoot 는 3000과 8080으로 포트번호가 달라 발생 (포트가 다르기에 다른 도메인)
    도메인 구성 요소 예시 다른 도메인 여부
    프로토콜(Protocol) http:// vs https:// 다름
    호스트명(Domain/Host) localhost vs example.com 다름
    포트번호(Port) localhost:3000 vs localhost:8080 다름
    경로(Path) /api vs /home 경로는 CORS와 무관
    • cors 처리
    // 로컬, 배포 Front 도메인 추가, 
    @CrossOrigin(origins = {"<https://www.lookids.online>", "<http://localhost:3000>"}, allowedHeaders = "Authorization")
    
    • allowedHeaders는 클라이언트 요청 시 허용할 요청 헤더를 지정
    • Front 측에서 다시 테스트 되지 않는 현상 발생
      • allowedHeaders = "Authorization" 제거 후 다시 테스트
    • CrossOrigin 어노테이션 자체를 붙일 필요가 없으며 infra 측에서 https 연결 설정을 통해 해결됨
  • 채팅/댓글/답글 알림에 대하여 20글자까지 미리보기 되도록 변경

    String replyCommentContent = notificationCommentReplyRequestDto.getContent();
    
    log.info("consumeNotificationEvent: {}", replyCommentContent);
    
    String splitedReplyCommentContent = replyCommentContent.length() > 20 ? replyCommentContent.substring(0, 20) + "..." : replyCommentContent;