RafficMaleo / openwonderland

Automatically exported from code.google.com/p/openwonderland
GNU General Public License v2.0
1 stars 0 forks source link

Java7 on Windows7 does not support JNLP URLs containing query string #303

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Construct a URL containing a JNLP + a query string, such as 
http://owf1.virtualnorthstar.org:8080/wonderland-web-front/app/Wonderland.jnlp?f
oo=bar
2. Using IE or Firefox on Win7 using Java7, download the document referenced by 
the URL to give a JNLP file named Wonderland.jnlp (example given in attachment).
3. Try executing the file using javaws Wonderland.jnlp

What is the expected output? What do you see instead?
I expect the JNLP file to be read and executed. Instead it fails silently.

The problem appears to be that the <jnlp> section of the JNLP file contains an 
href to "Wonderland.jnlp?x=0.0&amp;y=1.0250003&amp;z=-4.724328&amp;look=0.0", 
which Java7 balks at (it is expecting an href of "Wonderland.jnlp"). This is 
inserted into the JNLP file via class JnlpFileHandler, as part of the JNLP 
substition mechanism. See [1] for the code, which we don't have. Apparently, 
Java6 doesn't have this problem. 

Suggested fix? Not really sure, other than getting the JnlpFileHandler source 
and hacking it.

This is a showstopper for our project, as we can no longer pass in the location 
of cells in the URL for users to jump straight to the cell from a URL.

[1] 
http://java.net/nonav/projects/deployment/lists/commits/archive/2011-04/message/
5 

Original issue reported on code.google.com by bernho...@gmail.com on 21 Sep 2012 at 8:30

Attachments:

GoogleCodeExporter commented 9 years ago
This may be relevant:

http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=7191616

Original comment by nicole.m...@gmail.com on 24 Oct 2012 at 6:59

GoogleCodeExporter commented 9 years ago
Hello,

The problem indeed happens since Java 7u45 in Java 7u40 or below it works 
correctly. Maybe when the issue was reported it didn't work. Currently it 
stills write the href like in the issue body but works.

Since Java 7u45 it happens due to the mandatory change that every property to 
Java WS must begin with jnlp.

Since Java 7u45 it enters in the default location regardless the url parameters

Original comment by crrami...@gmail.com on 31 Jan 2014 at 9:12

GoogleCodeExporter commented 9 years ago
Here the patch. With it the location problem is solved in Java 1.7_u45 and 51

Original comment by crrami...@gmail.com on 6 Feb 2014 at 3:48

Attachments: