Uploaded image for project: 'Nuxeo Platform'
  1. Nuxeo Platform
  2. NXP-20230

Always initialize SQL Directory references properly

    XMLWordPrintable

    Details

      Description

      Table references may not be initialized properly in all cases, see NXP-20227.

      During tearDown we iterate over directories in different orders in Java 7 and Java 8 to delete their entries. If the UserDirectory is visited first, when deleting an entry we then delete references, In TableReference.removeLinksForSource, tableReference.removeLinksForSource is called, and this will fail as the reference was never initialized. (For the other iteration order we call InverseReference.removeLinksForSource which calls dualReference.removeLinksForTarget which calls removeLinksForTarget(targetid) which first initializes the session which creates the references.)

      Fix this by always initializing the reference in removeLinksForSource/removeLinksForTarget with two arguments.

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: