tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Peter Holcomb <>
Subject Security Constraint conflict
Date Fri, 18 Sep 2009 16:51:10 GMT
We have a situation where we recently introduced a new security
constraint into our configuration that has caused a conflict with our
previous constraint.  Here's our current configuration:

  <display-name>Restrict access to XHTML pages</display-name>
    <web-resource-name>Restrict access to XHTML pages</web-resource-name>
    <description>With no roles defined, no access granted</description>

<!-- restrict HTTP protocol methods that are not needed -->
    <web-resource-name>Protected Context</web-resource-name>
  <auth-constraint />

The purpose of the first constraint is to restrict access to all
.xhtml documents.  This was our original configuration and has been
working.  The second constraint was put in place in order to block
methods that we do not use (HTTP PUT, DELETE, TRACE, ect...).  This
constraint has had the effect of causing our .xhtml documents to now
be accessible.  You can point your browser to an .xhtml page and grab
it.  When we remove the second constraint, the .xhtml files are once
again inaccessible.  What are we doing wrong?

We are running tomcat 5.5.27 on jdk 1.5.0_18 (currently on windows
vista, but have seen this in production on our Linux servers).

Any guidance would be greatly appreciated.  Cheers,

Peter Holcomb

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message