JDK-8066447 : 8u40: URL.openConnection fails with exception if "use browser settings" is set and browser itself uses system settings
  • Type: Bug
  • Component: deploy
  • Sub-Component: webstart
  • Affected Version: 8u40
  • Priority: P2
  • Status: Closed
  • Resolution: Fixed
  • OS: linux_ubuntu
  • Submitted: 2014-12-02
  • Updated: 2015-06-03
  • Resolved: 2014-12-04
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 8 JDK 9
8u40 b19Fixed 9Fixed
Description
Issue appears since 8u40 b06
It looks like issue has been caused by fix 8054455 " javaws fails to get proxy from browser settings if browser is set to use system proxy ( linux )"

URL.openConnection() call made inside sandboxed application fails with:
  java.security.AccessControlException: access denied ("java.lang.RuntimePermission" "getenv.http_proxy")

Probably we need to add by default permissions "java.lang.RuntimePermission" "getenv.http_proxy" to be able to read system proxy settings for fix  8054455