Quantcast

[Bug 3227] New: Could not read or parse the JNLP file

classic Classic list List threaded Threaded
10 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] New: Could not read or parse the JNLP file

bugzilla-daemon
Bug ID 3227
Summary Could not read or parse the JNLP file
Product IcedTea-Web
Version unspecified
Hardware x86_64
OS Linux
Status NEW
Severity blocker
Priority P5
Component NetX (javaws)
Assignee jvanek@redhat.com
Reporter jeremy_spagnet@hotmail.com
CC unassigned@icedtea.classpath.org

Created attachment 1573 [details]
output from ICEDTEAPLUGIN_DEBUG=true firefox 2>&1 | tee plugin.log

I am using the java web start at the uspto.gov site
(https://ppair.uspto.gov/TruePassWebStart/AuthenticationChooser.html) 
I generated two bug report files as per the docs (one for webstart, one for
javaws, its not really clear to me what the difference is) , but only one can
be attached in this system.  This happens both using web and trying to start
javaws from the command line. (javaws uspto-auth.authenticate.jnlp,  in analogy
to solution at http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=1156) 

the following is shown in a popup :

Fatal: Read Error: Could not read or parse the JNLP file. You can try to
download this file manually and send it as a bug report to IcedTea-Web team.

net.sourceforge.jnlp.LaunchException: Fatal: Read Error: Could not read or
parse the JNLP file. You can try to download this file manually and send it as
bug report to IcedTea-Web team.
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:490)
    at net.sourceforge.jnlp.Launcher.launch(Launcher.java:286)
    at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:67)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:245)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:195)
Caused by: java.io.IOException: java.lang.NullPointerException: name can't be
null
    at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:317)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:239)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:214)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:199)
    at net.sourceforge.jnlp.JNLPFile.<init>(JNLPFile.java:185)
    at net.sourceforge.jnlp.Launcher.fromUrl(Launcher.java:454)
    ... 6 more
Caused by: java.lang.NullPointerException: name can't be null
    at java.io.FilePermission.init(FilePermission.java:191)
    at java.io.FilePermission.<init>(FilePermission.java:277)
    at java.lang.SecurityManager.checkRead(SecurityManager.java:888)
    at java.io.FileInputStream.<init>(FileInputStream.java:127)
    at net.sourceforge.jnlp.JNLPFile.openURL(JNLPFile.java:315)
    ... 11 more


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] Could not read or parse the JNLP file

bugzilla-daemon

Comment # 1 on bug 3227 from [hidden email]
the .jnlp file , with some long strings truncated :


  GNU nano 2.5.3                              File:
uspto-auth.authenticate.jnlp                                                    

<!DOCTYPE jnlp PUBLIC "-//Sun Microsystems, Inc//DTD JNLP Descriptor 6.0//EN"
"http://java.sun.com/dtd/JNLP-6.0.dtd">
<!--JNLP File for USPTO Authenticator -->
<!--  parameters: 
https://efs.uspto.gov/TruePassWebStart/=jnlp base URL, 
authenticate=authToken, 
https://efs.uspto.gov/TruePassSampleApp/servlets/AppletDownloadServlet=TruePassJarsBaseUrl, 
codebase='https://efs.uspto.gov/TruePassWebStart/'=codebase string for WebStart 
codebase='https://efs.uspto.gov/TruePassSampleApp/servlets/AppletDownloadServlet'=codebase
string for Entrust 
v.1.0.0.79 1476475649970=uspto-auth-version, 
SlNFU1NJT05JRD0xQzc2NUY3MURDRDQxQ0QyREFCMjc0NzE2NTY3NzYzNi5wcm9kX3RwdG9tY2F0MjE1X2p2bTsgX2dhPUdBMS4yLjkyMjI0NzkwMy4xNDY0MTY1MjE0OyBfX3V0bWE9MjE3MTI$
USPTO EPF Authentication Application=Title
-->
<jnlp
  spec="1.0+"
  version="v.1.0.0.79 1476475649970"
  codebase="https://efs.uspto.gov/TruePassWebStart/"
 
href="https://efs.uspto.gov/TruePassWebStart/uspto-auth.authenticate.jnlp?q=SlNFU1NJT05JRD0xQzc2NUY3MURDRDQxQ0QyREFCMjc0NzE2NTY3NzYzNi5wcm9kX3Rwd$
  <information>
    <title>USPTO EPF Authentication Application</title>
    <vendor>USPTO</vendor>
    <homepage href="https://efs.uspto.gov/TruePassWebStart/"/>
    <description>USPTO EPF Authenticator</description>
    <description kind="short">Authenticates USPTO public user with EPF
