Skip to content

[Hotfix]#56 Presigned URL PUT 403 수정#57

Merged
howooyeon merged 1 commit into
developfrom
hotfix/#56-presigned-url-403
May 19, 2026
Merged

[Hotfix]#56 Presigned URL PUT 403 수정#57
howooyeon merged 1 commit into
developfrom
hotfix/#56-presigned-url-403

Conversation

@howooyeon

@howooyeon howooyeon commented May 19, 2026

Copy link
Copy Markdown
Contributor

🧾 요약

  • Presigned URL PUT 업로드 시 403 Forbidden 오류 수정 — extraHeaders Content-Type 서명 제거

🔗 이슈

✨ 변경 내용

  • ImageService.generatePresignedUrl()에서 extraHeaders(Content-Type) 서명 제거
  • 클라이언트가 PUT 요청 시 Content-Type 불일치로 인한 SignatureDoesNotMatch 해결

✅ 확인

  • 빌드 OK
  • 테스트 OK

Summary by CodeRabbit

  • Bug Fixes
    • Improved image upload URL generation for enhanced compatibility with storage service configurations.

Review Change Stack

@coderabbitai

coderabbitai Bot commented May 19, 2026

Copy link
Copy Markdown

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Pro Plus

Run ID: 35b09de3-d093-4272-82a9-a7a93b165560

📥 Commits

Reviewing files that changed from the base of the PR and between 86d586d and a22f989.

📒 Files selected for processing (1)
  • src/main/java/com/semosan/api/domain/image/service/ImageService.java
💤 Files with no reviewable changes (1)
  • src/main/java/com/semosan/api/domain/image/service/ImageService.java

📝 Walkthrough

Walkthrough

ImageService removes the explicit Content-Type header from MinIO presigned PUT URL generation and its associated java.util.Map import. Clients can now set Content-Type freely during upload without triggering signature mismatch 403 errors.

MinIO Presigned URL 403 Fix

Layer / File(s) Summary
Remove Content-Type from presigned URL signature
src/main/java/com/semosan/api/domain/image/service/ImageService.java
GetPresignedObjectUrlArgs builder no longer includes extraHeaders with Content-Type, and the unused java.util.Map import is removed. Clients can now set Content-Type headers during PUT upload without signature validation failure.

🎯 2 (Simple) | ⏱️ ~5 minutes


🐰 A header too strict caused PUT to fall,
Content-Type locked the URL's call,
Now we've set them free to roam,
Let clients choose their content home,
403 begone—presigned URLs stand tall! 📦✨

🚥 Pre-merge checks | ✅ 5
✅ Passed checks (5 passed)
Check name Status Explanation
Description Check ✅ Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check ✅ Passed The title clearly references the specific issue (#56) and describes the main change: fixing the Presigned URL PUT 403 error, which directly matches the changeset that removes Content-Type extraHeaders.
Linked Issues check ✅ Passed The PR implements the primary coding requirement from issue #56: removing extraHeaders(Content-Type) from ImageService.generatePresignedUrl(). This directly addresses the core cause of the 403 SignatureDoesNotMatch error.
Out of Scope Changes check ✅ Passed All changes are directly scoped to the linked issue #56. The modification removes only the Content-Type extraHeaders from the presigned URL generation, with no unrelated or extraneous code changes introduced.
Docstring Coverage ✅ Passed No functions found in the changed files to evaluate docstring coverage. Skipping docstring coverage check.

✏️ Tip: You can configure your own custom pre-merge checks in the settings.

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch hotfix/#56-presigned-url-403

Comment @coderabbitai help to get the list of available commands and usage tips.

@howooyeon howooyeon self-assigned this May 19, 2026
@howooyeon howooyeon added the bug Something isn't working label May 19, 2026
@howooyeon
howooyeon merged commit 64731af into develop May 19, 2026
3 checks passed
@howooyeon
howooyeon deleted the hotfix/#56-presigned-url-403 branch May 20, 2026 03:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[hotfix] Presigned URL PUT 403 오류 수정

1 participant