Skip to content

Ministack: Free, open-source local AWS emulator - 60+ services, Terraform compatible, real databases. Free forever. MIT licensed.

fix: CDK content header 0 in JS SDK (#171)

Nahuel Nucerac7828820170d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 731cffdf..440bc5b1 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -7,11 +7,16 @@ Versioning follows [Semantic Versioning](https://semver.org/).
---
-## [Unreleased]
+## [1.1.47] — 2026-04-07
### Added
-- **Step Functions generic `aws-sdk:*` task dispatcher** — Task states can now use `arn:aws:states:::aws-sdk:<service>:<action>` resources to call any JSON-protocol MiniStack service (DynamoDB, SecretsManager, SSM, Logs, Kinesis, Glue, Athena, ECS, ECR, KMS, EventBridge). Query/REST services return clear "not yet supported" errors
-- **Step Functions sync execution error details** — `StartSyncExecution` now returns `error` and `cause` fields for failed executions, matching AWS SFN behaviour
+- **Step Functions generic `aws-sdk:*` task dispatcher** — Task states can now call any MiniStack service via `arn:aws:states:::aws-sdk:<service>:<action>` resource ARNs. Supports all JSON-protocol services (DynamoDB, SecretsManager, ECS, KMS, etc.). Contributed by @jayjanssen (#168)
+- **Step Functions sync execution error details** — `StartSyncExecution` now returns `error` and `cause` fields for failed executions, matching AWS SFN behaviour. Contributed by @jayjanssen
+
+### Fixed
+- **S3 `PutObject` missing `Content-Length: 0` header** — CDK deploy failed with `Expected real number, got implicit NaN` because the JS SDK v3 parsed the missing header as NaN. Reported by @youngkwangk (#160)
+- **README reverts from stale PR branches** — restored Cloud Map, ready.d, persistence list, SFN intrinsics documentation
+
### Tests
- 3 new tests: SecretsManager round-trip via aws-sdk, DynamoDB round-trip via aws-sdk, unknown service error handling
diff --git a/ministack/services/s3.py b/ministack/services/s3.py
index 3fb7fbde..1bb68a8e 100644
--- a/ministack/services/s3.py
+++ b/ministack/services/s3.py
@@ -1366,7 +1366,7 @@ def _put_object(bucket_name: str, key: str, body: bytes, headers: dict):
bucket_name, key, "s3:ObjectCreated:Put", size=obj["size"], etag=obj["etag"]
)
- resp_headers = {"ETag": obj["etag"]}
+ resp_headers = {"ETag": obj["etag"], "Content-Length": "0"}
if _bucket_versioning.get(bucket_name) in ("Enabled", "Suspended"):
version_id = new_uuid()
obj["version_id"] = version_id
diff --git a/pyproject.toml b/pyproject.toml
index 2c53e33e..78f0616c 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
[project]
name = "ministack"
-version = "1.1.46"
+version = "1.1.47"
description = "Free, open-source local AWS emulator — drop-in LocalStack replacement"
readme = "README.md"
license = { file = "LICENSE" }