• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Jeanne Boyarsky
  • Junilu Lacar
  • Henry Wong
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Frits Walraven
  • Tim Holloway
  • Carey Brown
Bartenders:
  • Piet Souris
  • salvin francis
  • fred rosenberger

[Marcus Green Mock exam] Q6 exam 1

 
Greenhorn
Posts: 26
Firefox Browser Oracle Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I've doubts about question 6 of Marcus green first mock exam



first of my doubts, is that not a problem to have a <role-name>manager</role-name> out of <auth-constraint> </auth-constraint> ?



Then I was sure that when you have no <auth-constraint> nor <role-name>, all user authenticated or not could access resources.
But in answer it says :


Although the first auth-constraint is empty, implying no one will have access to the resource, this is cancelled out by the second auth-constraint that will allow anyone to access the resource.




Last but not least please tell me how does it work, if for the same URL you have multiple constraint, which constraint will be used ? the less restrictive ?


Seb
 
Creator of Enthuware JWS+ V6
Posts: 3346
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Sebastien,

A lot of Marcus Greens questions have been discussed here berfore. Check this thread.

Regards,
Frits
 
Listen. That's my theme music. That's how I know I'm a super hero. That, and this tiny ad told me:
Devious Experiments for a Truly Passive Greenhouse!
https://www.kickstarter.com/projects/paulwheaton/greenhouse-1
    Bookmark Topic Watch Topic
  • New Topic