← Back to team overview

group.of.nepali.translators team mailing list archive

[Bug 1790657] Re: [SRU] amqp-tools server parameter unusable

 

This bug was fixed in the package librabbitmq - 0.8.0-1ubuntu0.18.04.1

---------------
librabbitmq (0.8.0-1ubuntu0.18.04.1) bionic; urgency=medium

  * d/patches: Add fix-parameter-processing.patch to correct handling of
    --server, --url, and other options by reorganizing the logic flow.
    (LP: #1790657)

 -- Bryce Harrington <bryce@xxxxxxxxxxxxx>  Tue, 09 Jul 2019 21:19:59
-0700

** Changed in: librabbitmq (Ubuntu Bionic)
       Status: Fix Committed => Fix Released

-- 
You received this bug notification because you are a member of नेपाली
भाषा समायोजकहरुको समूह, which is subscribed to Xenial.
Matching subscriptions: Ubuntu 16.04 Bugs
https://bugs.launchpad.net/bugs/1790657

Title:
  [SRU] amqp-tools server parameter unusable

Status in librabbitmq package in Ubuntu:
  Fix Released
Status in librabbitmq source package in Xenial:
  Fix Committed
Status in librabbitmq source package in Bionic:
  Fix Released
Status in librabbitmq source package in Cosmic:
  Won't Fix
Status in librabbitmq source package in Disco:
  Fix Released
Status in librabbitmq source package in Eoan:
  Fix Released

Bug description:
  [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 apt-add-repository -y ppa:bryce/librabbitmq-sru-1790657
  $ sudo apt-get -y install librabbitmq-dev
  $ sudo amqp-consume --server=foobar:5672 -q queue cat
  Specifying the port number with --server is deprecated
  opening socket to foobar:5672

  [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

  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

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/librabbitmq/+bug/1790657/+subscriptions