DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21808>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=21808 New security access entry asserts after restarting Jetspeed servlet ------- Additional Comments From [EMAIL PROTECTED] 2003-07-24 08:54 ------- I can add new Security Access entry to any Security ID via Security browser, this action is success but can affected only I restart Jetspeed servlet with Tomcat servlet container. Scenario: 1) login as admin and go to "Security" -> "Security browser" 2) select "Edit" link action on any Security ID 3) Select "Action", "Type" and "Value" and push "Add Security Access" button to add new access entry. Last action called the "doAddaccess(RunData rundata, Context context)" method in org.apache.jetspeed.modules.actions.portlets.SecurityUpdateAction to add new security access in exist instance to org.apache.jetspeed.om.registry.base.BaseSecurityEntry class. New security access reference added via execute method "securityEntry.getAccesses().add(securityAccess)" in line 411 in SecurityUpdateAction class. This method add security in "private Vector accesses" property in BaseSecurityEntry class and not rebuild "private transient Map accessMap" property. But the accessMap property initialized only (may be) after creating instance to BaseSecurityEntry. In conclusion, new security access entry affected after only jetspeed servlet restarted (tomcat reloaded). -- Affected portlets: Security browser Affected classes: 1) org.apache.jetspeed.modules.actions.portlets.SecurityUpdateAction methods: public void doAddaccess(RunData rundata, Context context) in line 411 in "securityEntry.getAccesses().add(securityAccess)" 2) org.apache.jetspeed.om.registry.base.BaseSecurityEntry methods: public Vector getAccesses() in line 146 public boolean allowsRole(String role, String action) in lines 178-181 properties: private Vector accesses = new Vector() in line 80 private transient Map accessMap = null in line 82 PS. Sorry for my bad english.... --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]