Mantis - Resin
Viewing Issue Advanced Details
2718 minor always 06-05-08 16:16 06-11-08 22:16
emil  
ferg  
normal  
closed 3.1.6  
fixed  
none    
none 3.1.7  
0002718: IoC subclass issue in security constraints
(Rep. by Alex Victoria)

When using a custom security constraint that extends IPConstraint, addAllow() is not being called. E.g.
--------------------------------------------------------------------
package example;

import com.caucho.server.security.IPConstraint;

public class CustomIPConstraint extends IPConstraint {
}
--------------------------------------------------------------------
<security-constraint>
  <constraint resin:type="example.CustomIPConstraint">
    <allow>2.2.2.2/8</allow>
  </constraint>
</security-constraint>
--------------------------------------------------------------------
Produces:
resin.conf:242: either `<allow>' or `<deny>' or both are expected
[16:15:25.860] {resin-16}
[16:15:25.860] {resin-16} 240: -->
[16:15:25.860] {resin-16} 241: <security-constraint>
[16:15:25.860] {resin-16} 242: <constraint resin:type="example.CustomIPConstraint">
[16:15:25.860] {resin-16} 243: <allow>2.2.2.2/8</allow>
[16:15:25.860] {resin-16} 244: </constraint>
[16:15:25.860] {resin-16}

This issue appears to be new between 3.1.5 and 3.1.6

Notes
(0003180)
ferg   
06-11-08 22:16   
server/12hk