United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6888876 improve error handling of webstart/plugin XML parser
JDK-6888876 : improve error handling of webstart/plugin XML parser

Details
Type:
Bug
Submit Date:
2009-10-06
Status:
Closed
Updated Date:
2010-09-16
Project Name:
JDK
Resolved Date:
2010-06-01
Component:
deploy
OS:
generic
Sub-Component:
deployment_toolkit
CPU:
generic
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u18
Fixed Versions:
6u21 (b01)

Related Reports
Backport:
Duplicate:

Sub Tasks

Description
our XML parsing of JNLP files is not robust enough.  sometimes when JNLP files has syntax error, we did not report error and just ignore and continue.  instead, we should report error to user instead.

e.g  missing /> in <applet-desc> or <update>

see JIRA issue:  http://javafx-jira.kenai.com/browse/RT-4843

Our JNLP XML parser should be able to catch these error and report to user; instead of ignoring the error and continue to launch.

                                    

Comments
EVALUATION

for example, our XML parser should be able to detect error in this JNLP file:

<?xml version="1.0" encoding="UTF-8"?>
<jnlp spec="1.0+" codebase="http://www.vancouver2010.com/ns/javafx/MedalVisualizer/" href="snowapp_browser.jnlp">
    <information>
        <title>snowapp</title>
        <vendor>EffectiveUI</vendor>
        <homepage href=""/>
        <description>snowapp</description>
        <offline-allowed/>
        <shortcut>
            <desktop/>
        </shortcut>
    </information>
    <resources>
        <j2se version="1.5+"/>
        <extension name="JavaFX Runtime" href="http://dl.javafx.com/1.2/javafx-rt.jnlp"/>
        <jar href="snowapp.jar" main="true"/>
        <jar href="lib/json_simple-1.1.jar"/>
    </resources>
    <applet-desc name="snowapp" main-class="com.sun.javafx.runtime.adapter.Applet" width="990" height="600">
        <param name="MainJavaFXScript" value="com.effectiveui.snow.Main">
    </applet-desc>
    <update check="background"/>
</jnlp>


Problem is <param> is missing "/" in the end.   We should detect this and print out alert.
                                     
2009-12-16
EVALUATION

We will alert in the java console. The execution will not be stopped because there are existing malformed (jfx pacakge, and netbeans generated malformed jnlp files) jnlp files on the web. We don't want to them to stop work in 6u20.
                                     
2010-02-23



Hardware and Software, Engineered to Work Together