You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Anton Rusanov (JIRA)" <ji...@apache.org> on 2006/10/20 10:10:34 UTC

[jira] Created: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

[classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
---------------------------------------------------------------------------------------------

                 Key: HARMONY-1927
                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Anton Rusanov
            Priority: Minor


The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
The test reproduces the problem: 

import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 

public class URItest { 
    public static void main(String[] args) throws Exception { 
            KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
                    "pwd".toCharArray(), null);
            KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
                    .toCharArray(), false);
     } 
} 
The patch fixes the problem. 

-- 
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

        

[jira] Commented: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

Posted by "Anton Rusanov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1927?page=comments#action_12444192 ] 
            
Anton Rusanov commented on HARMONY-1927:
----------------------------------------

It was done as expected. Thanks Stepan.

> [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1927
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Rusanov
>         Assigned To: Stepan Mishura
>            Priority: Minor
>         Attachments: patch.txt, regression_test_patch.txt
>
>
> The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
> The test reproduces the problem: 
> import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 
> public class URItest { 
>     public static void main(String[] args) throws Exception { 
>             KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
>                     "pwd".toCharArray(), null);
>             KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
>                     .toCharArray(), false);
>      } 
> } 
> The patch fixes the problem. 

-- 
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

        

[jira] Resolved: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1927?page=all ]

Stepan Mishura resolved HARMONY-1927.
-------------------------------------

    Resolution: Fixed

Thanks Anton - the patch was applied to TOOLS module at r466095.

Please check that the patch was applied as you expected.

> [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1927
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Rusanov
>         Assigned To: Stepan Mishura
>            Priority: Minor
>         Attachments: patch.txt, regression_test_patch.txt
>
>
> The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
> The test reproduces the problem: 
> import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 
> public class URItest { 
>     public static void main(String[] args) throws Exception { 
>             KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
>                     "pwd".toCharArray(), null);
>             KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
>                     .toCharArray(), false);
>      } 
> } 
> The patch fixes the problem. 

-- 
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

        

[jira] Updated: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

Posted by "Anton Rusanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1927?page=all ]

Anton Rusanov updated HARMONY-1927:
-----------------------------------

    Attachment: regression_test_patch.txt

Regression test.

> [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1927
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Rusanov
>            Priority: Minor
>         Attachments: patch.txt, regression_test_patch.txt
>
>
> The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
> The test reproduces the problem: 
> import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 
> public class URItest { 
>     public static void main(String[] args) throws Exception { 
>             KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
>                     "pwd".toCharArray(), null);
>             KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
>                     .toCharArray(), false);
>      } 
> } 
> The patch fixes the problem. 

-- 
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

        

[jira] Closed: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1927?page=all ]

Stepan Mishura closed HARMONY-1927.
-----------------------------------


Verified by Anton.

> [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1927
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Rusanov
>         Assigned To: Stepan Mishura
>            Priority: Minor
>         Attachments: patch.txt, regression_test_patch.txt
>
>
> The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
> The test reproduces the problem: 
> import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 
> public class URItest { 
>     public static void main(String[] args) throws Exception { 
>             KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
>                     "pwd".toCharArray(), null);
>             KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
>                     .toCharArray(), false);
>      } 
> } 
> The patch fixes the problem. 

-- 
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

        

[jira] Updated: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

Posted by "Anton Rusanov (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1927?page=all ]

Anton Rusanov updated HARMONY-1927:
-----------------------------------

    Attachment: patch.txt

> [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1927
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Rusanov
>            Priority: Minor
>         Attachments: patch.txt, regression_test_patch.txt
>
>
> The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
> The test reproduces the problem: 
> import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 
> public class URItest { 
>     public static void main(String[] args) throws Exception { 
>             KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
>                     "pwd".toCharArray(), null);
>             KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
>                     .toCharArray(), false);
>      } 
> } 
> The patch fixes the problem. 

-- 
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

        

[jira] Assigned: (HARMONY-1927) [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException

Posted by "Stepan Mishura (JIRA)" <ji...@apache.org>.
     [ http://issues.apache.org/jira/browse/HARMONY-1927?page=all ]

Stepan Mishura reassigned HARMONY-1927:
---------------------------------------

    Assignee: Stepan Mishura

> [classlib][tools] KeyStoreLoaderSaver.saveStore(..) throws unhandled IllegalArgumentException
> ---------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1927
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1927
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Anton Rusanov
>         Assigned To: Stepan Mishura
>            Priority: Minor
>         Attachments: patch.txt, regression_test_patch.txt
>
>
> The method throws an unhandled IllegalArgumentException when a path to key-store is not an URI. 
> The test reproduces the problem: 
> import org.apache.harmony.tools.toolutils.KeyStoreLoaderSaver; 
> public class URItest { 
>     public static void main(String[] args) throws Exception { 
>             KeyStore keyStore = KeyStoreLoaderSaver.loadStore(null, "BKS",
>                     "pwd".toCharArray(), null);
>             KeyStoreLoaderSaver.saveStore(keyStore, "ksPath", "pwd"
>                     .toCharArray(), false);
>      } 
> } 
> The patch fixes the problem. 

-- 
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