JDK-6272251 : jarsigner crashes with NullPointerException on a filename having german umlauts
  • Type: Bug
  • Component: security-libs
  • Sub-Component: java.security
  • Affected Version: 1.4.2
  • Priority: P3
  • Status: Closed
  • Resolution: Not an Issue
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2005-05-18
  • Updated: 2011-02-16
  • Resolved: 2009-06-30
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7Resolved
Related Reports
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.4.2_06"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2_06-b03)
Java HotSpot(TM) Client VM (build 1.4.2_06-b03, mixed mode)


ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

A DESCRIPTION OF THE PROBLEM :
When trying to sign a jar file, which contains a file having german umlauts in its filename, the jarsigner crashes.

The error message is:
jarsigner error: java.lang.NullPointerException

Java 5 does not fix this problem.


ERROR MESSAGES/STACK TRACES THAT OCCUR :
jarsigner error: java.lang.NullPointerException

REPRODUCIBILITY :
This bug can be reproduced always.
###@###.### 2005-05-18 08:27:07 GMT

Comments
EVALUATION Closed as NOT-A-DEFECT. Unlike a zip file, the jar file's entry names must be UTF-8 encoded, therefore it should be maintained by the jar/jarsigner command only for safety.
30-06-2009

EVALUATION New constructor(s) ZipFile(...,Charset cs) have been intorduced in JDK7 to address non-UTF-8 file name/comment issues described in #4244499. Transfer the bug back to security to decide how to use the newly introduced constructor to solve this particular issue in jarsigner.
12-05-2009

EVALUATION This will be addressed in Dolphin, along with other character encoding / zip file related bugs.
01-12-2005

EVALUATION The problem here goes down to -- ZipFile zf =.... for (Enumeration enum_=zf.entries();enum_.hasMoreElements();) { ZipEntry ze = (ZipEntry)enum_.nextElement(); InputStream istream = zf.getInputStream(ze); istream is null when ze contains the German umlaut
15-08-2005

EVALUATION This functionality appears to be maintained by the security team in the classes_security sub_category; reassigning.
10-08-2005