Commit b4e97f9
committed
Fix
The `reply-to` property from request messages is parsed to the
`org.springframework.amqp.core.Address` object.
This one removes the first `/` leaving `routingKey`, based on the mentioned `reply-to`,
with a `queues/` prefix.
The value in the `reply-to` is already encoded, so we don't need to go extra parsing logic
in the `RabbitAmqpTemplate.toAmqpMessage()` in regards
`com.rabbitmq.client.amqp.Message.MessageAddressBuilder`
* Fix `RabbitAmqpTemplate.toAmqpMessage()` to check for `queues/` prefix before going down to
the `com.rabbitmq.client.amqp.Message.MessageAddressBuilder` logic.
Instead, use the `queue` value as is in the `com.rabbitmq.client.amqp.Message.to()` property
adding required `/` at the beginning of the value
* Revert `RabbitAmqpMessageListenerAdapter.sendResponse()` logic to `this.rabbitAmqpTemplate.send()`
without modifying `replyToRoutingKey` value
* Fix typos in the `Address` Javadocsreply-to handling logic for AMQP 1.01 parent f4adbf5 commit b4e97f9
File tree
3 files changed
+22
-22
lines changed- spring-amqp/src/main/java/org/springframework/amqp/core
- spring-rabbitmq-client/src/main/java/org/springframework/amqp/rabbitmq/client
- listener
3 files changed
+22
-22
lines changedLines changed: 4 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
25 | 25 | | |
26 | 26 | | |
27 | 27 | | |
28 | | - | |
| 28 | + | |
29 | 29 | | |
30 | 30 | | |
31 | 31 | | |
| |||
35 | 35 | | |
36 | 36 | | |
37 | 37 | | |
38 | | - | |
| 38 | + | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
68 | | - | |
| 68 | + | |
| 69 | + | |
69 | 70 | | |
70 | 71 | | |
71 | 72 | | |
| |||
Lines changed: 17 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
663 | 663 | | |
664 | 664 | | |
665 | 665 | | |
666 | | - | |
667 | | - | |
668 | | - | |
669 | | - | |
| 666 | + | |
| 667 | + | |
| 668 | + | |
| 669 | + | |
| 670 | + | |
| 671 | + | |
| 672 | + | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
| 677 | + | |
| 678 | + | |
670 | 679 | | |
671 | 680 | | |
672 | 681 | | |
| 682 | + | |
| 683 | + | |
| 684 | + | |
| 685 | + | |
673 | 686 | | |
674 | 687 | | |
675 | 688 | | |
| |||
Lines changed: 1 addition & 15 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
28 | 27 | | |
29 | 28 | | |
30 | 29 | | |
31 | 30 | | |
32 | 31 | | |
33 | 32 | | |
34 | | - | |
35 | 33 | | |
36 | 34 | | |
37 | 35 | | |
| |||
157 | 155 | | |
158 | 156 | | |
159 | 157 | | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
| 158 | + | |
173 | 159 | | |
174 | 160 | | |
175 | 161 | | |
| |||
0 commit comments