Skip to content

Conversation

@ansd
Copy link
Member

@ansd ansd commented Feb 27, 2024

Fixes #10620

Up to RabbitMQ 3.12:

  • When an AMQP 0.9.1 publisher sends a message with P_basic.headers unset, RabbitMQ will deliver an AMQP 0.9.1 message with P_basic.headers unset.
  • When an AMQP 0.9.1 publisher sends a message with P_basic.headers being an empty list ([]), RabbitMQ will deliver an AMQP 0.9.1 message with P_basic.headers being an empty list ([]).

In 3.13 including message containers, the 1st behaviour stayed the same while the 2nd behaviour changed to:

  • When an AMQP 0.9.1 publisher sends a message with P_basic.headers being an empty list ([]), RabbitMQ will deliver an AMQP 0.9.1 message with P_basic.headers unset.

This commit fixes this regression by using the same behaviour as in 3.12.

Fixes #10620 Up to RabbitMQ 3.12: * When an AMQP 0.9.1 publisher sends a message with P_basic.headers unset, RabbitMQ will deliver an AMQP 0.9.1 message with P_basic.headers unset. * When an AMQP 0.9.1 publisher sends a message with P_basic.headers being an empty list ([]), RabbitMQ will deliver an AMQP 0.9.1 message with P_basic.headers being an empty list ([]). In 3.13 including message containers, the 1st behaviour stayed the same while the 2nd behaviour changed to: * When an AMQP 0.9.1 publisher sends a message with P_basic.headers being an empty list ([]), RabbitMQ will deliver an AMQP 0.9.1 message with P_basic.headers unset. This commit fixes this regression by using the same behaviour as in 3.12.
@ansd ansd marked this pull request as ready for review February 27, 2024 10:13
@ansd ansd added this to the 3.13.1 milestone Feb 27, 2024
@kjnilsson kjnilsson self-requested a review February 27, 2024 15:20
@kjnilsson kjnilsson merged commit 98203cf into main Feb 27, 2024
@kjnilsson kjnilsson deleted the amqpl-headers branch February 27, 2024 15:20
michaelklishin added a commit that referenced this pull request Feb 27, 2024
Fix AMQP 0.9.1 headers regression (backport #10623)
@dumbbell dumbbell modified the milestones: 3.13.1, 4.0.0 Mar 22, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

3 participants