dev@glassfish.java.net

Re: [Fwd: sso-enabled and access-logging-enabled attribute changed recently ?]

From: Nandini Ektare <Nandini.Ektare_at_Sun.COM>
Date: Thu, 15 Oct 2009 20:06:11 -0700

On Oct 15, 2009, at 7:54 PM, Jan wrote:

> On 10/15/09 19:30, Nandini Ektare wrote:
>>
>>
>> On Oct 15, 2009, at 6:51 PM, Jan Luehe wrote:
>>
>>> Anissa,
>>>
>>> On 10/15/09 18:34, Anissa Lam wrote:
>>>>
>>>>
>>>> I didn't hear any response from the admin alias . resend to the
>>>> dev alias.
>>>> I need to know if GUI should change this to 'true|false|
>>>> inherit' or keep it as 'on|off|inherit'. Actually i have
>>>> 'temp' change that to make the verifier happy, but not sure if
>>>> thats the right thing, or masking another bug.
>>>
>>> I did some research and found that the change was made in response
>>> to
>>> https://glassfish.dev.java.net/issues/show_bug.cgi?id=10113
>>>
>>> The web container uses ConfigBeansUtilities#toBoolean to evalute
>>> these props,
>>> which interprets "true", "on", "yes", and "1" as enabled.
>>>
>>> Therefore, my preference would be to accept "true|on|false|off|
>>> inherit' as legal values.
>>>
>> Jan: I can change the enum to include all five values.
>
> That would be great!
>
Done. (I assume you want the same in http-service too. Right? )

-Nandini

Diffs:
config-api glassfish$ svn diff
Index: src/main/java/com/sun/enterprise/config/serverbeans/
VirtualServer.java
===================================================================
--- src/main/java/com/sun/enterprise/config/serverbeans/
VirtualServer.java (revision 32831)
+++ src/main/java/com/sun/enterprise/config/serverbeans/
VirtualServer.java (working copy)
@@ -230,7 +230,7 @@
       * @return possible object is {_at_link String }
       */
      @Attribute(defaultValue = "inherit")
- @Pattern(regexp="(true|false|inherit)")
+ @Pattern(regexp="(true|on|false|off|inherit)")
      String getSsoEnabled();

      /**
@@ -246,7 +246,7 @@
       * @return possible object is {_at_link String }
       */
      @Attribute(defaultValue = "inherit")
- @Pattern(regexp="(true|false|inherit)")
+ @Pattern(regexp="(true|on|false|off|inherit)")
      String getAccessLoggingEnabled();

      /**

> Jan
>
>>
>> Anissa: do you have any issues with this?
>>
>> Nandini
>>
>>>
>>> Jan
>>>
>>>
>>>>
>>>> thanks
>>>> Anissa.
>>>>
>>>>
>>>> Subject: sso-enabled and access-logging-enabled attribute changed
>>>> recently ?
>>>> From: Anissa Lam <Anissa.Lam_at_sun.com>
>>>> Date: Tue, 13 Oct 2009 17:25:59 -0700
>>>> To: admin_at_glassfish.dev.java.net
>>>> To: admin_at_glassfish.dev.java.net
>>>> Hi,
>>>>
>>>> In promoted build 67, GUI is able to pass in "on/off/inherit"
>>>> for sso-enabled and access-logging-enabled attribute in virtual
>>>> server.
>>>> But today, I notice that backend is throwing an error. It says:
>>>>
>>>> Constraints for this bean violated. Message = ssoEnabled must
>>>> match "(true|false|inherit)"
>>>> same for accessLoggingEnabled.
>>>>
>>>> Is this a bug in the verifier or this is an intended change ?
>>>> I hope it is not the latter. I think its really too late in the
>>>> development cycle to make change like that, and without sending
>>>> out notification. It will affect the console, doc and testing.
>>>>
>>>> thanks
>>>> Anissa.
>>>>
>>>>
>>>> ---------------------------------------------------------------------
>>>> To unsubscribe, e-mail: dev-unsubscribe_at_glassfish.dev.java.net
>>>> For additional commands, e-mail: dev-help_at_glassfish.dev.java.net
>>>>
>>>
>>
>