Details

      Description

      MembershipDAOImpl.linkMembership(...) is missing exception handling around the following call:

      getIdentitySession().getRoleManager().createRole(mt.getName(), user.getUserName(), groupId);
      

      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:

       org.hibernate.AssertionFailure: null id in org.picketlink.idm.impl.model.hibernate.HibernateIdentityObjectRelationship entry (don't flush the Session after an exception occurs)
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                bdaw Boleslaw Dawidowicz
                Reporter:
                mputz Martin Weiler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: