This week's book giveaway is in the General Computing forum. We're giving away four copies of Arduino in Action and have Martin Evans, Joshua Noble, and Jordan Hochenbaum on-line! See this thread for details.
a. It is faulty becasue it has multiple security-constraint elements b. It is faulty because it does not supply the http-method tag c. Only members of the manager role will be able to access theresource d. Any user will be able to access the resource e. No users will be able to access the resource
The answer turned out to be e. However, I thought it should be d. Can anyone clarify ?
Chapter SRV.12.8 of the Servlet 2.4 specification covers this. In particular "An authorization constraint that names no roles indicates that access to the constrained requests must not be permitted under any circumstances." and in SRV.12.8.1 you'll find that "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."
However, it seems that in the past this was not always implemented corrrectly by Tomcat (which is the reference implementation for the Servlet Spec); see here.