Uploaded image for project: 'DSpace'
  1. DSpace
  2. DS-915

BitstreamReader.java will always close the database connection even if the bitstream is being pulled into the theme.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.7.0, 1.7.1
    • Fix Version/s: 1.8.0
    • Component/s: XMLUI
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      0

      Description

      A bug that was fixed with DS-677 which fixed a problem where reading bitstreams left a database connection open with out explicitly closing it. This is a good thing, however a side effect of this was if the theme pulled in an XML-based bitstream into it's XSL for special case rendering the database connection would be closed on it.

      This patch adds a bit of logic in the bitstreamreader to check if a database connection is allready available for the request, before creating a new one. Then the reader will only close connections that it opened. If the connection was opened by the regular aspect pipeline then the aspects will close the connection.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              scottphillips Scott Phillips
              Reporter:
              scottphillips Scott Phillips
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: