[rabbitmq-discuss] regex permissions

Ben Hood 0x6e6562 at gmail.com
Thu Aug 6 20:32:37 BST 2009


Tracey,

On Thu, Aug 6, 2009 at 4:56 PM, teubanks<traceye at pmamediagroup.com> wrote:
> I'm having trouble with using regex to set permissions for my ruby
> application.
>
> tracey:sandbox administrator$ sudo rabbitmqctl set_permissions -p /nanite
> nanite "^nanite-.*" ".*" ".*"
> Setting permissions for user "nanite" in vhost "/nanite" ...
> ...done.
> tracey:sandbox administrator$ sudo rabbitmqctl list_permissions -p /nanite
> Listing permissions in vhost "/nanite" ...
> mapper		.*	.*
> nanite	%5enanite-.*	.*	.*
> ...done.
> tracey:sandbox administrator$
>
> I type in "^nanite-.*" but "%5enanite-.*" is what gets saved.
>
> Is this an issue with rabbitmq or bash?

We've just looked into this an it is indeed an issue in Rabbit. It
turns out we are url-encoding the output of the list_*** commands
before they returned to the bash script. This was used to make the
output parsing easier. So I'll take this down as a bug and we'll have
to see what we can do about it. In the meantime, I'm wondering if a
simple url-decode in your processing script can be a workaround?

Ben




More information about the rabbitmq-discuss mailing list