You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Martin Thelian (JIRA)" <ji...@apache.org> on 2008/03/20 19:33:26 UTC

[jira] Created: (FELIX-521) MetaType - optionValues check

MetaType - optionValues check
-----------------------------

                 Key: FELIX-521
                 URL: https://issues.apache.org/jira/browse/FELIX-521
             Project: Felix
          Issue Type: Bug
          Components: Metatype Service
            Reporter: Martin Thelian


There is a problem in the validation of a value against option-values in "AD.validate(...)":

|> String[] optionValues = getOptionValues();
|> if ( optionValues != null )
|> {
|> [...]
|>     // not any of the option values, fail
|>     return VALIDATE_NOT_A_VALID_OPTION;
|> }

Per default the optionValues array is empty but not null. Therefore even if no options are configured the check returns VALIDATE_NOT_A_VALID_OPTION.


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Assigned: (FELIX-521) MetaType - optionValues check

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger reassigned FELIX-521:
---------------------------------------

    Assignee: Felix Meschberger

> MetaType - optionValues check
> -----------------------------
>
>                 Key: FELIX-521
>                 URL: https://issues.apache.org/jira/browse/FELIX-521
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>            Reporter: Martin Thelian
>            Assignee: Felix Meschberger
>
> There is a problem in the validation of a value against option-values in "AD.validate(...)":
> |> String[] optionValues = getOptionValues();
> |> if ( optionValues != null )
> |> {
> |> [...]
> |>     // not any of the option values, fail
> |>     return VALIDATE_NOT_A_VALID_OPTION;
> |> }
> Per default the optionValues array is empty but not null. Therefore even if no options are configured the check returns VALIDATE_NOT_A_VALID_OPTION.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Resolved: (FELIX-521) MetaType - optionValues check

Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Felix Meschberger resolved FELIX-521.
-------------------------------------

    Resolution: Fixed

Thanks for reporting this issue. I fixed it in Rev. 641206 by ignoring empty option value arrays.

Please close, if this is ok for you. Thanks.

> MetaType - optionValues check
> -----------------------------
>
>                 Key: FELIX-521
>                 URL: https://issues.apache.org/jira/browse/FELIX-521
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>            Reporter: Martin Thelian
>            Assignee: Felix Meschberger
>
> There is a problem in the validation of a value against option-values in "AD.validate(...)":
> |> String[] optionValues = getOptionValues();
> |> if ( optionValues != null )
> |> {
> |> [...]
> |>     // not any of the option values, fail
> |>     return VALIDATE_NOT_A_VALID_OPTION;
> |> }
> Per default the optionValues array is empty but not null. Therefore even if no options are configured the check returns VALIDATE_NOT_A_VALID_OPTION.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (FELIX-521) MetaType - optionValues check

Posted by "Carsten Ziegeler (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Carsten Ziegeler updated FELIX-521:
-----------------------------------

    Affects Version/s: metatype-1.0.0
        Fix Version/s: metatype-1.0.1

> MetaType - optionValues check
> -----------------------------
>
>                 Key: FELIX-521
>                 URL: https://issues.apache.org/jira/browse/FELIX-521
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions: metatype-1.0.0
>            Reporter: Martin Thelian
>            Assignee: Felix Meschberger
>             Fix For: metatype-1.0.1
>
>
> There is a problem in the validation of a value against option-values in "AD.validate(...)":
> |> String[] optionValues = getOptionValues();
> |> if ( optionValues != null )
> |> {
> |> [...]
> |>     // not any of the option values, fail
> |>     return VALIDATE_NOT_A_VALID_OPTION;
> |> }
> Per default the optionValues array is empty but not null. Therefore even if no options are configured the check returns VALIDATE_NOT_A_VALID_OPTION.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Closed: (FELIX-521) MetaType - optionValues check

Posted by "Martin Thelian (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/FELIX-521?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Thelian closed FELIX-521.
--------------------------------


Sorry, I've never received an email for this. 
Thank you for the bugfix.

> MetaType - optionValues check
> -----------------------------
>
>                 Key: FELIX-521
>                 URL: https://issues.apache.org/jira/browse/FELIX-521
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions: metatype-1.0.0
>            Reporter: Martin Thelian
>            Assignee: Felix Meschberger
>             Fix For: metatype-1.0.1
>
>
> There is a problem in the validation of a value against option-values in "AD.validate(...)":
> |> String[] optionValues = getOptionValues();
> |> if ( optionValues != null )
> |> {
> |> [...]
> |>     // not any of the option values, fail
> |>     return VALIDATE_NOT_A_VALID_OPTION;
> |> }
> Per default the optionValues array is empty but not null. Therefore even if no options are configured the check returns VALIDATE_NOT_A_VALID_OPTION.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.