[gatein-issues] [JBoss JIRA] (GTNPORTAL-3572) Missing exception handling in MembeshipDAOImpl

RH Bugzilla Integration (JIRA) issues at jboss.org
Thu Feb 19 11:58:52 EST 2015


    [ https://issues.jboss.org/browse/GTNPORTAL-3572?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13042092#comment-13042092 ] 

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 NEW to ASSIGNED

> 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
>
> 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