Skip to content

bug: Standard SQS queue accepts empty MessageGroupId  #11576

@KrazyK786

Description

@KrazyK786

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

No one assigned

    Labels

    aws:sqsAmazon Simple Queue Servicestatus: backlogTriaged but not yet being worked ontype: bugBug report

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions