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

Bulk Import tool does not work with associations

    Details

    • Bug Priority:
      Category 4
    • ACT Numbers:

      00212473, 00561574, 00951702, 00952077 Premier

      Description

      Description
      Request to add the ability to establish associations when using the bulk importer.

      Documentation

      (our implementation) http://docs.alfresco.com/4.2/concepts/bulk-import-prepare-filesystem.html

      Associations between content items loaded by the tool are not yet nicely supported. Associations to objects that are already in the repository can be created using the NodeRef of the target object as the value of the property.
      

      (google code implementation) https://code.google.com/p/alfresco-bulk-filesystem-import/wiki/PreparingTheFilesystem

      - peer associations between content items loaded by the tool are not yet supported - see  issue #10 .
      - associations to objects that are already in the repository can be created, however, by supplying the NodeRef of the target object as the value of the property (see the cm:taggable property in the example above). 
      

      It seems not to be supported nicely but not supported at all. If confirmed we might need to raise also a documentation JIRA.

      Steps to reproduce

      1. Prepare a folder on your file system and copy attached files IMG_2259.JPG and IMG_2259.JPG.metadata.properties.xml there.
      2. Review the xml file and correct/verify:

      • We add the cm:transformable aspect
      • For cm:formats, enter a node ref for any existing document in your repository
        3. Run the bulk import by calling http://localhost:8080/alfresco/service/bulkfsimport
        4. Configure the folder you used in step 1 as Import directory
        5. Configure the Target space path /Company Home
        6. Click "Initiate bulk import"
        7. After import finished (a green successful) use node browser and inspect the created object under company home

      Current behavior
      The cm:transformable aspect was added, but the association via property cm:formats is not set.

      Expected behavior
      One should see an association to the existing document, as configured via node ref for cm:formats

      Support Evidence

      • Reproduced behavior in 4.2.2
      • Customer log explicitly says:
        [BulkFilesystemImport-BackgroundThread] WARN org.alfresco.repo.bulkimport.metadataloaders.AbstractMapBasedMetadataLoader - Property {http://www.westernacher.com/model/archivable/1.0}

        assocRetentionPolicy doesn't exist in the Data Dictionary. Ignoring it.

      • Reviewed responsible MetadataLoader.java and AbstractMapBasedMetadataLoader.java (both attached) and it looks like we donĀ“t support associations for the import tool at all, no matter whther they already exist in the dictionary or not.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  dkoch Dennis Koch
                • Votes:
                  1 Vote for this issue
                  Watchers:
                  11 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel