wso2 / micro-integrator

The cloud-native configuration driven runtime that helps developers implement composite microservices.
https://wso2.com/integration/
Apache License 2.0
194 stars 206 forks source link

[MI 4.2.0] Re-queue on Rollback Fails if Backend Returns 401 When Endpoint Authentication Is Used. #3358

Open SameeraSI opened 3 weeks ago

SameeraSI commented 3 weeks ago

Steps to Reproduce:

sender.zip consumer.zip

Following are the configs we used in the deployment.toml file of the MI for connection factories:

[[transport.rabbitmq.listener]]
name = "AMQPConnectionFactory"
parameter.hostname = "localhost"
parameter.port = "5672"
parameter.username = "guest"
parameter.password = "guest"

[[transport.rabbitmq.sender]]
name = "AMQPConnectionFactorySender"
parameter.hostname = "localhost"
parameter.port = "5672"
parameter.username = "guest"
parameter.password = "guest"

After deploying the consumer.zip proxy, we observed that all the messages in the "Rabbitqueue" queue are consumed by the proxy, and the rollback does not work properly.

This behavior occurs only for the 401 status code from the backend. However, if the token generation call responds with a 401, the rollback happens successfully.

Thanks, Sameera