<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=us-ascii">
<meta name="Generator" content="Microsoft Word 14 (filtered medium)">
<style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Tahoma;
        panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
        {font-family:Consolas;
        panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif";}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:blue;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:purple;
        text-decoration:underline;}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Balloon Text Char";
        margin:0in;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";}
span.EmailStyle17
        {mso-style-type:personal-compose;
        font-family:"Calibri","sans-serif";
        color:windowtext;}
span.BalloonTextChar
        {mso-style-name:"Balloon Text Char";
        mso-style-priority:99;
        mso-style-link:"Balloon Text";
        font-family:"Tahoma","sans-serif";}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri","sans-serif";}
@page WordSection1
        {size:8.5in 11.0in;
        margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
</head>
<body lang="EN-US" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I have a topic &#8220;demo.account.topic&#8221; and 2 users &#8220;demo&#8221; and &#8220;test&#8221;.. configured on rabbitMQ 3.1.5<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">For &#8220;demo&#8221; user the permission expression for configure, read, write &#8211; &#8220;demo.*&#8221;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">For &#8220;test&#8221; user the permission expression for configure, read, write &#8211; &#8220;test.*&#8221;<o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
<p class="MsoNormal">I have a <span style="font-size:10.0pt;font-family:Consolas;color:black;background:silver;mso-highlight:silver">
ConfirmCallback</span><span style="font-size:10.0pt;font-family:Consolas;color:black"> configured.. When sending messages using user &#8220;demo&#8221; on &#8220;demo.account.topic&#8221; exchange I see confirm method being called back and also see the spike on message rate in the
 management console &#8230;GOOD &#8230; <o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">but when I use &#8220;test&#8221; user .. I don&#8217;t see any exception and it just hangs there .. no spike on the console and no confirm method was called back &nbsp;&#8230; NOT sure but I was expecting
 an exception when &#8220;test&#8221; user was trying to send a message as he doesn&#8217;t have access too ..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">When read the messages ..using &#8220;demo&#8221; user on &#8220;demo.account.topic&#8221; exchange ..I see a channel exception and on console the channel count is &#8220;0&#8221; with permission expression
</span>for configure, read, write &#8211; &#8220;demo.*&#8221;<span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:yellow;mso-highlight:yellow">channel error; reason: {#method&lt;channel.close&gt;(reply-code=404,
<b>reply-text=NOT_FOUND</b> - no queue '8c39360e-0d72-436a-9de2-c06f6a5cec58' in vhost '/', class-id=50, method-id=10), null, &quot;&quot;}</span><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">When I change the configure permission to &#8220;.*&#8221; and leave the read and write to &#8220;demo.*&#8221; .. Below is exception but was able to see a new dynamic queue created in the console
 with no binding .. channel count is &#8220;1&#8221; on console ..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:yellow;mso-highlight:yellow">channel error; reason: {#method&lt;channel.close&gt;(reply-code=403,
<b>reply-text=ACCESS_REFUSED</b> - access to queue 'bb771ff2-67ea-452e-a98f-163467469af9' in vhost '/' refused for user 'dlcore', class-id=60, method-id=20), null, &quot;&quot;}</span><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">When I change the configure, write permission to &#8220;.*&#8221; and leave the read to &#8220;demo.*&#8221; .. &nbsp;Below is the exception but was able to see a new dynamic queue created in the console
 with binding and messages were flowing through this queue ..but the consumer was not able to consume them ..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black;background:yellow;mso-highlight:yellow">channel error; reason: {#method&lt;channel.close&gt;(reply-code=403, reply-text=ACCESS_REFUSED - access to queue '65eda6e4-1ec0-482e-93e5-fd0d247412b4'
 in vhost '/' refused for user 'dlcore', class-id=60, method-id=20), null, &quot;&quot;}</span><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">My requirement is to be able to configure new queues dynamically and consume the message based on the permissions.. I am using the management console to set Permissions ..<o:p></o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black"><o:p>&nbsp;</o:p></span></p>
<p class="MsoNormal"><span style="font-size:10.0pt;font-family:Consolas;color:black">Appreciate all the help ..</span><o:p></o:p></p>
<p class="MsoNormal"><o:p>&nbsp;</o:p></p>
</div>
</body>
</html>