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

Make it possible to save the Root document

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 5.4.2-HF26, 5.5.0-HF12, 5.6
    • Component/s: Core

      Description

      Saving the Root document fails in the AbstractSession#saveDocument method as the name of the root document is null:

      ...
      if (!docModel.isImmutable()) {
      // regular event, last chance to modify docModel
      String name = docModel.getName();
      notifyEvent(DocumentEventTypes.BEFORE_DOC_UPDATE, docModel,
      options, null, null, true, true);
      // did the event change the name?
      if (!name.equals(docModel.getName())) { 
      ...
      

      This could be useful when using the Local Configuration on the Root document.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: