amqp-tools port parameter unusable
Bug #1888313 reported by
tinodj
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
librabbitmq |
Fix Released
|
Unknown
|
|||
librabbitmq (Ubuntu) |
Fix Released
|
Low
|
Jess Jang | ||
Bionic |
Won't Fix
|
Low
|
Unassigned | ||
Focal |
Triaged
|
Low
|
Unassigned | ||
Impish |
Won't Fix
|
Undecided
|
Unassigned |
Bug Description
This bug is related to #1790657, but not the same.
Broken behaviour:
amqp-consume -s mq.example.com --port 5672 cat
opening socket to localhost:5672
amqp-consume --server=
opening socket to localhost:5672
It connects to localhost instead to mq.example.com
This works, but says deprecated:
amqp-consume --server=
Specifying the port number with --server is deprecated
opening socket to mq.example.com:5672
Verified on xenial, bionic and focal.
Related branches
~jessica-youjeong/ubuntu/+source/librabbitmq:031822-bionic-devel-librabbitmq
On hold
for merging
into
ubuntu/+source/librabbitmq:ubuntu/bionic-devel
- Utkarsh Gupta: Pending requested
-
Diff: 77 lines (+53/-1)3 files modifieddebian/changelog (+8/-1)
debian/patches/series (+3/-0)
debian/patches/server_flag_deprecation.patch (+42/-0)
~jessica-youjeong/ubuntu/+source/librabbitmq:031822-impish-devel-librabbitmq
On hold
for merging
into
ubuntu/+source/librabbitmq:ubuntu/impish-devel
- Utkarsh Gupta: Pending requested
-
Diff: 81 lines (+59/-0)3 files modifieddebian/changelog (+15/-0)
debian/patches/series (+2/-0)
debian/patches/server_flag_deprecation.patch (+42/-0)
~jessica-youjeong/ubuntu/+source/librabbitmq:031822-focal-devel-librabbitmq
On hold
for merging
into
ubuntu/+source/librabbitmq:ubuntu/focal-devel
- Utkarsh Gupta: Pending requested
-
Diff: 87 lines (+65/-0)3 files modifieddebian/changelog (+21/-0)
debian/patches/series (+2/-0)
debian/patches/server_flag_deprecation.patch (+42/-0)
~jessica-youjeong/ubuntu/+source/librabbitmq:020322-jammy-devel-librabbitmq
Ready for review
for merging
into
ubuntu/+source/librabbitmq:ubuntu/devel
- Utkarsh Gupta (community): Approve
-
Diff: 73 lines (+51/-0)3 files modifieddebian/changelog (+8/-0)
debian/patches/series (+1/-0)
debian/patches/server_flag_deprecation.patch (+42/-0)
Changed in librabbitmq: | |
status: | Unknown → Fix Released |
Changed in librabbitmq (Ubuntu Impish): | |
status: | New → Triaged |
To post a comment you must log in.
Thanks for taking the time to report this bug and try to make Ubuntu better!
I was able to reproduce what you mentioned even in Groovy. Checking the code, the warning about specifying the port number with --server seems something desired by upstream since it is not IPv6 friendly [1]. I did not go through details of implementation but it might be an upstream bug, when the ':<port>' is passed the host is correctly parsed otherwise not and it fallback to localhost.
Interestingly, if you check the manpages those options are not listed there, and it is not a bug in the Ubuntu package but the upstream doc seems outdated [2].
This sounds like an upstream bug to me. The best route to getting it fixed
in Ubuntu in this case would be to file an bug with the upstream project. Would you like to do that?
If you do end up filing an upstream bug, please link to it from here. Thanks!
[1] https:/ /github. com/alanxz/ rabbitmq- c/blob/ master/ tools/common. c#L223 /github. com/alanxz/ rabbitmq- c/tree/ master/ tools/doc
[2] https:/