file</description>
  </information>
  <security>
    <all-permissions/>
  </security>
  <resources>
    <j2se version="1.6+"/>
    <jar href="https://efs.uspto.gov/TruePassWebStart/ws-client.jar"/>
    <extension name="Entrust Toolkit" 
href="https://efs.uspto.gov/TruePassWebStart/enttoolkit.authenticate.jnlp"  
version="8.0.36" />
  </resources>
  <application-desc main-class="gov.uspto.truepassws.client.MainCL">
    <argument>authenticate</argument>
   
<argument>SlNFU1NJT05JRD0xQzc2NUY3MURDRDQxQ0QyREFCMjc0NzE2NTY3NzYzNi5wcm9kX3RwdG9tY2F0MjE1X2p2bTsgX2dhPUdBMS4yLjkyMjI0NzkwMy4xNDY0MTY1MjE0OyBfX$
  </application-desc>
</jnlp>


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] Could not read or parse the JNLP file

bugzilla-daemon
In reply to this post by bugzilla-daemon

Comment # 2 on bug 3227 from [hidden email]
output file javaws.log, from 
javaws -verbose [problem JNLP file] 2>&1 | tee javaws.log


jeremy@jr:~$ cat javaws.log 
System is already following XDG .cache and .config specifications
config: /home/jeremy/.config/icedtea-web file exists: true
cache: /home/jeremy/.cache/icedtea-web file exists:true
java.io.FileNotFoundException:
/home/jeremy/.config/icedtea-web/deployment.properties (No such file or
directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileReader.<init>(FileReader.java:72)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.parsePropertiesFile(DeploymentConfiguration.java:661)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.findSystemConfigFile(DeploymentConfiguration.java:484)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:296)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:279)
    at
net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.initConfiguration(JNLPRuntime.java:457)
    at
net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.<clinit>(JNLPRuntime.java:452)
    at
net.sourceforge.jnlp.runtime.JNLPRuntime.getConfiguration(JNLPRuntime.java:487)
    at
net.sourceforge.jnlp.config.DirectoryValidator.<init>(DirectoryValidator.java:226)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15Structure(DeploymentConfiguration.java:836)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched(DeploymentConfiguration.java:736)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:112)

No User level deployment.properties found.
java.io.FileNotFoundException:
/home/jeremy/.config/icedtea-web/deployment.properties (No such file or
directory)
    at java.io.FileInputStream.open0(Native Method)
    at java.io.FileInputStream.open(FileInputStream.java:195)
    at java.io.FileInputStream.<init>(FileInputStream.java:138)
    at java.io.FileReader.<init>(FileReader.java:72)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.loadComments(DeploymentConfiguration.java:877)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:336)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:298)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.load(DeploymentConfiguration.java:279)
    at
net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.initConfiguration(JNLPRuntime.java:457)
    at
net.sourceforge.jnlp.runtime.JNLPRuntime$DeploymentConfigurationHolder.<clinit>(JNLPRuntime.java:452)
    at
net.sourceforge.jnlp.runtime.JNLPRuntime.getConfiguration(JNLPRuntime.java:487)
    at
net.sourceforge.jnlp.config.DirectoryValidator.<init>(DirectoryValidator.java:226)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15Structure(DeploymentConfiguration.java:836)
    at
net.sourceforge.jnlp.config.DeploymentConfiguration.move14AndOlderFilesTo15StructureCatched(DeploymentConfiguration.java:736)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:112)

WARNING: key deployment.system.cachedir has no value, setting to default value
WARNING: key deployment.system.cachedir has no value, skipping
Forcing of offline set to: false
Starting security dialog thread
Using firefox's profiles file: /home/jeremy/.mozilla/firefox/profiles.ini
Found preferences file: /home/jeremy/.mozilla/firefox/loq6u388.default/prefs.js
Read 85 entries from Firefox's preferences
Proceeding with jnlp
net.sourceforge.jnlp.util.optionparser.InvalidArgumentException: [[problem,
JNLP, file]]
    at net.sourceforge.jnlp.runtime.Boot.getMainFile(Boot.java:309)
    at net.sourceforge.jnlp.runtime.Boot.getFileLocation(Boot.java:266)
    at net.sourceforge.jnlp.runtime.JnlpBoot.run(JnlpBoot.java:67)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:245)
    at net.sourceforge.jnlp.runtime.Boot.run(Boot.java:63)
    at java.security.AccessController.doPrivileged(Native Method)
    at net.sourceforge.jnlp.runtime.Boot.main(Boot.java:195)

netx: Invalid argument:
net.sourceforge.jnlp.util.optionparser.InvalidArgumentException: [[problem,
JNLP, file]]
System logger called with result of 0
System logger called with result of 0
System logger called with result of 0


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] Could not read or parse the JNLP file

