You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "J.W. Janssen (JIRA)" <ji...@apache.org> on 2012/11/15 14:10:12 UTC

[jira] [Updated] (FELIX-3756) MetaType AD.validate() regards invalid input as absent input

     [ https://issues.apache.org/jira/browse/FELIX-3756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

J.W. Janssen updated FELIX-3756:
--------------------------------

          Component/s: Metatype Service
    Affects Version/s:  metatype-1.0.6
    
> MetaType AD.validate() regards invalid input as absent input
> ------------------------------------------------------------
>
>                 Key: FELIX-3756
>                 URL: https://issues.apache.org/jira/browse/FELIX-3756
>             Project: Felix
>          Issue Type: Bug
>          Components: Metatype Service
>    Affects Versions:  metatype-1.0.6
>            Reporter: J.W. Janssen
>            Priority: Minor
>
> If an attribute is not mandatory, the validate() method of its AttributeDefinition will regard an invalid input the same as absent input. 
> For example, consider an optional integer attribute. For an input "abc", its validate() method returns "". This is a bit unfortunate as it can cause invalid data to be fed into the system.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira