This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line!
See this thread for details.
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes related to auth constraint Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "related to auth constraint" Watch "related to auth constraint" New topic
Author

related to auth constraint

Chetan Raju
Ranch Hand

Joined: Aug 02, 2006
Posts: 109


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 ?
Ulf Dittmer
Rancher

Joined: Mar 22, 2005
Posts: 42958
    
  73
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.

Also, if you post questions like these, please QuoteYourSources.
Chetan Raju
Ranch Hand

Joined: Aug 02, 2006
Posts: 109
The source is Marcus Greens site at http://www.examulator.com/moodle.
 
Have you checked out Aspose?
 
subject: related to auth constraint
 
It's not a secret anymore!