Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6948909

Jarsigner removes MANIFEST.MF info for badly packages jar's

    Details

    • Subcomponent:
    • Introduced In Build:
      b04
    • Introduced In Version:
    • Resolved In Build:
      b05
    • CPU:
      x86
    • OS:
      linux, linux_ubuntu, windows_7

      Backports

        Description

        FULL PRODUCT VERSION :
        java version "1.6.0_20"
        Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
        Java HotSpot(TM) Server VM (build 16.3-b01, mixed mode)


        ADDITIONAL OS VERSION INFORMATION :
        Linux smlwx010 2.6.32-21-generic #32-Ubuntu SMP Fri Apr 16 08:10:02 UTC 2010 i686 GNU/Linux

        EXTRA RELEVANT SYSTEM CONFIGURATION :
        Ubuntu provided SUN JDK packages

        A DESCRIPTION OF THE PROBLEM :
        Signing a jar file with MANIFEST.MF not as first entry or containing INDEX.LIST without the manifest in there causes all manifest information to be lost after siging. This was not the case in java 1.6.0_16

        I have found similar issues but none describe this regression.

        This issue causes some of our legacy OSGi-compatible jars to be broken after signing.

        STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
        Create a jar file using a zip tool and cause the META-INF/MANIFEST.MF not to be the first file.
        Sign it
        Compare initial MANIFEST.MF with signed MANIFEST.MF

        EXPECTED VERSUS ACTUAL BEHAVIOR :
        EXPECTED -
        no difference (except for signing info)
        ACTUAL -
        Only signing info in signed manifest, all initial info lost

        REPRODUCIBILITY :
        This bug can be reproduced always.

        CUSTOMER SUBMITTED WORKAROUND :
        reassemble the incorrectly packaged jar

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  weijun Weijun Wang
                  Reporter:
                  ndcosta Nelson Dcosta (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:
                    Imported:
                    Indexed: