Skip to content

Commit 22a3525

Browse files
Naomi Mostclaude
andcommitted
Fix S3 presigned URL upload 403 error by setting Content-Type header
The Conductor server's AWS SDK v2 upgrade (v3.21.17+) now includes content-type in S3 presigned URL signatures. The client must send a matching Content-Type header or S3 rejects the upload with 403. Fixes conductor-oss/conductor#694 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1 parent 78a625a commit 22a3525

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

conductor-client/src/main/java/com/netflix/conductor/client/http/PayloadStorage.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ public void upload(String uri, InputStream payload, long payloadSize) {
9393
connection = (HttpURLConnection) url.openConnection();
9494
connection.setDoOutput(true);
9595
connection.setRequestMethod("PUT");
96+
connection.setRequestProperty("Content-Type", "application/json");
9697

9798
try (BufferedOutputStream bufferedOutputStream = new BufferedOutputStream(connection.getOutputStream())) {
9899
byte[] buffer = new byte[BUFFER_SIZE];

0 commit comments

Comments
 (0)