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 103028 - Cannot enter security-role-mapping
Summary: Cannot enter security-role-mapping
Status: RESOLVED DUPLICATE of bug 82327
Alias: None
Product: serverplugins
Classification: Unclassified
Component: Sun Appserver 8 (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: _ pcw
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-05-01 01:28 UTC by shingwai
Modified: 2007-05-02 05:23 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description shingwai 2007-05-01 01:28:18 UTC
In SJSAS or GlassFish environment, one need to specify the security-role-mapping
in sun-*.xml for security. This is currently not supported in the NetBeans IDE.
Comment 1 _ pcw 2007-05-01 01:34:32 UTC
--> sun appserv
Comment 2 _ pcw 2007-05-01 01:36:25 UTC
This issue is file against NetBeans 5.0, which has a full GUI editor for
handling Security-role-mappings in all sun descriptors files.  You merely have
to make sure that security-role entries exist in the corresponding standard
descriptor first.

Is this the version of NetBeans you are using?
Comment 3 shingwai 2007-05-02 01:43:56 UTC
If we have an ear application containing a war, and the roles are defined in the
war, then one cannot specify the security role mapping in the application level.
It is important to be able to do this as we may have two different war level 
mapping which you want to override in the application level.
Comment 4 shingwai 2007-05-02 01:44:15 UTC
If we have an ear application containing a war, and the roles are defined in the
war, then one cannot specify the security role mapping in the application level.
It is important to be able to do this as we may have two different war level 
mapping which you want to override in the application level.
Comment 5 _ pcw 2007-05-02 05:19:54 UTC
Duplicate of issue 82327.

You can add the security-role-mappings you need to sun-application.xml, but you
have to edit the XML file directly (in NB, right click the file and select
<Edit> or click the <Edit as XML> button in the upper right corner of the config
editor for sun-application.xml).  You are correct that there is no GUI for this
particular use case.

This might be resolved in NB 6.0, but it is unclear if there will be sufficient
resources to complete it in time.

*** This issue has been marked as a duplicate of 82327 ***
Comment 6 _ pcw 2007-05-02 05:23:30 UTC
Additional note:  If you are find, in NB 5.0, that additional
security-role-mappings added this way are silently removed from
sun-application.xml, upgrade to NB 5.5 (preferably 5.5.1 actually).  I can't
remember exactly when I put code to handle that aspect but it works well in 5.5.x