You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@maven.apache.org by "Napoleon Esmundo C. Ramirez (JIRA)" <ji...@codehaus.org> on 2007/05/09 12:31:12 UTC
[jira] Created: (CONTINUUM-1264) Editing a Project Group's name to
an empty string generates an exception
Editing a Project Group's name to an empty string generates an exception
------------------------------------------------------------------------
Key: CONTINUUM-1264
URL: http://jira.codehaus.org/browse/CONTINUUM-1264
Project: Continuum
Issue Type: Bug
Components: Web interface
Reporter: Napoleon Esmundo C. Ramirez
To replicate (assuming the user has sufficient roles):
1. Create a project group (name="asdf", id="asdf")
2. Edit a project group, change name into ""
Result:
Caused by: org.codehaus.plexus.rbac.profile.RoleProfileException: invalid role
at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:405)
at org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.renameDynamicRole(DefaultRoleProfileManager.java:134)
at org.apache.maven.continuum.web.action.ProjectGroupAction.save(ProjectGroupAction.java:262)
... 78 more
Caused by: org.codehaus.plexus.security.rbac.RbacObjectInvalidException: Resource.identifier must not be empty.
at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:123)
at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:110)
at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacManager.saveResource(JdoRbacManager.java:458)
at org.codehaus.plexus.security.authorization.rbac.store.cached.CachedRbacManager.saveResource(CachedRbacManager.java:662)
at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:381)
... 80 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Updated: (CONTINUUM-1264) Editing a Project Group's name to
an empty string generates an exception
Posted by "Napoleon Esmundo C. Ramirez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/CONTINUUM-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Napoleon Esmundo C. Ramirez updated CONTINUUM-1264:
---------------------------------------------------
Attachment: CONTINUUM-1264-continuum-webapp.patch
Attached patch contains a quick fix for validating the empty string.
> Editing a Project Group's name to an empty string generates an exception
> ------------------------------------------------------------------------
>
> Key: CONTINUUM-1264
> URL: http://jira.codehaus.org/browse/CONTINUUM-1264
> Project: Continuum
> Issue Type: Bug
> Components: Web interface
> Reporter: Napoleon Esmundo C. Ramirez
> Attachments: CONTINUUM-1264-continuum-webapp.patch
>
>
> To replicate (assuming the user has sufficient roles):
> 1. Create a project group (name="asdf", id="asdf")
> 2. Edit a project group, change name into ""
> Result:
> Caused by: org.codehaus.plexus.rbac.profile.RoleProfileException: invalid role
> at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:405)
> at org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.renameDynamicRole(DefaultRoleProfileManager.java:134)
> at org.apache.maven.continuum.web.action.ProjectGroupAction.save(ProjectGroupAction.java:262)
> ... 78 more
> Caused by: org.codehaus.plexus.security.rbac.RbacObjectInvalidException: Resource.identifier must not be empty.
> at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:123)
> at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:110)
> at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacManager.saveResource(JdoRbacManager.java:458)
> at org.codehaus.plexus.security.authorization.rbac.store.cached.CachedRbacManager.saveResource(CachedRbacManager.java:662)
> at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:381)
> ... 80 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Closed: (CONTINUUM-1264) Editing a Project Group's name to
an empty string generates an exception
Posted by "Maria Odea Ching (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/CONTINUUM-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Maria Odea Ching closed CONTINUUM-1264.
---------------------------------------
Resolution: Fixed
Applied patch -r536738. Thanks!
> Editing a Project Group's name to an empty string generates an exception
> ------------------------------------------------------------------------
>
> Key: CONTINUUM-1264
> URL: http://jira.codehaus.org/browse/CONTINUUM-1264
> Project: Continuum
> Issue Type: Bug
> Components: Web interface
> Reporter: Napoleon Esmundo C. Ramirez
> Assignee: Maria Odea Ching
> Attachments: CONTINUUM-1264-continuum-webapp.patch
>
>
> To replicate (assuming the user has sufficient roles):
> 1. Create a project group (name="asdf", id="asdf")
> 2. Edit a project group, change name into ""
> Result:
> Caused by: org.codehaus.plexus.rbac.profile.RoleProfileException: invalid role
> at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:405)
> at org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.renameDynamicRole(DefaultRoleProfileManager.java:134)
> at org.apache.maven.continuum.web.action.ProjectGroupAction.save(ProjectGroupAction.java:262)
> ... 78 more
> Caused by: org.codehaus.plexus.security.rbac.RbacObjectInvalidException: Resource.identifier must not be empty.
> at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:123)
> at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:110)
> at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacManager.saveResource(JdoRbacManager.java:458)
> at org.codehaus.plexus.security.authorization.rbac.store.cached.CachedRbacManager.saveResource(CachedRbacManager.java:662)
> at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:381)
> ... 80 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
[jira] Commented: (CONTINUUM-1264) Editing a Project Group's name
to an empty string generates an exception
Posted by "Napoleon Esmundo C. Ramirez (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/CONTINUUM-1264?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_95454 ]
Napoleon Esmundo C. Ramirez commented on CONTINUUM-1264:
--------------------------------------------------------
I forgot to paste the main exception, here it is:
org.apache.maven.continuum.ContinuumException: unable to rename the project group
at org.apache.maven.continuum.web.action.ProjectGroupAction.save(ProjectGroupAction.java:270)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
> Editing a Project Group's name to an empty string generates an exception
> ------------------------------------------------------------------------
>
> Key: CONTINUUM-1264
> URL: http://jira.codehaus.org/browse/CONTINUUM-1264
> Project: Continuum
> Issue Type: Bug
> Components: Web interface
> Reporter: Napoleon Esmundo C. Ramirez
> Attachments: CONTINUUM-1264-continuum-webapp.patch
>
>
> To replicate (assuming the user has sufficient roles):
> 1. Create a project group (name="asdf", id="asdf")
> 2. Edit a project group, change name into ""
> Result:
> Caused by: org.codehaus.plexus.rbac.profile.RoleProfileException: invalid role
> at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:405)
> at org.codehaus.plexus.rbac.profile.DefaultRoleProfileManager.renameDynamicRole(DefaultRoleProfileManager.java:134)
> at org.apache.maven.continuum.web.action.ProjectGroupAction.save(ProjectGroupAction.java:262)
> ... 78 more
> Caused by: org.codehaus.plexus.security.rbac.RbacObjectInvalidException: Resource.identifier must not be empty.
> at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:123)
> at org.codehaus.plexus.security.rbac.RBACObjectAssertions.assertValid(RBACObjectAssertions.java:110)
> at org.codehaus.plexus.security.authorization.rbac.store.jdo.JdoRbacManager.saveResource(JdoRbacManager.java:458)
> at org.codehaus.plexus.security.authorization.rbac.store.cached.CachedRbacManager.saveResource(CachedRbacManager.java:662)
> at org.codehaus.plexus.rbac.profile.AbstractDynamicRoleProfile.renameRole(AbstractDynamicRoleProfile.java:381)
> ... 80 more
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira