You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Alexei Fedotov (JIRA)" <ji...@apache.org> on 2009/03/20 15:18:50 UTC

[jira] Resolved: (HARMONY-5473) [classlib][archive] Manifest file with empty line proves IOException

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

Alexei Fedotov resolved HARMONY-5473.
-------------------------------------

    Resolution: Fixed

I have rewritten all the related code as a part of HARMONY-4569.

> [classlib][archive] Manifest file with empty line proves IOException
> --------------------------------------------------------------------
>
>                 Key: HARMONY-5473
>                 URL: https://issues.apache.org/jira/browse/HARMONY-5473
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Evgeniya Maenkova
>            Assignee: Alexey Petrenko
>            Priority: Critical
>         Attachments: archive.patch, archive.patch, hyts_manifest1.mf, MANIFEST.MF, MANIFEST2.MF
>
>
> I cannot start some of my apps, because their jar-files contain manifests with empty lines, proving IOException on Harmony.
> The situation can be reproduced by manifest file  with empty line creation and invoking new Manifest(InputStream). Manifest files which proves this will be attached.
> Test case output:
> $ /cygdrive/c/Harmony_to_run/trunk/working_vm/build/win_ia32_msvc_release/deploy/jdk/jre/bin/java  Test MANIFEST2.MF
> Uncaught exception in main:
> java.io.IOException: Invalid attribute
>         at java.util.jar.InitManifest.addAttribute(InitManifest.java:282)
>         at java.util.jar.InitManifest.<init>(InitManifest.java:71)
>         at java.util.jar.Manifest.read(Manifest.java:173)
>         at java.util.jar.Manifest.<init>(Manifest.java:76)
>         at Test.main(Test.java:8)
> $ /cygdrive/w/UBS/Builds/jdk1.6.0_win32/bin/java Test MANIFEST2.MF
> end
> Test case is:
> import java.io.FileInputStream;
> import java.util.jar.Manifest;
> public class Test {
>     public static void main(String[] args) throws Exception {
> 		String fileName = args[0];
> 		FileInputStream fs = new FileInputStream(fileName);
>         Manifest m = new Manifest(fs);   		
> 		fs.close();		
> 		System.out.println("end");
> 	}
> }

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.