bugzilla-daemon
In reply to this post by bugzilla-daemon
[hidden email] changed bug 3227
What Removed Added
Priority P5 P3
Status NEW ASSIGNED

Comment # 3 on bug 3227 from [hidden email]
Hello!
I have looked into, and it seems that ITW have issues with :
href="https://efs.uspto.gov/TruePassWebStart/uspto-auth.authenticate.jnlp?q=SlNFU1NJT05JRD0xQzc2NUY3MURDRDQxQ0QyREFCMjc0NzE2NTY3NzYzNi5wcm9kX3Rwd...loongHash.."

In your example is truncated closing quote, but when I checked the file it was
there.

Itw downlaods such an file to cache, and then usesit. So this case actually
goes to:

java.io.FileNotFoundException:
/home/jvanek/.cache/icedtea-web/cache/23/https/efs.uspto.gov/TruePassWebStart/uspto-auth.authenticate.jnlp.q_SlNFU1NJT05JRD02OUY1ODVCNkJBOTM1NThCQjdBMTA5RkQyNDZEQjEwRi5wcm9kX3RwdG9tY2F0MjE1X2p2bTsgRW50cnVzdFRydWVQYXNzUmVkaXJlY3RVcmw9Imh0dHBzOi8vZWZzLnVzcHRvLmdvdi9FRlNXZWJVSVJlZ2lzdGVyZWQvRUZTV2ViUmVnaXN0ZXJlZCI7IFRDUFJPRFBQQUlSc2Vzc2lvbj02MjIxMjk0MTguMjA0ODAuMDAwMA__.info
(File name too long)

If you download that file manually, and remove the href="..." then save, and
use "javaws modified_file.jnlp" the authentication application will work for
you ( I have tested, it booted, but I had no ID to test it), as the important
HASH is passed also as an argument

I will fix this in itw, but this is workaround for you before next ITW is
released (early of 2017)


The fix will be based on truncating any filename (without path) to 256 which is
the boundary acceptable on 99% of systems.


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] Could not read or parse the JNLP file

bugzilla-daemon
In reply to this post by bugzilla-daemon

Comment # 4 on bug 3227 from [hidden email]
> The fix will be based on truncating any filename (without path) to 256 which is the boundary acceptable on 99% of systems.

Or  (better) by hashing it.


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] can not save file with query longer then (together with name) then 255 chars

bugzilla-daemon
In reply to this post by bugzilla-daemon
[hidden email] changed bug 3227
What Removed Added
Summary Could not read or parse the JNLP file can not save file with query longer then (together with name) then 255 chars


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] can not save file with query longer then (together with name) then 255 chars

bugzilla-daemon
In reply to this post by bugzilla-daemon
[hidden email] changed bug 3227
What Removed Added
Status ASSIGNED RESOLVED
Resolution --- FIXED

Comment # 5 on bug 3227 from [hidden email]
Hello. So it is fixed in development branch. Are you willing with testing
before release?

The instructions would be same as in
http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=3198#c12


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] can not save file with query longer then (together with name) then 255 chars

bugzilla-daemon
In reply to this post by bugzilla-daemon

Comment # 6 on bug 3227 from [hidden email]
details:
http://icedtea.classpath.org//hg/icedtea-web?cmd=changeset;node=bcc0cbd69050
author: Jiri Vanek <[hidden email]>
date: Mon Nov 14 20:11:18 2016 +0100

    Fixed PR3227. When filename in cache is to long, it is saved under its
hash.

    * NEWS: mentioned PR3227
    * netx/net/sourceforge/jnlp/cache/CacheUtil.java: when resulting filename
is longer then 255, then it is saved under its name hash.
    * tests/netx/unit/net/sourceforge/jnlp/cache/CacheUtilTest.java: added
tests for urls with filenames longer then 255 chars.


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] can not save file with query longer then (together with name) then 255 chars

bugzilla-daemon
In reply to this post by bugzilla-daemon
[hidden email] changed bug 3227
What Removed Added
CC   timothy@solidrock-ent.com

Comment # 7 on bug 3227 from [hidden email]
*** Bug 3244 has been marked as a duplicate of this bug. ***


You are receiving this mail because:
  • You are on the CC list for the bug.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

[Bug 3227] can not save file with query longer then (together with name) then 255 chars

bugzilla-daemon
In reply to this post by bugzilla-daemon
[hidden email] changed bug 3227
What Removed Added
CC   flash872@gmail.com

Comment # 8 on bug 3227 from [hidden email]
*** Bug 3319 has been marked as a duplicate of this bug. ***


You are receiving this mail because:
  • You are on the CC list for the bug.
Loading...