JDK-6961984 : jarsigner fails to sign jar file since JDK1.6u20, it works with JDK1.6u14
  • Type: Bug
  • Component: tools
  • Sub-Component: jar
  • Affected Version: 6u10
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_7
  • CPU: x86
  • Submitted: 2010-06-17
  • Updated: 2012-03-20
  • Resolved: 2010-08-19
Related Reports
Duplicate :  
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.

Comments
EVALUATION No answer from customer. Close now.
19-08-2010

EVALUATION Looks like a dup of 6948909. I've asked the customer for confirmation.
09-07-2010