Commit 449c631
committed
fix: S3 업로드 SDK 예외 미처리 및 base-url 미설정 시 잘못된 URL 반환 수정
- S3ProfileImageStorage, S3VerificationFileStorage: putObject 호출 시
SdkClientException 등 SDK 런타임 예외가 IOException catch에 잡히지 않아
500 핸들러 없이 전파되던 문제 수정 (IOException과 SDK 예외 catch 분리)
- S3ProfileImageStorage: storage-type=s3 전환 시 PROFILE_IMAGE_S3_BASE_URL,
PROFILE_IMAGE_S3_KEY_PREFIX 미설정이면 빈 URL을 반환하던 문제 수정
(생성자에서 필수 값 검증, IllegalStateException으로 조기 실패)1 parent c08cd56 commit 449c631
2 files changed
Lines changed: 25 additions & 4 deletions
File tree
- src/main/java/com/bootsignal/domain
- user/storage
- verification/storage
Lines changed: 16 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
30 | 30 | | |
31 | 31 | | |
32 | 32 | | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
33 | 40 | | |
34 | 41 | | |
35 | 42 | | |
| |||
42 | 49 | | |
43 | 50 | | |
44 | 51 | | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
45 | 59 | | |
46 | 60 | | |
47 | 61 | | |
| |||
50 | 64 | | |
51 | 65 | | |
52 | 66 | | |
53 | | - | |
| 67 | + | |
54 | 68 | | |
55 | | - | |
| 69 | + | |
56 | 70 | | |
57 | 71 | | |
58 | 72 | | |
| |||
Lines changed: 9 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
31 | 31 | | |
32 | 32 | | |
33 | 33 | | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
34 | 41 | | |
35 | 42 | | |
36 | 43 | | |
| |||
39 | 46 | | |
40 | 47 | | |
41 | 48 | | |
42 | | - | |
| 49 | + | |
43 | 50 | | |
44 | | - | |
| 51 | + | |
45 | 52 | | |
46 | 53 | | |
47 | 54 | | |
| |||
0 commit comments