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

(#400) RetryLater fail to send message #402

Open
wants to merge 3 commits into
base: 2.0
Choose a base branch
from

Conversation

edallenjr
Copy link

  • Change SubscriptionExceptionMiddleware to use the client's RabbitMQ
    username instead of the user_id of the message that caused the
    exception when publishing to the default error exchange.

  • Change RetryLaterMiddleware to use the client's RabbitMQ
    username instead of the user_id of the message that caused the
    exception when publishing to the retry exchange.

Description

When republishing a message after an exception to either the default error exchange or retry exchange the relevant middleware uses the user_id of the incoming message that caused the exception. If the user_id of that message is not the same as the consumer's login RabbitMQ will reject the message and close the connection.

This commit will override the user_id of the message properties just before re-publishing it so that RabbitMQ will accept it.

Check List

  • All test passed.
  • Added documentation (if applicable).
  • Tests added to ensure functionality.
  • Pull Request to stable branch.

Ed Allen and others added 3 commits August 6, 2019 12:31
* Change SubscriptionExceptionMiddleware to use the client's RabbitMQ
  username instead of the user_id of the message that caused the
  exception when publishing to the default error exchange.

* Change RetryLaterMiddleware to use the client's RabbitMQ
  username instead of the user_id of the message that caused the
  exception when publishing to the retry exchange.
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.

None yet

1 participant