felix-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Felix Meschberger (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (FELIX-3756) MetaType AD.validate() regards invalid input as absent input
Date Fri, 16 Nov 2012 07:02:12 GMT

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

Felix Meschberger updated FELIX-3756:
-------------------------------------

    Fix Version/s: metatype-1.0.8
    
> 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
>            Assignee: J.W. Janssen
>            Priority: Minor
>             Fix For: metatype-1.0.8
>
>
> 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

Mime
View raw message