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

Document created under a placeless document Mustn't be a placeless.

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.10-HF22, 11.1
    • Fix Version/s: 10.10-HF23, 11.1, 2021.0
    • Component/s: Core
    • Team:
      GANG
    • Sprint:
      nxGang Sprint 11.1.28, nxGang Sprint 11.1.29
    • Story Points:
      3

      Description

      If we create a placeless document (documentation) like below:

      DocumentModel parent = session.createDocumentModel(null, "anyFile", "File");
      parent = session.createDocument(parent);
      
      parent.getParentRef()

      will be equals to

      null

      which is the expected behaviour.

      but if we create another file under it:

      DocumentModel child = session.createDocumentModel(parent.getPathAsString(), "anyFile2", "File");
      child = session.createDocument(child);
      
      child.getParentRef()

      will be equals to

      null

      which is not the expected behaviour.

      child.getParentRef()

      should be the its parent id (the id of anyFile document in our example).

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                3 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 - 1 day, 4 hours
                  1d 4h