The original list_append handler (case-sensitive, using extractFunctionArgs with
naive comma splitting) shadows the #317 handler (case-insensitive, paren-aware
findNextComma + evaluateSetExpr). Nested expressions like
list_append(if_not_exists(items, :e), :v) hit the old handler first, which mangles
the arguments. Delete the old handler since #317's is a strict superset.
Add cacheControl as a dedicated field on S3Object (following the
contentEncoding pattern) and thread it through putObject, storeObject,
and copyObject in S3Service. Extract Cache-Control from request headers
in S3Controller.putObject, return it in appendObjectHeaders for
GetObject/HeadObject responses, and handle it in handleCopyObject with
REPLACE directive support.
Includes 6 integration tests covering put, get, head, copy-preserve,
copy-replace, and cleanup.
Wire up the two retention period API actions that were missing despite
the model already having retentionPeriodHours with getter/setter.
Validation matches AWS behavior:
- Increase rejects values <= current or > 8760 (365 days)
- Decrease rejects values >= current or < 24 hours
Closes#291
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* fix(dynamoDB): support Java AWS SDK v2 enhanced client null values
* fix(dynamoDB): added compatibility integration test for DynamoDB EnhancedClient. Including suggestion for default host+port for test fixture, so `mvn test -q` can work even without setting the env variable set.
* feat: Implement S3 Lambda notifications
Add support for S3 event notifications to AWS Lambda functions.
- Introduce `LambdaNotification` model to represent Lambda configurations.
- Update S3 controller to parse and serialize `CloudFunctionConfiguration` in notification XML.
- Implement logic in `S3Service` to extract Lambda ARN details and invoke functions upon matching S3 events.
- Add unit and integration tests for Lambda notification configuration persistence and event triggering.
* test(s3-notifications): Add S3 bucket notification compatibility tests
Introduces `S3NotificationsTest` to verify S3 event notifications for SQS, SNS, and Lambda targets.
Includes tests for notification configuration round-trip and Lambda invocation with object filters.
Adds `s3NotificationLoggerZip` to `LambdaUtils` for creating a test Lambda function.
Co-authored-by: Hector Ventura <hectorvent@gmail.com>
* feat(eventbridge): add InputTransformer support for rule targets
Support InputPathsMap + InputTemplate on EventBridge targets so events
can be projected to a subset of fields before delivery to SQS/SNS/Lambda.
- Add InputTransformer model with inputPathsMap and inputTemplate fields
- Parse and serialize InputTransformer in PutTargets / ListTargetsByRule
- Apply transformer in invokeTarget: extract JSONPath variables, substitute
<varName> placeholders in the template
- Use Jackson JsonPointer for JSONPath resolution ($.a.b.c → /a/b/c)
- Add unit tests for extractJsonPath and applyInputTransformer edge cases
- Add integration tests covering full put/list/deliver/transform flow
Fixes#140
In GraalVM native image the Xerces XML parser throws MissingResourceException
(an unchecked exception) when it tries to format an error message for malformed
input but cannot locate its message bundles. This exception was not caught by
the existing `catch (XMLStreamException ignored)` blocks in XmlParser, causing
it to propagate and crash S3 requests that arrive with non-XML bodies (e.g.
CDK PutObject calls during asset publishing).
Two-layer fix:
- Widen all five catch blocks in XmlParser from XMLStreamException to Exception
so any parse failure — regardless of cause — results in an empty/default
return value, matching the documented contract of each method.
- Add resource-config.json registering the three Xerces XML message bundles
(XMLMessages, XMLSerializerMessages, xpath regex message) so the bundles are
available at native image runtime and the MissingResourceException is not
thrown in the first place.
CloudFormation stacks containing AWS::Events::Rule resources were marked
as CREATE_COMPLETE but no actual EventBridge rules or targets were created.
This happened because the resource type was falling through to the default
stub handler in CloudFormationResourceProvisioner.
Changes:
- Inject EventBridgeService into CloudFormationResourceProvisioner
- Add provisioning handler for AWS::Events::Rule that creates actual rules
via EventBridgeService.putRule() and wires inline targets via putTargets()
- Add delete handler that removes targets before deleting the rule
- Support auto-generated rule names when Name property is omitted
- Handle EventPattern, ScheduleExpression, State, Description, RoleArn,
and inline Targets from CloudFormation properties
Presigned POST requests may send the policy field as either 'Policy' or
'policy'. The existing implementation only checked lowercase 'policy',
causing validation failures for clients that use uppercase field names.
Refactor to use case-insensitive field lookup so both variants are
handled correctly.
Replace @ConfigProperty constructor injection with programmatic
ConfigProvider.getConfig() lookup to fix native image crash when
FLOCI_HOSTNAME is set at runtime. @PreMatching JAX-RS filters run
before CDI beans are fully initialized, so neither @ConfigProperty
nor @ConfigMapping beans are available during filter construction.
Also make bucket extraction hostname-aware: only treat the first label
as a bucket name when the remainder matches the configured base hostname
(or a well-known AWS S3 domain). This prevents false positives when
Floci sits behind a multi-label hostname like floci.svc.cluster.local.
DynamoDbService was not handling the list_append function in update
expressions. This adds the logic to extract both list arguments, resolve
them from expression attributes or item attributes, and merge them into
the DynamoDB list format (with "L" structure).
Includes integration test covering basic list append operation.
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command
* Revert "Fixes DynamoDB support for adding values to a list for the SET ... ADD query/command"
* Fixes SNS/SQS enveloped message missing Timestamp in Body field.
* Fixes SNS/SQS enveloped message missing Timestamp in Body field.
DescribeTable responses were missing ProvisionedThroughput attributes on Global Secondary Indexes. Updated the JSON handler to extract and set ReadCapacityUnits and WriteCapacityUnits from the response payload for both DescribeTable and Create operations.
* feat(lambda): add missing runtimes, fix handler validation, long path extraction, and code signing config
* fix: removed unrequired go.sum and package-lock.json from compatibility test
* feat(scheduler): add EventBridge Scheduler ScheduleGroup CRUD
Introduces the scheduler service skeleton with ScheduleGroup CRUD over
the REST JSON protocol at /schedule-groups/{Name}. The default group is
lazily seeded on first access, mirroring the EventBridge default bus
pattern. Covers Create/Get/Delete/List, region scoping, name validation,
and the default-group delete guard.
* feat(scheduler): add Java SDK compatibility tests for ScheduleGroup CRUD
* feat(scheduler): add Schedule CRUD operations
The init hook executor defaulted to /bin/bash, which is not available on
Alpine-based Docker images (eclipse-temurin:25-jre-alpine). This caused
startup hooks to fail with "No such file or directory". /bin/sh is
universally available and POSIX-compatible.
* test: move compatibility tests into this repo
* fix: add StatisticValues parsing to CloudWatchMetricsJsonHandler
* fix: add missing required abstract methods to EmulatorConfig in EventBridgeSchedulerIntegrationTest
* test: add sdk tests for multipart S3 copy coverage
* fix: cover and fix smithy cbor and multipart s3 copy regressions
* test: migrate more test coverage to new folder
* test: add missing ec2 expectation in healthcheck test
* docs: update READMEs in `./compatibility-tests`
Support Create and Delete actions in GlobalSecondaryIndexUpdates
parameter for the DynamoDB UpdateTable operation. The Update action
(throughput modification) is accepted and ignored since the emulator
does not enforce throughput limits.
Also handles AttributeDefinitions updates required when adding new
GSI key attributes.
Closes#221
On native Linux Docker, host.docker.internal doesn't exist (only Docker Desktop
provides it). Detect this and use the bridge IP (172.17.0.1) instead, so Lambda
containers can reach the Runtime API without manual configuration.
* feat(sfn): add StartSyncExecution and fix per-state QueryLanguage override
- Remove incorrect validation that blocked per-state QueryLanguage: JSONPath
overrides when the top-level machine uses JSONata — AWS allows this
- Implement StartSyncExecution for EXPRESS state machines: extract doExecute
from executeAsync, add executeSync that blocks until the execution finishes,
wire up handler and service method
- Document remaining DynamoDB output shape issues (singleton unwrap, getItem
key format) in issues/ for follow-up
AWS Subscribe returns the existing subscription when called with the
same TopicArn, Protocol, and Endpoint. Floci was always creating a new
subscription, causing duplicates to accumulate across test re-runs.