#77 "Login again" doesn't work if document base has query args

open
nobody
None
5
2006-11-03
2006-11-03
Paul Marquis
No

By default, the Java VncViewer applet can relogin if
the connection to the VNC server terminates. When the
connection terminates, a "Login again" button is
displayed to the user. When pressed, this button will
reload the page hosting the Java applet.

If the page hosting the Java applet has query args
(i.e.,
http://foo.com/applet.jsp?key1=value1&key2=value2\), the
query args are dropped from the reload request (i.e.,
http://foo.com/applet.jsp\). This can cause problems
when the page requires the query args.

Attached is a patch to solve this. It uses JavaScript
objects to get the full URL including query args. If
this fails, it reverts to the original behavior to get
the document base through the applet object.

Also included is a simple Makefile change to determine
the location of plugin.jar in the JDK/JRE. This JAR
file defines the JSObject class used in the patch.
This patch is against the released version of 1.3.8 (I
couldn't find the trunk in Subversion).

Discussion

  • Paul Marquis
    Paul Marquis
    2006-11-03

    Unified diff against 1.3.8

     
    Attachments