Description
This issue is automatically created based on existing pull request: #26967: Fix for queue numeric argument conversion
Description (*)
Magento 2.4-develop
If we want to declare queue (I bet this also occurs the same way for exchanges) with arguments and we use numeric type argument in queue_topology.xml
it is casted to string and in corrected file it gets wrapped in incorrect type for rabbit. Example of configuration:
<exchange name="test.dead_letter" type="topic" connection="amqp">
<binding id="test" topic="#" destinationType="queue"
destination="test_dead_letter">
<arguments>
<argument name="x-dead-letter-exchange" xsi:type="string">test.retry</argument>
<argument name="x-message-ttl" xsi:type="number">36000</argument>
</arguments>
</binding>
</exchange>
Of course using string type doesn't help as we get also string. While creating such a queue we get error similar to:
PRECONDITION_FAILED - inequivalent arg 'x-message-ttl'for queue 'test_dead_letter' in vhost '\': received the value '36000' of type 'longstr' but current is none
.
If PR will be accepted, please port to 2.3 as well.
Related Pull Requests
This one has to be fixed first, as for now we are not able to declare queue with ANY parameters
#26966
Manual testing scenarios (*)
- Declare queue with numeric argument, for example x-message-ttl
- ...
Questions or comments
Contribution checklist (*)
- Pull request has a meaningful description of its purpose
- All commits are accompanied by meaningful commit messages
- All new or changed code is covered with unit/integration tests (if applicable)
- All automated tests passed successfully (all builds are green)
Metadata
Metadata
Assignees
Labels
Type
Projects
Status