title: OpenAM Policy Enforcement
body: <p>My test environment is comprised of openam 10.0.1, j2ee policy agent 3.1.0. When I set up a policy with a rule as follows:</p>
  
  <pre><code>host.example.com/testapp/*
  </code></pre>
  
  <p>Using URI Policy Agent, the rule gets enforced correctly (note the wild char <code>*</code> at the end). When I access a link</p>
  
  <pre><code>http://host.example.com/testapp/test/index
  </code></pre>
  
  <p>However, this is too coarse for my need. I need something like this: </p>
  
  <pre><code>host.example.com/testapp/test/*
  </code></pre>
  
  <p>For some reason this doesn't match correctly to a request such as</p>
  
  <pre><code>host.example.com/testapp/test/index
  </code></pre>
  
  <p>As a result the policy agent denies the request to the end user. Any clues on how to solve this issue? </p>
  
  <p>The application in question is a grails application that has standard URI mapping of controller and action.</p>