Uploaded image for project: 'Service Packs and Hot Fixes'
  1. Service Packs and Hot Fixes
  2. MNT-12503

When trying to bulk import, if failing on constraint violation, it is difficult to find the document responsible of the failure.

    Details

    • Bug Priority:
      Category 4
    • ACT Numbers:

      00181366

      Description

      When we try to import X files (with parameters : batchsize=50 and Number Thread=50), if one of them is rejected for some good reasons (i.e. because one of the metedata is incorrect), the message in the import console does not indicates what file has caused the failure.

      Improvement:
      The path of the failing documents should be displayed in the upload console and returned if import is made throught REST calls.

      Hint:
      To get that information displayed, the path of the failing document could be added the the “IntegrityRecord” created line 191 in org.alfresco.repo.node.integrity.PropertiesIntegrityEvent.

      Example:
      IntegrityRecord result = new IntegrityRecord( 
      "Invalid property value: \n" + 
      " Node: " + nodeRef + "\n" + 
      " Path: " + nodeService.getPath(nodeRef) + "\n" + 
      " Type: " + typeQName + "\n" + 
      " Property: " + propertyQName + "\n" + 
      " Constraint: " + e.getMessage());

      See: before.png,after.png and patch.diff

        Attachments

        1. after.png
          after.png
          99 kB
        2. before.png
          before.png
          127 kB
        3. patch.diff
          0.8 kB

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  repositoryteam Repository Team
                  Reporter:
                  pdubois Philippe Dubois [X] (Inactive)
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel