** Description changed:
[Impact]
The --server and -url parameters do not function as documented, due to an
upstream coding error that was fixed in release 0.8.1.
[Test Case]
+ $ sudo apt-get -y install librabbitmq-dev
+ $ sudo apt-get -y install amqp-tools
+
+ ### Broken behavior:
+ $ sudo amqp-consume --server=foobar:5672 -q queue cat
+ both --server and --url options specify server host
+
+ ### Fixed behavior:
+ $ sudo amqp-consume --server=foobar:5672 -q queue cat
TBD
[Regression Potential]
+ The patch alters C code to change how command line options are processed.
Things to watch for, then, would be mishandling of cli options, or compilation
errors during package build. The changes do not alter input handling at all,
so static testing should give a high degree of confidence of stability. Also,
the alterations are focused on tools, so general operation of librabbitmq
should not be affected in any way by the changes.
[Fix]
The upstream patch corrects handling of --server, --url, and other options by
reorganizing the logic flow.
[Discussion]
The issue appears not to be a regression from a recent change, but a problem
that has existed for quite a while:
- librabbitmq | 0.0.1.hg216-1 | precise/universe | source
- librabbitmq | 0.4.1-1 | trusty | source
- librabbitmq | 0.7.1-1 | xenial/universe | source
- librabbitmq | 0.8.0-1build1 | bionic/universe | source
- librabbitmq | 0.8.0-1build1 | cosmic/universe | source
- librabbitmq | 0.9.0-0.2 | disco | source
- librabbitmq | 0.9.0-0.2 | eoan | source
+ librabbitmq | 0.0.1.hg216-1 | precise/universe | source
+ librabbitmq | 0.4.1-1 | trusty | source
+ librabbitmq | 0.7.1-1 | xenial/universe | source
+ librabbitmq | 0.8.0-1build1 | bionic/universe | source
+ librabbitmq | 0.8.0-1build1 | cosmic/universe | source
+ librabbitmq | 0.9.0-0.2 | disco | source
+ librabbitmq | 0.9.0-0.2 | eoan | source
The fix should be backported to bionic and probably cosmic. Earlier
releases are probably also affected but probably only worth doing if the
patch applies cleanly to them.
[Original Report]
The version of amqp-tools in 18.04.1 LTS (and 14.04 iirc) has a bug which
renders parts of the cli unusable:
https://github.com/alanxz/rabbitmq-c/issues/364
1) 18.04.1 LTS bionic
2) 0.8.0-1build1
3) `amqp-consume --server=foobar:5672 -q queue cat` should work
4) amqp-consume complains that you cannot use --server and --url together
** Changed in: librabbitmq (Ubuntu Cosmic)
Status: Triaged => In Progress
** Changed in: librabbitmq (Ubuntu Bionic)
Status: Triaged => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/1790657
Title:
[SRU] amqp-tools server parameter unusable
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/librabbitmq/+bug/1790657/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs