This content has been marked as final. Show 3 replies
Try the seamspace example (from CVS Seam project).
While debugging the configuration from the documentation
<security-config> <security-constraint> <web-resource-collection> <web-resource-name>Secure Page</web-resource-name> <url-pattern>/secure/*.seam</url-pattern> </web-resource-collection> <auth-constraint> <role-name>admin</role-name> </auth-constraint> </security-constraint> </security-config>
I realized that the problem is in SecurityConstraint.matchPattern(String path, String pattern)
I believe it's a bug.
Actually the docs were wrong, I've fixed it now. Wildcards can only be used at the start of the url-pattern, e.g:
or at the end: