• 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
  • Paul Clapham
  • Ron McLeod
  • Jeanne Boyarsky
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Frits Walraven
Bartenders:
  • Piet Souris
  • Himai Minh

Marcus Green exam: Dueling auth-constraint elements

 
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
This is Q6 of Marcus Green's first mock exam, together with the given answers:



But according to HFSJ, p.639 (1st ed.), rule 3, 'E' is the right answer, because an empty auth-constraint tag overrules everything.

I also tried it myself, and indeed an empty auth-constraint tag will always deny access. It doesn't even bother to authenticate!

Btw, apart from the above, the Marcus Green exam is excellent and well recommended!

[ August 01, 2008: Message edited by: Jan Sterk ]
[ August 01, 2008: Message edited by: Jan Sterk ]
 
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think E is correct answer according to HFSJ.
[ August 03, 2008: Message edited by: Chintu sirivennela ]
 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

Let me clear you on this
empty tag means which doesn't have any body,so the following might be empty tags
.Even if you have space between opening and ending tag also that will be considered as body.
Here if you observe the tag is declared with a carraige return,so it doesn't be considered as an empty tag.
Correct me if i am wrong.
 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Vijaya, I think all white space is ignored in any XML. Please check the answers (last sentence) that are included in the code block above. It says that the first auth-constraint tag is empty.
[ August 04, 2008: Message edited by: Jan Sterk ]
 
What's gotten into you? Could it be this tiny ad?
Free, earth friendly heat - from the CodeRanch trailboss
https://www.kickstarter.com/projects/paulwheaton/free-heat
reply
    Bookmark Topic Watch Topic
  • New Topic