Note that there are some explanatory texts on larger screens.

plurals
  1. PODeclarative security role name containing asterisk fails to work
    text
    copied!<p>I'm having a problem with my declarative security entries in web.xml.</p> <p>The entries below are not allowing me to access the page, even though I am a member of the group <code>*ADL - Education Group</code>. I end up being directed to the login-noauth page.</p> <p>I know this should work -- if I change it to a different group (like <code>AT - Tech Support</code>), it works great. I am suspicious of the leading "*" in the group name and have tried using CDATA in the web.xml, but that didn't work. I have no control over the Active Directory entries, so I can't change the name of the group. Other group names with dashes and spaces work fine.</p> <p>I have verified that I am a member of the group <code>*ADL - Education Group</code>.</p> <p>This is on a simple tomcat 6.0 server.</p> <p>Does anyone know what the problem is and how to fix it?</p> <pre><code>&lt;error-page&gt; &lt;error-code&gt;403&lt;/error-code&gt; &lt;location&gt;/pages/login/login-noauth.jsf&lt;/location&gt; &lt;/error-page&gt; &lt;login-config&gt; &lt;auth-method&gt;FORM&lt;/auth-method&gt; &lt;form-login-config&gt; &lt;form-login-page&gt;/pages/login/login.jsf&lt;/form-login-page&gt; &lt;form-error-page&gt;/pages/login/login-fail.jsf&lt;/form-error-page&gt; &lt;/form-login-config&gt; &lt;/login-config&gt; &lt;security-constraint&gt; &lt;display-name&gt;Batch Security&lt;/display-name&gt; &lt;web-resource-collection&gt; &lt;web-resource-name&gt;Batch Security&lt;/web-resource-name&gt; &lt;url-pattern&gt;/pages/batch/batch-status.jsf&lt;/url-pattern&gt; &lt;/web-resource-collection&gt; &lt;auth-constraint&gt; &lt;role-name&gt;*ADL - Education Group&lt;/role-name&gt; &lt;/auth-constraint&gt; &lt;/security-constraint&gt; &lt;security-role&gt; &lt;description&gt;Everyone&lt;/description&gt; &lt;role-name&gt;*ADL - Education Group&lt;/role-name&gt; &lt;/security-role&gt; </code></pre>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload