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

Union of ....?

 
Tazim Khan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
when we try to restrict a resource by this <auth-constraint> and if we have 2 of them like the following

<auth-constraint>
<role-name>Admin</role-name>
</auth-constraint>
<auth-constraint>
<role-name>*</role-name>
</auth-constraint>

everyone will get the access...

If we have the following one who will get the access everyone or no one?

<auth-constraint>
<role-name>*</role-name>
</auth-constraint>
<auth-constraint>
</auth-constraint>

Thanks
Tazim
 
Kiaama Liames
Ranch Hand
Posts: 52
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
<auth-constraint/> always gets the final word

http://www.coderanch.com/t/172125/java-Web-Component-SCWCD/certification/Dueling-auth-constraint-elements
 
Tazim Khan
Greenhorn
Posts: 4
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks, I appreciated your response specially for the link having more detail info on it...

Take care
Tazim
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic