You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2006/12/18 11:06:24 UTC

[jira] Commented: (HARMONY-2761) [classlib][security] Security.getProviders throws NumberFormatException unexpectedly

    [ http://issues.apache.org/jira/browse/HARMONY-2761?page=comments#action_12459250 ] 
            
Leo Li commented on HARMONY-2761:
---------------------------------

Hi, all:
      When fixing the bug, I encountered such a problem:
at Provider 314:
      
      getProperty("Signature.SHA1withDSA KeySize")) returns null thus incurs the NumberFormatException.

But if such property of the provider is null, shall we regard the provider supplies the service that the filter of  Security.getProviders requires?

If not, current Harmony has no matching provider.

If so, the provider that without the property "Signature.SHA1withDSA KeySize" will be legal for any keysize.

Besides, RI has a matching provider called "SUN version 1.5" with "Signature.SHA1withDSA KeySize" of 1024. So I suppose that current Harmony might have no matching provider.

Any suggestion?

> [classlib][security] Security.getProviders throws NumberFormatException unexpectedly
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2761
>                 URL: http://issues.apache.org/jira/browse/HARMONY-2761
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Stepan Mishura
>
> Here is a testcase:
> public void testgetProviders()
> {
>     Provider[] providers = Security.getProviders("Signature.SHA1withDSA KeySize:512");
> }
> RI passes.
> Harmony fails with throwing NumberFormatException.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira