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 - When security checking disabled, allow replacement of TopSecurityManager
Summary: When security checking disabled, allow replacement of TopSecurityManager
Status: RESOLVED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Module System (show other bugs)
Version: 7.1
Hardware: Other Linux
: P3 normal (vote)
Assignee: Jaroslav Tulach
URL:
Keywords: API_REVIEW_FAST
Depends on:
Blocks:
 
Reported: 2011-08-01 13:37 UTC by Jaroslav Tulach
Modified: 2011-12-06 12:14 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Allowing replacement of security manager (4.94 KB, patch)
2011-08-01 13:53 UTC, Jaroslav Tulach
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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'