Skip to content
This repository has been archived by the owner on Nov 17, 2020. It is now read-only.

rabbitmqadmin misinterprets boolean settings in configfile #20

Closed
terrorobe opened this issue Jan 21, 2015 · 5 comments
Closed

rabbitmqadmin misinterprets boolean settings in configfile #20

terrorobe opened this issue Jan 21, 2015 · 5 comments
Assignees
Milestone

Comments

@terrorobe
Copy link

In

https://github.com/rabbitmq/rabbitmq-management/blob/491911cc07496bd0fade6035ae161f004ea093cd/bin/rabbitmqadmin#L344-358

the config values are read from the rabbitmqadmin.conf

In case of the ssl option the check at

if self.options.ssl:

will always succeed if the option is set (e.g. ssl = False) since the string always evaluates to True.

terrorobe pushed a commit to syseleven/puppetlabs-rabbitmq that referenced this issue Jan 21, 2015
This fixes MODULES-1691, caused by upstream bug
rabbitmq/rabbitmq-management#20
ironpinguin pushed a commit to mayflower/puppetlabs-rabbitmq that referenced this issue Feb 11, 2015
This fixes MODULES-1691, caused by upstream bug
rabbitmq/rabbitmq-management#20
@michaelklishin
Copy link
Member

@terrorobe is this still relevant?

@terrorobe
Copy link
Author

This got fixed in the puppet module upstream.

The implementation in rabbitmqadmin is unchanged and is still misleading in my opinion ;) At least I expect that a "False" value can be used to deactivate a feature in a config file when a "True" value enables it.

See https://github.com/rabbitmq/rabbitmq-management/blob/963a16dc622c16585dc844a228a542502829f254/bin/rabbitmqadmin#L200-207

If this is how you want to roll, please close the bug.

@michaelklishin
Copy link
Member

@terrorobe we want to fix this properly here, too. Thank you for confirming! We've now moved to GitHub, by the way, so feel free to file issues here should anything else come up.

@terrorobe
Copy link
Author

Ahh, good to know! I think rabbitmq has been fine so far, there're some kinks we're going to work out in the puppet modules, if anything else comes up we'll let you know.

Thanks for your work so far!

juspori pushed a commit to Yleisradio/puppetlabs-rabbitmq that referenced this issue Aug 11, 2015
This fixes MODULES-1691, caused by upstream bug
rabbitmq/rabbitmq-management#20
@dcorbacho dcorbacho self-assigned this Oct 12, 2015
@michaelklishin
Copy link
Member

Resolved in #72.

@michaelklishin michaelklishin added this to the 3.5.7 milestone Oct 12, 2015
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants