Uploaded image for project: 'ModeShape'
  1. ModeShape
  2. MODE-2493

ModeShape managed transactions can cause NPEs if they're rolled back after a failed commit

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Blocker
    • Resolution: Done
    • Affects Version/s: 3.8.x-prod-ip6.1, 4.3.0.Final
    • Fix Version/s: 3.8.x-prod-ip6.2, 4.4.0.Final
    • Component/s: None
    • Labels:
      None

      Description

      ModeShape attempts to roll-back transactions whenever an unexpected exception is caught during a session save or during one of the operations executed at repository startup.

      When using ModeShape managed transactions, if such a transaction throws an exception during tx.commit, depending on the case (see linked issue for an example) some other party (most notably AS or ISPN) can rollback the transaction in response.

      If that is the case, ModeShape should not attempt to rollback the transaction again (which will fail) because this will hide the original cause of the failure. In such cases, ModeShape should make sure the original exception (which triggered the rollback in the first place) is sent back to the caller.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  hchiorean Horia Chiorean
                  Reporter:
                  hchiorean Horia Chiorean
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: