hotfix: 영양사 페이지 이미지 다운로드 실패 수정 (main)#2287
Conversation
📝 WalkthroughWalkthroughThe PR tightens the S3 image URL filtering condition in the dining ZIP generation method. Previously, any URL starting with the S3 domain prefix was accepted; now only URLs matching the full prefix including the ChangesDining Image Download Fix
Estimated code review effort🎯 1 (Trivial) | ⏱️ ~2 minutes Poem
🚥 Pre-merge checks | ✅ 4 | ❌ 1❌ Failed checks (1 warning)
✅ Passed checks (4 passed)
✏️ Tip: You can configure your own custom pre-merge checks in the settings. ✨ Finishing Touches📝 Generate docstrings
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
b4baf59 to
94e6e71
Compare
5ac6a00 to
07e1836
Compare
🔍 개요
🚀 주요 변경 내용
영양사 페이지에서 이미지 다운로드 시,image_url에 저장된 이미지 주소 (https://static.koreatech.in/upload/COOP/연/월/일/이미지_경로.jpg) 를 가져와extractS3KeyFrom()를 호출해 key 값을 가져오게 됩니다. 이 경우 key 값은upload/COOP/연/월/일/이미지_경로.jpg가 됩니다.하지만, 천원의 아침 대표 이미지의 경우,image_url이https://static.koreatech.in/dining/천원의아침.png기 때문에,extractS3KeyFrom()를 호출 할 경우dining/천원의아침.png를 key 값으로 파싱하게 되고, 이는 S3 상에 없는 key이기 때문에Error Code: NoSuchKey;가 발생하게 됩니다.https://static.koreatech.in/dining/천원의아침.png에서 key 추출 후dining/천원의아침.png가 아닌dining/%EC%B2%9C%EC%9B%90%EC%9D%98%EC%95%84%EC%B9%A8.png를 반환하던 것이 문제 같습니다.💬 참고 사항
✅ Checklist (완료 조건)
Summary by CodeRabbit