United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: 6265713 Having a query string to a jnlp file negates the SingleInstanceService
6265713 : Having a query string to a jnlp file negates the SingleInstanceService

Details
Type:
Bug
Submit Date:
2005-05-05
Status:
Resolved
Updated Date:
2010-04-26
Project Name:
JDK
Resolved Date:
2005-05-25
Component:
deploy
OS:
windows_xp
Sub-Component:
webstart
CPU:
x86
Priority:
P2
Resolution:
Fixed
Affected Versions:
5.0
Fixed Versions:
6

Related Reports
Backport:
Relates:
Relates:

Sub Tasks

Description
J2SE Version (please include all output from java -version flag):

  java version "1.5.0_03"
  Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_03-b07)
  Java HotSpot(TM) Client VM (build 1.5.0_03-b07, mixed mode, sharing)

Does this problem occur on J2SE 1.3, 1.4.x or 1.5?  Yes / No (pick one)
  1.5

Operating System Configuration Information (be specific):
  Windows XP

Bug Description:
  Having a query string to a jnlp file negates the SingleInstanceService.  
  This is a total show stopper for us.  We wanted to use a new link with 
  a query string to modify the current state of our running program.  
  If this does not work, we don't really have a solution to the problem 
  we are trying to solve.

Steps to Reproduce (be specific):
  * Create a webstart enabled application that implements the SingleInstanceListener
    and registers itself appropriately
  * Create a servlet to process JNLP files
	Servlet will detect a query string on the jnlp request
	If a query string is detected, it will modifiy the JNLP file
		The "href" attribute of the "jnlp" tag altered to show the query string 
		For example, 
			<jnlp 
				spec="1.0+" 
				codebase="http://k9.dev.donnell.com:8084/" 
				href="[original href]?[query string]">
  * Run the webstart program with a link that does not contain a query string.
  * While that program is still running, click on the same link again.
  * RESULT: theActivation(String[] args) method will be called in the original
    instance...SUCCESS

  * Run the webstart program again, this time from a link that does contain a 
    query string.
  * While that program is still running, click on the same link again.
  * RESULT: SingleInstanceService will be ignored and a new instance will
    start...FAILURE

  No matter what we do, having a query string nullifies the SingleInstance
  functionality
###@###.### 2005-05-05 02:30:18 GMT

                                    

Comments
EVALUATION

problem is we are trying to create the single instance file with "?" in the filename, which fails on windows.

when generating the single instance filename from the jnlp href, we should remove the query part from the href first.

fix in mustang
###@###.### 2005-05-05 23:55:21 GMT
                                     
2005-05-05
SUGGESTED FIX

http://web-east.east/deployment/www/webrevs/ngthomas/6265713/webrev/
###@###.### 2005-05-05 23:55:22 GMT
                                     
2005-05-05



Hardware and Software, Engineered to Work Together