Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Marcus Green exam: Dueling auth-constraint elements

 
Jan Sterk
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • 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 ]
 
Amruth Puppala
Ranch Hand
Posts: 295
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think E is correct answer according to HFSJ.
[ August 03, 2008: Message edited by: Chintu sirivennela ]
 
vijaya bharath
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
  • 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
  • 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 ]
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic