I'm getting results quite different from that mentioned in the
servlet spec. 2.4 and the HFSJ book while combining security constraints. I'm using
Tomcat 5.0.28/Win XP...Is anyone else gettin' the same thing? Here are some of the differnces:-
1.>In the servlet spec. (page 97) it says:
A security constraint that does not contain an authorization constraint shall combine with authorization constraints that name or imply roles to allow unauthenticated access.
But when I implement this the request is still being authenticated...My DD reads:
2.> In the spec(page 98) it says (and so does HFSJ) :
The special case of an authorization constraint that names no roles shall combine with any other constraints to override their affects and cause access to be precluded.
Now when my DD reads (here I'm showing only the relevant parts) :
it obeys the spec. and does not allow access to any one in any role...
BUT if I just change
the order of the 2 <security-constraint> elements in the DD as shown below then it allows any body with role "Admin"
3.> I'm gettin similar things on changing the order with other combos as well...
The tomcat-users.xml reads
Could anybody please try it out and confirm this....I'm really confused....Does the order really matter?