Mantis - Resin
Viewing Issue Advanced Details
4835 minor always 11-03-11 18:22 11-04-11 09:07
cowan  
cowan  
normal  
closed 4.0.23  
fixed  
none    
none 4.0.24  
0004835: Custom constraint can not be added to SecurityConstraint
A custom constraint that extends AbstractConstraint fails to be added to com.caucho.server.security.SecurityConstraint, throwing the error:

WEB-INF/resin-web.xml:18: 'qa:MyConstraint' is an unknown property of 'com.caucho.server.security.SecurityConstraint'.

Example configuration:

  <resin:security-constraint>
    <web-resource-collection>
      <url-pattern>/*</url-pattern>
    </web-resource-collection>
    <qa:MyConstraint>
      <foo>bar</foo>
    </qa:MyConstraint>
  </resin:security-constraint>

Rep by K. Ding

Notes
(0005603)
cowan   
11-03-11 18:23   
SecurityConstraint is missing the necessary method:

  public void add(AbstractConstraint constraint)
(0005604)
cowan   
11-04-11 09:07   
server/1at1