Skip to content

Fix issues with multiple src and dest queue args (backport #8356)#15650

Merged
michaelklishin merged 2 commits intov4.2.xfrom
mergify/bp/v4.2.x/pr-8356
Mar 6, 2026
Merged

Fix issues with multiple src and dest queue args (backport #8356)#15650
michaelklishin merged 2 commits intov4.2.xfrom
mergify/bp/v4.2.x/pr-8356

Conversation

@mergify
Copy link
Copy Markdown

@mergify mergify bot commented Mar 5, 2026

Fixes #8323

Follow-up to #2802

The src-queue-args and dest-queue-args shovel parameters were validated using rabbit_parameter_validation:proplist/3, which calls validators as Fun(Key, Value). However, the validators from rabbit_amqqueue:declare_args/0 expect to be called as Fun({Type, Value}, FullTable) — with an AMQP-typed value and the full args table for cross-referencing (e.g. check_dlxrk_arg/2 looks up x-dead-letter-exchange in the table).

This mismatch caused crashes when multiple args were specified, such as x-dead-letter-exchange + x-dead-letter-routing-key on a quorum queue, or x-max-age on a stream queue.

The fix converts the input to an AMQP table and validates using the same convention as rabbit_amqqueue:check_arguments_type_and_value/3.


This is an automatic backport of pull request #8356 done by Mergify.

lukebakken and others added 2 commits March 5, 2026 22:14
Fixes #8323

Step 1: modify test so it throws the same error

(cherry picked from commit 8a6e35d)
@michaelklishin michaelklishin added this to the 4.2.5 milestone Mar 6, 2026
@michaelklishin michaelklishin merged commit b8ea1ac into v4.2.x Mar 6, 2026
293 checks passed
@michaelklishin michaelklishin deleted the mergify/bp/v4.2.x/pr-8356 branch March 6, 2026 00:01
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.

2 participants