JDK-4181934 : AccessControlException generated in ImageView within browsers
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.2.0
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 1998-10-16
  • Updated: 1998-12-02
  • Resolved: 1998-12-01
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.
Other Other
1.2.0Resolved 1.2.2 1.2.2Fixed
Related Reports
Relates :  
Relates :  
Description
javax.swing.text.html.ImageView is incorrectly accessing System properties without checking for proper previledges or traping an AccessControlException.
This problem is related to bug #4181905 but a slightly different variant. The offending lines are below.

424--->	s = System.getProperty("awt.image.incrementaldraw");
	sIsInc = (s == null || s.equals("true"));

427--->	s = System.getProperty("awt.image.redrawrate");
	sIncRate = (s != null) ? Integer.parseInt(s) : 100;
	
Line 424 generates AccessControlException in the Java Plugin running JDK1.2FCS-N within IE4. I suspect 427 would do the same if it ever got there.

When you get to testing the bug fix we have JavaHelp test we can run or provide.

Comments
CONVERTED DATA BugTraq+ Release Management Values COMMIT TO FIX: 1.2.2 generic FIXED IN: 1.2.2 swing1.1 INTEGRATED IN: 1.2.2
14-06-2004

EVALUATION ImageView is in bad need of a rewrite, and continues to plague us. The calls being made aren't really needed, and there are better places to store the information. The best fix to this one would be to remove the access to the system properties. This has been ok'd for the next dot dot release. timothy.prinzing@eng 1998-10-17 Removed the use of System.getProperty() for the image refresh rates. timothy.prinzing@eng 1998-10-28
17-10-1998