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 2007/03/19 11:04:32 UTC
[jira] Created: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
[classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
----------------------------------------------------------------------------------------------------------------------------------------------------------------
Key: HARMONY-3424
URL: https://issues.apache.org/jira/browse/HARMONY-3424
Project: Harmony
Issue Type: Bug
Components: Classlib
Reporter: Leo Li
Here is an example:
public void testGetCerificates() throws Exception
{
JarFile jarFile = new JarFile("bcprov.jar");
JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
InputStream in = jarFile.getInputStream(entry1);
byte[] data = new byte[1024];
while(in.read(data)>=0);
in.close();
assertNotNull(entry1.getCertificates());
assertNotNull(entry2.getCertificates());
}
RI passes.
Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Closed: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov closed HARMONY-3424.
------------------------------------
The fix was verified by Leo. JIRA closed.
> [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3424
> URL: https://issues.apache.org/jira/browse/HARMONY-3424
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Assigned To: Alexei Zakharov
> Attachments: patch-3424.diff
>
>
> Here is an example:
> public void testGetCerificates() throws Exception
> {
> JarFile jarFile = new JarFile("bcprov.jar");
> JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> InputStream in = jarFile.getInputStream(entry1);
> byte[] data = new byte[1024];
> while(in.read(data)>=0);
> in.close();
>
> assertNotNull(entry1.getCertificates());
> assertNotNull(entry2.getCertificates());
>
> }
> RI passes.
> Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li updated HARMONY-3424:
----------------------------
Attachment: patch-3424.diff
Hi,
Will somebody try this?
Thanks,
Leo
> [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3424
> URL: https://issues.apache.org/jira/browse/HARMONY-3424
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Attachments: patch-3424.diff
>
>
> Here is an example:
> public void testGetCerificates() throws Exception
> {
> JarFile jarFile = new JarFile("bcprov.jar");
> JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> InputStream in = jarFile.getInputStream(entry1);
> byte[] data = new byte[1024];
> while(in.read(data)>=0);
> in.close();
>
> assertNotNull(entry1.getCertificates());
> assertNotNull(entry2.getCertificates());
>
> }
> RI passes.
> Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Assigned: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov reassigned HARMONY-3424:
----------------------------------------
Assignee: Alexei Zakharov
> [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3424
> URL: https://issues.apache.org/jira/browse/HARMONY-3424
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Assigned To: Alexei Zakharov
> Attachments: patch-3424.diff
>
>
> Here is an example:
> public void testGetCerificates() throws Exception
> {
> JarFile jarFile = new JarFile("bcprov.jar");
> JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> InputStream in = jarFile.getInputStream(entry1);
> byte[] data = new byte[1024];
> while(in.read(data)>=0);
> in.close();
>
> assertNotNull(entry1.getCertificates());
> assertNotNull(entry2.getCertificates());
>
> }
> RI passes.
> Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Updated: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li updated HARMONY-3424:
----------------------------
Patch Info: [Patch Available]
> [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3424
> URL: https://issues.apache.org/jira/browse/HARMONY-3424
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Attachments: patch-3424.diff
>
>
> Here is an example:
> public void testGetCerificates() throws Exception
> {
> JarFile jarFile = new JarFile("bcprov.jar");
> JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> InputStream in = jarFile.getInputStream(entry1);
> byte[] data = new byte[1024];
> while(in.read(data)>=0);
> in.close();
>
> assertNotNull(entry1.getCertificates());
> assertNotNull(entry2.getCertificates());
>
> }
> RI passes.
> Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Resolved: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
Posted by "Alexei Zakharov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexei Zakharov resolved HARMONY-3424.
--------------------------------------
Resolution: Fixed
Thanks Leo. The patch was applied at the revision 520935. Please check that everything is ok.
> [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3424
> URL: https://issues.apache.org/jira/browse/HARMONY-3424
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Assigned To: Alexei Zakharov
> Attachments: patch-3424.diff
>
>
> Here is an example:
> public void testGetCerificates() throws Exception
> {
> JarFile jarFile = new JarFile("bcprov.jar");
> JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> InputStream in = jarFile.getInputStream(entry1);
> byte[] data = new byte[1024];
> while(in.read(data)>=0);
> in.close();
>
> assertNotNull(entry1.getCertificates());
> assertNotNull(entry2.getCertificates());
>
> }
> RI passes.
> Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
[jira] Commented: (HARMONY-3424)
[classlib][archive]java.util.jar.JarEntry fails to get certificate while
another instance jarEntry of the same jarFile has readed all the data of
the same entry
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3424?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12482989 ]
Leo Li commented on HARMONY-3424:
---------------------------------
Hi, Alexei:
Verified. Thank you.
Good luck,
Leo
> [classlib][archive]java.util.jar.JarEntry fails to get certificate while another instance jarEntry of the same jarFile has readed all the data of the same entry
> ----------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3424
> URL: https://issues.apache.org/jira/browse/HARMONY-3424
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Assigned To: Alexei Zakharov
> Attachments: patch-3424.diff
>
>
> Here is an example:
> public void testGetCerificates() throws Exception
> {
> JarFile jarFile = new JarFile("bcprov.jar");
> JarEntry entry1 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> JarEntry entry2 = (JarEntry) jarFile.getEntry("org/bouncycastle/asn1/DEREnumerated.class");
> InputStream in = jarFile.getInputStream(entry1);
> byte[] data = new byte[1024];
> while(in.read(data)>=0);
> in.close();
>
> assertNotNull(entry1.getCertificates());
> assertNotNull(entry2.getCertificates());
>
> }
> RI passes.
> Harmony fails.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.