geronimo-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Aaron Mulder (JIRA)" <>
Subject [jira] Commented: (GERONIMO-1585) Web app security on /* causes deployment exception
Date Tue, 07 Feb 2006 00:50:57 GMT
    [ ] 

Aaron Mulder commented on GERONIMO-1585:

Well, I'm OK with this if the JACC spec is clear about it -- without the context, it's hard
for me to judge.  (e.g. I would have said /* was pretty clearly a path prefix).  It also makes
me a little uncomfortable that one of the examples in the Servlet spec actually uses /* so
it really seems legit.

In any case, it would be nice if we're going to reject this that we provide a specific message
to the effect of "The JACC specification specifically disallows /* as a URL pattern; please
use just / instead."  The current message "Qualifier patterns in the URLPatternSpec cannot
match the first URLPattern" is not at all clear to me.  If we have a clear message with a
recommended solution, then I don't really care too much if we reject that specific pattern.

> Web app security on /* causes deployment exception
> --------------------------------------------------
>          Key: GERONIMO-1585
>          URL:
>      Project: Geronimo
>         Type: Bug
>   Components: web, security
>     Versions: 1.0
>  Environment: Geronimo 1.0 with Jetty
>     Reporter: Aaron Mulder
>     Priority: Critical
>      Fix For: 1.0.1, 1.1

> Deploying a web app with the following security block causes a deployment error:
>     <security-constraint>
>         <web-resource-collection>
>             <web-resource-name>All Pages</web-resource-name>
>             <url-pattern>/*</url-pattern>
>             <http-method>GET</http-method>
>             <http-method>POST</http-method>
>             <http-method>PUT</http-method>
>         </web-resource-collection>
>         <auth-constraint>
>             <role-name>User</role-name>
>         </auth-constraint>
>     </security-constraint>
> Note this is essentially right out of the spec (see SRV.12.8.2 in the Servlet 2.4 spec).
> The error is:
>     org.apache.geronimo.common.DeploymentException: Unable to initialize webapp GBean
>         at org.apache.geronimo.jetty.deployment.JettyModuleBuilder.addGBeans(
>         ...
>     Caused by: java.lang.IllegalArgumentException: Qualifier patterns in the URLPatternSpec
cannot match the first URLPattern
>         at<init>(
>         at<init>(
>         at org.apache.geronimo.jetty.deployment.JettyModuleBuilder.buildSpecSecurityConfig(
>         at org.apache.geronimo.jetty.deployment.JettyModuleBuilder.addGBeans(
>         ... 70 more
> Changing the url-pattern to / fixes the problem, but it seems to me that /* ought to
work too.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:

View raw message