Uploaded image for project: 'MyCoRe'
  1. MCR-1324

DB Transaction is not rolled back in classification editor

    Details

      Description

          private class DefaultSessionWrapper implements MCRSessionWrapper {
              @Override
              public <T extends OperationInSession> T wrap(T op) {
                  if (!MCRSessionMgr.getCurrentSession().isTransactionActive()) {
                      MCRSessionMgr.getCurrentSession().beginTransaction();
                  }
                  try {
                      op.run();
                  } finally {
                      //no error handling at all
                      MCRSessionMgr.getCurrentSession().commitTransaction();
                  }
                  return op;
              }
      
          }
      

        Attachments

          Issue links

            Activity

              People

              • Assignee:
                mcrmeich Matthias Eichner
                Reporter:
                yagee Thomas Scheffler
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: