• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

related to auth constraint

 
Ranch Hand
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator


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 ?
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Posts: 109
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The source is Marcus Greens site at http://www.examulator.com/moodle.
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic