JDK-8035058 : "Don't ask again..." doesn't work for expired native dialog on Ubuntu
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • Submitted: 2014-02-17
  • Updated: 2014-11-17
  • Resolved: 2014-03-03
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 JDK 9
7u76Fixed 8u20Fixed 9 b08Fixed
Description
test ENV:
Ubuntu/x86/jre8-b129 

Steps to reproduce:
1.Instal test jre 8-b129
2.Move system date to 5 years later(if current year is 2012 move it to 2017).
3.Clear cache: javaws -uninstall
4.Load following app from CMD: javaws http://sqeweb.us.oracle.com/net/sqenfs-1/export1/comp/jsn/users/crystal/DO_NOT_REMOVE_ME/jrebug/ExpiredJREJW/jnlp/testSelfSignedRequestLatest.jnlp
5.There should be a native dialog with warning that java version is out of date should appear. The dialog is with update, block or later button. Click "later" to proceed and check the checkbox don't ask again.
6.Test application should get blocked.
7.Relaunch the application
8. If  the native dialog shows up again, then this bug is reproduced.

Expected behavior:
The native dialog should not appear in step#8 and the applicaiton should get blocked again.

Note: there is no such issue on windows platform.
Comments
Verified with jre9-b10 on ubuntu/x86
06-05-2014

webrev: http://sa.us.oracle.com/mail-archive/8035058-deployment
28-02-2014

I reproduced this problem when trying to launch "./javaws app.jnlp" from $JAVA_HOME/bin. Our unix implementation of getJreHome() does not work fine for all cases. It does not take into account that user can launch javaws from $JAVA_HOME (the cmd is like "bin/javaws -app.jnlp") or $JAVA_HOME/bin (the cmd is like "./javaws -app.jnlp"). So it results in the problem that some parameters are not added to deployment.properties.
24-02-2014

regression_test_src: http://sqe-hg.us.oracle.com/hg/index.cgi/testbase/javase/functional/8/deployment2/file/b4576d15f401/new_framework/tests/javaws/manual/ExpiredJREJW/testcases/ExpiredJREJWScenarios/testExpiredJREDialogCache.html
17-02-2014

Affected tests: ExpiredJREJWScenarios/testExpiredJREDialogCache
17-02-2014