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

DBS Placeless Documents return null acp

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 10.10
    • Fix Version/s: 10.10-HF16
    • Component/s: Core

      Description

      TestNuxeoDriveManager#testGetSyncRootsWithPlacelessDocument shows that DBSSession#getMergedACP returns null on placeless documents, which leads to an NPE. This null ACP is the one contained by the DBSDocument representing the placeless document.
      In contrary SQLSession#getMergedACP returns the ACP of the SQLDocumentLive representing the placeless document.

      DBSSession#getMergedACP and SQLSession#getMergedACP contain strictly the same code though. (Maybe they could be refactored ?)

      The difference is one manipulates an SQLDocumentLive which has an ACP and the other manipulates a DBSDocument with a null ACP

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 2 hours
                  2h