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

Fix AMQP 0.9.1 headers regression #10623

Merged
merged 1 commit into from
Feb 27, 2024
Merged

Fix AMQP 0.9.1 headers regression #10623

merged 1 commit into from
Feb 27, 2024

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
16 checks passed
@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
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants