Bug 755368 - javaws wont launch aspx.jnlp file
Summary: javaws wont launch aspx.jnlp file
Keywords:
Status: CLOSED WONTFIX
Alias: None
Product: Fedora
Classification: Fedora
Component: java-1.6.0-openjdk
Version: 14
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Omair Majid
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-11-20 23:04 UTC by Erik P. Olsen
Modified: 2012-03-26 19:03 UTC (History)
8 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2012-03-26 19:03:06 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Output from: javaws ViewImage.aspx.jnlp (1.32 KB, text/plain)
2011-11-20 23:04 UTC, Erik P. Olsen
no flags Details
aspx.jnlp file which triggers the bug (5.11 KB, application/x-java-jnlp-file)
2011-11-20 23:13 UTC, Erik P. Olsen
no flags Details
Sun/Oracle's dialog box. (38.90 KB, image/jpeg)
2011-11-24 06:28 UTC, Erik P. Olsen
no flags Details

Description Erik P. Olsen 2011-11-20 23:04:22 UTC
Created attachment 534691 [details]
Output from: javaws ViewImage.aspx.jnlp

Description of problem: See attached file jnlp.txt


Version-Release number of selected component (if applicable):


How reproducible: every time


Steps to Reproduce:
1. javaws ViewImage.aspx.jnlp 
2.
3.
  
Actual results: output as in jnlp.txt


Expected results: Display image of old handwritten document


Additional info: Works on Windows 7 with Sun's java

Comment 1 Erik P. Olsen 2011-11-20 23:13:44 UTC
Created attachment 534692 [details]
aspx.jnlp file which triggers the bug

Am adding the example file which triggers the bug. The file is one of millions of similar files that are accessible on the Internet. They are scanned pages of all Danes from early 1700 till today containing information like birthday, marriage, death etc.

Comment 2 Omair Majid 2011-11-23 23:51:46 UTC
As the error says, the jar files contain unsigned content, but the application wants full permissions. I can confirm that at least http://www.sa.dk/LAView/commons-discovery-0.2.jar contains file(s) that are unsigned.

We can not grant permissions to such jar files. If we did, then it becomes possible for someone to add their own code/metadata/whatever to this jar, and have it execute with full privileges instead of a sandbox. It may turn out that the additional files have no security implications, but it could just as well be malicious code, and compromise the security of your system.

The only correct fix, IMHO, is for the folks who host this jar (http://www.sa.dk/LAView) to make sure all files in their jars are properly signed.

The fact that the Sun/Oracle JDK works with this file is a bug in their JDK.

Comment 3 Erik P. Olsen 2011-11-24 06:28:25 UTC
Created attachment 535787 [details]
Sun/Oracle's dialog box.

Comment 4 Erik P. Olsen 2011-11-24 06:29:38 UTC
You could do like Sun/Oracle, ask the user if he accepts the risk. See attached file.

Comment 5 Omair Majid 2011-11-24 15:37:11 UTC
No, that dialog shows something slightly different. It asks if you trust the entity who has signed the jar. You can normally click the 'more information' button in that dialog to get additional details about who the entity is. The javaws that ships in fedora does that too.

However, this is different from the case where unsigned files are present. In such cases, we refuse to run the program.

The Sun/Oracle JRE does this exact thing too, actually. It refuses to run if unsigned entries are present - unless the unsigned files under META-INF/ in which case the program runs. I have talked to folks who deal more with software security and they agree that this is not a completely safe thing to do, so we dont emulate this 'bug'.

Comment 6 Omair Majid 2012-03-26 19:03:06 UTC
Upstream has made an explicit decision about this. Please see http://icedtea.classpath.org/bugzilla/show_bug.cgi?id=722 and post any concerns or suggestions there.

F14 has been EOL'ed and wont be getting a fix (even if upstream creates one). I am closing this bug as WONTFIX.


Note You need to log in before you can comment on or make changes to this bug.