bug: S3 PutObject returns InternalError on buckets with Suspended versioning (Pro v2026.3.1) #26
lorenzo-attuned
started this conversation in
Bugs
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Current Behavior
s3.PutObjectreturns500 InternalErrorfor any key on a bucket where versioning is inSuspendedstate. The error message is:No Python traceback is emitted in the LocalStack logs — only the single-line error above.
Expected Behavior
PutObject should succeed on buckets with
Suspendedversioning, writing objects without version IDs (matching AWS behavior).Steps To Reproduce
Key Observations
The file is actually written to disk (visible in
/var/lib/localstack/state/s3/<bucket>/) with a version ID suffix, but the response generation throws an exception.How We Hit This
AWS CDK
s3.Bucket({ versioned: false })on a bucket that previously hadversioned: truecauses CloudFormation to issuePutBucketVersioning(Status=Suspended)— not delete and recreate the bucket. After this stack update, all PutObject calls to that bucket fail permanently.Workaround: delete and recreate the bucket (or the entire CloudFormation stack).
Environment
docker-composewithlocalstack/localstack:latestBeta Was this translation helpful? Give feedback.
All reactions