-
-
Notifications
You must be signed in to change notification settings - Fork 4.2k
Closed
Labels
aws:sqsAmazon Simple Queue ServiceAmazon Simple Queue Servicestatus: backlogTriaged but not yet being worked onTriaged but not yet being worked ontype: bugBug reportBug report
Description
Is there an existing issue for this?
- I have searched the existing issues
Current Behavior
When sending a message to a standard SQS queue in LocalStack, passing empty string as the value for MessageGroupId validates successfully.
Expected Behavior
When sending a message to a standard SQS queue in LocalStack, passing empty string as the value for MessageGroupId should cause an InvalidParameterValue exception.
How are you starting LocalStack?
Custom (please describe below)
Steps To Reproduce
How are you starting localstack (e.g., bin/localstack
command, arguments, or docker-compose.yml
)
docker run localstack/localstack
Client commands (e.g., AWS SDK code snippet, or sequence of "awslocal" commands)
aws sqs send-message \
--endpoint-url http://localhost:4566 \
--queue-url "test-queue" \
--message-body '{}' \
--message-group-id "" \
--region us-east-1
running against LocalStack returns:
{
"MD5OfMessageBody": "99914b932bd37a50b983c5e7c90ae93b",
"MessageId": "f4c27de0-bb7a-483b-813f-bed7171d6ac3"
}
running against AWS returns:
An error occurred (InvalidParameterValue) when calling the SendMessage operation: Value for parameter MessageGroupId is invalid. Reason: The request include parameter that is not valid for this queue type.
Environment
- OS: macOS Sonoma 14.5
- LocalStack:
LocalStack version: 3.7.3.dev42
LocalStack Docker image sha: ed04d31834e012f3e30cd9887f0d2703f01e55399b34e65d01dc2ef701ce1356
LocalStack build date: 2024-09-24
LocalStack build git hash: fcd17d9f
Anything else?
No response
Metadata
Metadata
Assignees
Labels
aws:sqsAmazon Simple Queue ServiceAmazon Simple Queue Servicestatus: backlogTriaged but not yet being worked onTriaged but not yet being worked ontype: bugBug reportBug report