Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

delete msg - check if receipt handle is valid - fixes #324 #443

Merged
merged 4 commits into from Jan 15, 2021
Merged

Conversation

micossow
Copy link
Contributor

No description provided.


class ReceiptHandleIsInvalid(val queueName: String, receiptHandle: String) extends ElasticMQError {
val code = "ReceiptHandleIsInvalid"
val message = s"""The input receipt handle "$receiptHandle" is not a valid."""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
val message = s"""The input receipt handle "$receiptHandle" is not a valid."""
val message = s"""The receipt handle "$receiptHandle" is not valid."""

@@ -20,3 +20,8 @@ class MessageDoesNotExist(val queueName: String, messageId: MessageId) extends E
val code = "MessageDoesNotExist"
val message = s"Message does not exist: $messageId in queue: $queueName"
}

class ReceiptHandleIsInvalid(val queueName: String, receiptHandle: String) extends ElasticMQError {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

maybe simply: InvalidReceiptHandle?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed, although I left the string used in the api error response to be ReceiptHandleIsInvalid, so it conforms to https://docs.aws.amazon.com/AWSSimpleQueueService/latest/APIReference/API_DeleteMessage.html

@micossow micossow linked an issue Jan 15, 2021 that may be closed by this pull request
@micossow micossow linked an issue Jan 15, 2021 that may be closed by this pull request
@adamw adamw merged commit ea7f179 into master Jan 15, 2021
@mergify mergify bot deleted the bugfix/324 branch January 15, 2021 16:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

delete-message with invalid receipt handle doesn't throw any error
2 participants