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

Database migrate fails to create the initial groups

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 6.1
    • Fix Version/s: 6.2, 7.0
    • Component/s: DSpace API
    • Labels:
      None
    • Attachments:
      0
    • Comments:
      2
    • Documentation Status:
      Not Required

      Description

      We noticed on the demo server, that dspace database migrate does not create the initial groups (Administrator, Anonymous). This only occurs if RDF (dspace-rdf) is enabled.

      Debugging showed that the RDFConsumer#end() creates an own ReadOnly Context and aborts it at the end. This aborts the whole connection and drops the inserted groups.

      The cause is, abort on a read only context, aborts the connection, too. This was introduced by the removal of a check for read only here: https://github.com/DSpace/DSpace/commit/1ccd6d1e13563357849d8dd6ac60d6320d71e4c7?diff=split#diff-cbd2f003ca152958b516d0e949719ef3L521

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                tdonohue Tim Donohue
                Reporter:
                sulfrian Alexander Sulfrian
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: