[jboss-jira] [JBoss JIRA] Commented: (JBPORTAL-2051) Problem with user anda role validation
Viliam Rockai (JIRA)
jira-events at lists.jboss.org
Tue Feb 3 05:52:44 EST 2009
[ https://jira.jboss.org/jira/browse/JBPORTAL-2051?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12450794#action_12450794 ]
Viliam Rockai commented on JBPORTAL-2051:
-----------------------------------------
i don't see the error, when i want to create a role, which already has been in the system, but unfortunately when i create a role, with the "role title" which has already been in the system i got an error:
javax.servlet.ServletException: org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
org.jboss.portal.server.servlet.PortalServlet.service(PortalServlet.java:278)
javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
root cause
org.hibernate.AssertionFailure: null id in org.jboss.portal.identity.db.HibernateRoleImpl entry (don't flush the Session after an exception occurs)
org.hibernate.event.def.DefaultFlushEntityEventListener.checkId(DefaultFlushEntityEventListener.java:55)
the easiest way how to simulate this : try to create a role with name "Whatever" and display name "Users"
> Problem with user anda role validation
> --------------------------------------
>
> Key: JBPORTAL-2051
> URL: https://jira.jboss.org/jira/browse/JBPORTAL-2051
> Project: JBoss Portal
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Portal Identity, Portal Security
> Affects Versions: 2.6.5 SP1, Identity-1.0.3, Portlet-1.0.2
> Environment: JBoss Portal 2.6.5SP1 with Oracle Database
> Reporter: Keuller Magalhaes
> Assignee: Viliam Rockai
> Attachments: portal-bug1.jpg, portal-bug2.jpg
>
>
> When we are attempting to create a new role and its has been created JBoss Portal throws an constraint exception form database and does not handle it. Sometimes Admin interface shows us an error of code.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list