Skip to content

Commit 363d1a3

Browse files
committed
Remove Content-Type expectation from PutBucketVersioning
Botocore doesn't send the necessary Content-Type when making the request. AWS CLI uses botocore, so the requests fail with the CLI as well. Fixes #2635
1 parent c2dc6e2 commit 363d1a3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

CHANGELOG.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -152,9 +152,8 @@ Version 4.x is JDK17 LTS bytecode compatible, with Docker and JUnit / direct Jav
152152
## 4.9.0 - PLANNED
153153
Version 4.x is JDK17 LTS bytecode compatible, with Docker and JUnit / direct Java integration.
154154

155-
This will be the last minor release of 4.x.
156-
157155
* Features and fixes
156+
* Remove Content-Type expectation from PutBucketVersioning (Fixes #2635)
158157
* Let S3Mock validate bucket names according to AWS rules
159158
* Refactorings
160159
* Let TaggingHeaderConverter convert XML tags

server/src/main/java/com/adobe/testing/s3mock/BucketController.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -231,8 +231,7 @@ public ResponseEntity<VersioningConfiguration> getVersioningConfiguration(@PathV
231231
},
232232
params = {
233233
VERSIONING
234-
},
235-
consumes = APPLICATION_XML_VALUE
234+
}
236235
)
237236
@S3Verified(year = 2025)
238237
public ResponseEntity<Void> putVersioningConfiguration(

0 commit comments

Comments
 (0)