[jboss-as7-dev] Case-sensitivity of restricted model values

Jason Greene jgreene at redhat.com
Thu Nov 24 23:01:53 EST 2011


Good question. In this case I made it lenient but we don't necessarily have an established convention. IMO it does make a lot of sense to treat enums as case insensitive. Perhaps we need a description attribute for that

Sent from my iPhone

On Nov 24, 2011, at 3:21 AM, David Bosschaert <david at redhat.com> wrote:

> Hi all,
> 
> Looking at the security domain subsystem I see that that the 
> authorization flag field has an allowed list of:
> "allowed" => [
>   "REQUIRED",
>   "REQUISITE",
>   "SUFFICIENT",
>   "OPTIONAL"]
> 
> However, the default model (what you get with a fresh new AS7 install) 
> has the flag value in lowercase:
>   "flag" => "required",
> 
> I'm wondering are we generally lenient wrt to case or is the 
> pre-populated value outside the range?
> 
> Cheers,
> 
> David
> _______________________________________________
> jboss-as7-dev mailing list
> jboss-as7-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jboss-as7-dev



More information about the jboss-as7-dev mailing list