You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@felix.apache.org by "Carsten Ziegeler (JIRA)" <ji...@apache.org> on 2018/06/12 08:56:00 UTC

[jira] [Updated] (FELIX-5863) Config Admin doesn't report Number format exception

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

Carsten Ziegeler updated FELIX-5863:
------------------------------------
    Component/s:     (was: Configuration Admin)
                 Web Console

> Config Admin doesn't report Number format exception
> ---------------------------------------------------
>
>                 Key: FELIX-5863
>                 URL: https://issues.apache.org/jira/browse/FELIX-5863
>             Project: Felix
>          Issue Type: Bug
>          Components: Web Console
>    Affects Versions: webconsole-4.3.4
>            Reporter: Alain Picard
>            Priority: Minor
>
> Configured attribute with numberic types (integer or long) and it let the user enter non-numeric value and never raises any error or message.
>  
> Seems that code just ignores it:
> {code:java}
> try
> {
>     props.put( propName, MetaTypeSupport.toType( attributeType, prop ) );
> }
> catch ( NumberFormatException nfe )
> {
>    // don't care
> }
> {code}
> This obviously is not very informative.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)