JDK-6435319 : MalformedURLException when SYSTEMID value is korean character relative url.
  • Type: Bug
  • Component: xml
  • Sub-Component: jaxp
  • Affected Version: 6
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-06-07
  • Updated: 2012-06-09
  • Resolved: 2006-07-17
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 6
6 b92Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
java version "1.6.0-beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.6.0-beta-b59g)
Java HotSpot(TM) Client VM (build 1.6.0-beta-b59g, mixed mode, sharing)

ADDITIONAL OS VERSION INFORMATION :
Windows XP home edition sp2 Korean

A DESCRIPTION OF THE PROBLEM :
If a xml file has a DOCTYPE and the SYSTEMID of DOCTYPE has a korean character relative url, MalformedException occurs during parsing. I guess that the same problem will occur if japanese or chinese character is used in SYSTEMID. This does not occur in JDK 1.4.2 with its internal crimson parser.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Test case needs only 3 files.
1. Test.java
2. .dtd (file name is a Korean character)
3. test.xml
all of which are in the same directory.

in console, please prompt as follows
1. javac Test.java
2. java Test

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
DocumentBuilder successfully parses the xml file according to the dtd file which is the Korean file name.
ACTUAL -
java.net.MalformedURLException exception thrown

ERROR MESSAGES/STACK TRACES THAT OCCUR :
Attached seperatly

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
Attached seperatly
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
We've suggested the bug patch at apache xerces project (XERCESJ-1156). (http://issues.apache.org/jira/browse/XERCESJ-1156)

Comments
EVALUATION this will be checked against the XML & URI specs and acted on.
22-06-2006