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:08:11 UTC
[jira] [Created] (FELIX-3756) MetaType AD.validate() regards
invalid input as absent input
J.W. Janssen created FELIX-3756:
-----------------------------------
Summary: 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
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
[jira] [Resolved] (FELIX-3756) MetaType AD.validate() regards
invalid input as absent input
Posted by "J.W. Janssen (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/FELIX-3756?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
J.W. Janssen resolved FELIX-3756.
---------------------------------
Resolution: Fixed
Assignee: J.W. Janssen
Committed a fix + testcase in rev #1409877.
Please review...
> 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
>
> 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
[jira] [Updated] (FELIX-3756) MetaType AD.validate() regards
invalid input as absent input
Posted by "Felix Meschberger (JIRA)" <ji...@apache.org>.
[ 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
[jira] [Updated] (FELIX-3756) MetaType AD.validate() regards
invalid input as absent input
Posted by "J.W. Janssen (JIRA)" <ji...@apache.org>.
[ 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