Skip to content

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.

1 participant