This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 200571

Summary: When security checking disabled, allow replacement of TopSecurityManager
Product: platform Reporter: Jaroslav Tulach <jtulach>
Component: Module SystemAssignee: Jaroslav Tulach <jtulach>
Status: RESOLVED FIXED    
Severity: normal CC: apireviews, jglick
Priority: P3 Keywords: API_REVIEW_FAST
Version: 7.1   
Hardware: Other   
OS: Linux   
Issue Type: DEFECT Exception Reporter:
Attachments: Allowing replacement of security manager

Description Jaroslav Tulach 2011-08-01 13:37:54 UTC
Abbot tests on top of NetBeans are failing due to 
http://sourceforge.net/tracker/?func=detail&aid=3307972&group_id=50939&atid=461490

org.netbeans.TopSecurityManager.checkSetSecurityManager(TopSecurityManager
 org.netbeans.TopSecurityManager.checkPermission(TopSecurityManager.java:39
 java.lang.System.setSecurityManager0(System.java:272)
 java.lang.System.setSecurityManager(System.java:263)
 at abbot.util.SystemState.restore(SystemState.java:69)
 at abbot.util.AWTFixtureHelper.restore(AWTFixtureHelper.java:157)
 at abbot.script.StepRunner.terminate(StepRunner.java:345)
 at abbot.script.StepRunner.run(StepRunner.java:209)

One possible fix would be to run NetBeans with -Dnetbeans.security.nocheck=true and in this mode allow the change of SecurityManager.
Comment 1 Jaroslav Tulach 2011-08-01 13:53:20 UTC
Created attachment 109729 [details]
Allowing replacement of security manager
Comment 2 Jesse Glick 2011-08-01 13:59:33 UTC
arch.xml misprints the property name (twice); missing "no".
Comment 3 Jaroslav Tulach 2011-12-05 07:14:53 UTC
OK, integrating this forgotten review as ergonomics#23bfe4015241
Comment 4 Quality Engineering 2011-12-06 12:14:16 UTC
Integrated into 'main-golden'
Changeset: http://hg.netbeans.org/main-golden/rev/23bfe4015241
User: Jaroslav Tulach <jtulach@netbeans.org>
Log: #200571: Allow security manager replacement in 'nocheck mode'