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 Luht (JIRA)" <ji...@apache.org> on 2006/10/03 17:08:21 UTC

[jira] Created: (HARMONY-1678) junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails 
------------------------------------------------------------------------------------------

                 Key: HARMONY-1678
                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Windows XP IA32
            Reporter: Anton Luht
            Priority: Minor
         Attachments: Test.java

Build:
svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build

4 test cases fail in Unit test 
EncryptedPrivateKeyInfoTest 

Unfortunately I can't tell why they fail because they do something too complicated for me :)

Please see a standalone test attached - in RI it prints nothing while on Harmony it prints

AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
resent valid PKCS#8 PrivateKeyInfo

DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
resent valid PKCS#8 PrivateKeyInfo

RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
resent valid PKCS#8 PrivateKeyInfo

1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
ed data does not represent valid PKCS#8 PrivateKeyInfo



-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

Posted by "Elena Semukhina (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1678?page=comments#action_12441448 ] 
            
Elena Semukhina commented on HARMONY-1678:
------------------------------------------

While Anton is on vacation I can confirm that tests passed on windows as well.


> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>         Assigned To: Mikhail Loenko
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Egor Pasko updated HARMONY-1678:
--------------------------------

    Attachment: JETKiller.java

reduced test (JETKiller.java) attached. method runSequence is compiled incorrectly by JET, moving compilation of this method to OPT makes the test PASS.

> junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Stepan Mishura updated HARMONY-1678:
------------------------------------

        Summary: [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails  (was: junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails)
    Component/s: DRLVM
                     (was: Classlib)

> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

Posted by "Egor Pasko (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1678?page=comments#action_12440332 ] 
            
Egor Pasko commented on HARMONY-1678:
-------------------------------------

this method:
org/apache/harmony/security/asn1/BerInputStream::readSequence(Lorg/apache/harmony/security/asn1/ASN1Sequence;)V

if moved to OPT, test passes

> junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1678?page=comments#action_12441097 ] 
            
Alexey Varlamov commented on HARMONY-1678:
------------------------------------------

I tried this patch on Linux Suse 9, works fine. Thanks!

> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Mikhail Loenko resolved HARMONY-1678.
-------------------------------------

    Resolution: Fixed

the latest patch applied in revision 462758
Anton, please check that it fully resolves the issue

> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>         Assigned To: Mikhail Loenko
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Anton Luht updated HARMONY-1678:
--------------------------------

    Attachment: Test.java

> junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1678?page=comments#action_12439719 ] 
            
Alexey Varlamov commented on HARMONY-1678:
------------------------------------------

I tried the attached test on Linux and it fails on JET only, OPT and interpreter pass normally.

> junit test org.apache.harmony.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> -----------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

Posted by "Alexei Fedotov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1678?page=comments#action_12440595 ] 
            
Alexei Fedotov commented on HARMONY-1678:
-----------------------------------------

[drlvm][unit] Blocks http://wiki.apache.org/harmony/Unit_Tests_Pass_on_DRLVM 

I played with the test a bit and cannot simplify more - thanks, Egor, for this piece of art. On Linux the test fails as well. 


> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
    [ http://issues.apache.org/jira/browse/HARMONY-1678?page=comments#action_12441048 ] 
            
Alexey Varlamov commented on HARMONY-1678:
------------------------------------------

Patch does not apply at 454621...

> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Alex Astapchuk updated HARMONY-1678:
------------------------------------

    Attachment: harmony_1678_1724_fix.patch

The fix is attached. 

The problem was that .jet-generated code did not save a variable (the endOffset in the test) into memory.

The fix also covers HARMONY-1724.

Not sure, which tests to run to verify the fix: I tried to run 'build.sh test' and got number of failures even w/o my fix.

Anyway, the attached JETKiller passes, the test from HARMONY-1724 passes and I also checked Win32 & Lin32 builds.



> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Mikhail Loenko reassigned HARMONY-1678:
---------------------------------------

    Assignee: Mikhail Loenko

> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>         Assigned To: Mikhail Loenko
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

-- 
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-1678) [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails

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

Alex Astapchuk updated HARMONY-1678:
------------------------------------

    Attachment: harmony_1678_1724_fix.patch

The same patch against latest SVN (the previous conflicted with HARMONY-1681).

> [DRLVM] junit test o.a.h.crypto.tests.javax.crypto.EncryptedPrivateKeyInfoTest fails
> ------------------------------------------------------------------------------------
>
>                 Key: HARMONY-1678
>                 URL: http://issues.apache.org/jira/browse/HARMONY-1678
>             Project: Harmony
>          Issue Type: Bug
>          Components: DRLVM
>         Environment: Windows XP IA32
>            Reporter: Anton Luht
>            Priority: Minor
>         Attachments: harmony_1678_1724_fix.patch, harmony_1678_1724_fix.patch, JETKiller.java, Test.java
>
>
> Build:
> svn = r452457, (Oct  3 2006), Windows/ia32/msvc 1310, debug build
> 4 test cases fail in Unit test 
> EncryptedPrivateKeyInfoTest 
> Unfortunately I can't tell why they fail because they do something too complicated for me :)
> Please see a standalone test attached - in RI it prints nothing while on Harmony it prints
> AES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> DES, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> RC4, nulljava.security.spec.InvalidKeySpecException: Decrypted data does not rep
> resent valid PKCS#8 PrivateKeyInfo
> 1.2.840.113549.1.12.1.3, nulljava.security.spec.InvalidKeySpecException: Decrypt
> ed data does not represent valid PKCS#8 PrivateKeyInfo

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