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

Martin Weiler (JIRA) issues at jboss.org
Thu Jan 8 08:08:30 EST 2015


     [ https://issues.jboss.org/browse/GTNPORTAL-3572?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Weiler updated GTNPORTAL-3572:
-------------------------------------
              Status: Pull Request Sent  (was: Open)
    Git Pull Request: https://github.com/gatein/gatein-portal/pull/925


> 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