Win a copy of Java 9 Revealed this week in the Features new in Java 9 forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Union of ....?  RSS feed

 
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
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!