[gatein-issues] [JBoss JIRA] (GTNPORTAL-3572) Missing exception handling in MembeshipDAOImpl
RH Bugzilla Integration (JIRA)
issues at jboss.org
Tue Mar 17 10:48:20 EDT 2015
[ https://issues.jboss.org/browse/GTNPORTAL-3572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13051030#comment-13051030 ]
RH Bugzilla Integration commented on GTNPORTAL-3572:
----------------------------------------------------
Peter Palaga <ppalaga at redhat.com> changed the Status of [bug 1179940|https://bugzilla.redhat.com/show_bug.cgi?id=1179940] from MODIFIED to ON_QA
> Missing exception handling in MembeshipDAOImpl
> ----------------------------------------------
>
> Key: GTNPORTAL-3572
> URL: https://issues.jboss.org/browse/GTNPORTAL-3572
> Project: GateIn Portal
> Issue Type: Bug
> Components: Identity integration
> Affects Versions: 3.8.2.Final
> Reporter: Martin Weiler
> Assignee: Boleslaw Dawidowicz
> Fix For: 3.9.0.Final, 3.8.14.Final
>
>
> MembershipDAOImpl.linkMembership(...) is missing exception handling around the following call:
> {code}
> getIdentitySession().getRoleManager().createRole(mt.getName(), user.getUserName(), groupId);
> {code}
> If this call fails, eg. for example due to an exception from the underlying database, this result in a corrupted transaction state. Subsequent requests using this thread fail with an error similar to the following:
> {noformat}
> org.hibernate.AssertionFailure: null id in org.picketlink.idm.impl.model.hibernate.HibernateIdentityObjectRelationship entry (don't flush the Session after an exception occurs)
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.3.11#6341)
More information about the gatein-issues
mailing list