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

Database connection leak if error page cannot be transmitted

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: 2015.05.0, 2015.07, 2015.11, 2016.02
    • Fix Version/s: 2015.05.01, 2016.06.0
    • Component/s: mycore-base
    • Labels:
      None

      Description

      if LAYOUT_SERIVCE cannot send response and results in an error and openTransaction is false, the transaction is never committed and kept open for ever.

      if (!openTransaction) {
          session.beginTransaction();
      }
      setWebAppBaseURL(session, request);
      LAYOUT_SERVICE.doLayout(request, response, new MCRJDOMContent(errorDoc));
      if (!openTransaction)
          session.commitTransaction();
      

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: