Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-39016

BasicSqlService.dbInsert returns db connection even if it is managed elsewhere

    Details

    • Type: Bug
    • Status: CLOSED
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.x
    • Fix Version/s: 2.7.x, 2.8.x
    • Component/s: Kernel
    • Labels:
      None
    • Previous Issue Keys:
      KNL-492

      Description

      When trying to add a new assessment in Mneme (the m10 tag) a SQL exception is thrown stating that the connection was closed. This is because the dbInsert method returns the connection even if it was retrieved from the ThreadLocalManager.

      In Mneme's case the BasicSqlService.transact method is being called with a callback which then calls BasicSqlService.dbInsert which then returns the connection resulting in an exception being thrown in the transact method.

      Patch to dbInsert on the way.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  dhorwitz David Horwitz
                  Reporter:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration