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

jarsigner fails to sign jar file since JDK1.6u20, it works with JDK1.6u14

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P2
    • Resolution: Duplicate
    • Affects Version/s: 6u10
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
    • Subcomponent:
      jar
    • CPU:
      x86
    • OS:
      windows_7

      Description

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

      and

      java version "1.6.0_20"
      Java(TM) SE Runtime Environment (build 1.6.0_20-b02)
      Java HotSpot(TM) Client VM (build 16.3-b01, mixed mode, sharing)




      ADDITIONAL OS VERSION INFORMATION :
      windows 7 64 bit and windows XP 32 bit

      A DESCRIPTION OF THE PROBLEM :
      When i try sign file (from eclipse Babel project) the jarsigner clenas the manifest.mf file:

      for example - singing "org.eclipse.core.commands.nl_pl_3.5.0.v20091121043401.jar" file


      manifest content before singing:


      Manifest-Version: 1.0
      Bundle-Name: org.eclipse.core.commands Polish NLS Support
      Bundle-SymbolicName: org.eclipse.core.commands.nl_pl ;singleton=true
      Bundle-Version: 3.5.0.v20091121043401
      Bundle-Vendor: Eclipse.org
      Fragment-Host: org.eclipse.core.commands



      manifest content after singing:

      Name: about.html
      SHA1-Digest: VpXXGnjM0HeeD/l2/5T0GziCHVE=
       
      Name: plugin_pl.properties
      SHA1-Digest: 3nTMKiwAarnaHcW4i1xiy2MH89Y=





      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      download file: org.eclipse.core.commands.nl_pl_3.5.0.v20091121043401.jar or other file from Eclipse Babel project and execute command:

      jarsigner -keystore your.keystore org.eclipse.core.commands.nl_pl_3.5.0.v20091121043401.jar yourAlias


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Signed jar file with correct manifest.mf file
      ACTUAL -
      Signed jar file with malformed manifets.mf file

      ERROR MESSAGES/STACK TRACES THAT OCCUR :
      no error messages

      REPRODUCIBILITY :
      This bug can be reproduced always.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              weijun Weijun Wang
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: