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

Presence of versionLabel in metadata file throws error in bulk importer

    Details

    • Type: Service Pack Request
    • Status: Closed (View Workflow)
    • Resolution: Fixed
    • Affects Version/s: 5.0.2
    • Fix Version/s: 5.1.4, 5.2.2
    • Component/s: Bulk Import
    • Labels:
      None
    • Environment:
      RHEL, Tomcat, MySQL

      Description

      Description
      The presence of a versionLabel in metadata file throws an error during bulk import

      Supporting evidence

      Steps to reproduce

      1. Install Alfresco 5.0.2
      2. Login to share create a new site rbc-test-2
      3. Go to http://localhost:8080/alfresco/service/bulkfsimport
      4. Login as admin/admin if requested.
      5. Specify the following information:
      6. Import Directory: C:\bulkupload (use data provided FTP location: /support/Jira_Related/MNT-18001)
      7. Target space: /Company Home/Sites/rbc-test-2
      8. Disable Rule processing
      9. Replace existing files
      10. Batch size: 1
      11. Number of threads: 1
      12. Hit “Initiate Bulk Import”

      Observed Behaviour
      Can't upload files with version tree using bulk uploader available in Alfresco 5.0.2

      org.alfresco.error.AlfrescoRuntimeException: 05020031 org.alfresco.service.cmr.version.VersionServiceException: 05020030 The current version label of the node does not exist in the version history. 
      at org.alfresco.repo.version.Version2ServiceImpl.createVersion(Version2ServiceImpl.java:243) 
      at org.alfresco.repo.version.Version2ServiceImpl.createVersion(Version2ServiceImpl.java:118) 
      at org.alfresco.repo.bulkimport.impl.AbstractNodeImporter.importContentVersions(AbstractNodeImporter.java:219) 
      at org.alfresco.repo.bulkimport.impl.AbstractNodeImporter.importImportableItemFile(AbstractNodeImporter.java:182) 
      at org.alfresco.repo.bulkimport.impl.StreamingNodeImporterFactory$StreamingNodeImporter.importImportableItemImpl(StreamingNodeImporterFactory.java:141) 
      at org.alfresco.repo.bulkimport.impl.AbstractNodeImporter.importImportableItem(AbstractNodeImporter.java:428) 
      at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1$1.doWork(MultiThreadedBulkFilesystemImporter.java:128) 
      at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1$1.doWork(MultiThreadedBulkFilesystemImporter.java:120) 
      at org.alfresco.repo.tenant.TenantUtil.runAsWork(TenantUtil.java:119) 
      at org.alfresco.repo.tenant.TenantUtil.runAsTenant(TenantUtil.java:88) 
      at org.alfresco.repo.tenant.TenantUtil$1.doWork(TenantUtil.java:62) 
      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548) 
      at org.alfresco.repo.tenant.TenantUtil.runAsUserTenant(TenantUtil.java:58) 
      at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1.process(MultiThreadedBulkFilesystemImporter.java:119) 
      at org.alfresco.repo.bulkimport.impl.MultiThreadedBulkFilesystemImporter$1.process(MultiThreadedBulkFilesystemImporter.java:81) 
      at org.alfresco.repo.batch.BatchProcessor$TxnCallback.execute(BatchProcessor.java:713) 
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457) 
      at org.alfresco.repo.batch.BatchProcessor$TxnCallback.run(BatchProcessor.java:757) 
      at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 
      at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 
      at java.lang.Thread.run(Unknown Source) 
      
      at org.alfresco.repo.bulkimport.impl.StripingBulkFilesystemImporter.bulkImportImpl(StripingBulkFilesystemImporter.java:67) 
      at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$3.execute(AbstractBulkFilesystemImporter.java:395) 
      at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$3.execute(AbstractBulkFilesystemImporter.java:371) 
      at org.alfresco.repo.transaction.RetryingTransactionHelper.doInTransaction(RetryingTransactionHelper.java:457) 
      at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter.bulkImport(AbstractBulkFilesystemImporter.java:370) 
      at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$2$1.doWork(AbstractBulkFilesystemImporter.java:351) 
      at org.alfresco.repo.security.authentication.AuthenticationUtil.runAs(AuthenticationUtil.java:548) 
      at org.alfresco.repo.bulkimport.impl.AbstractBulkFilesystemImporter$2.run(AbstractBulkFilesystemImporter.java:347) 
      at java.lang.Thread.run(Unknown Source)
      

      Expected behavior
      Bulk importer should ignore properties such as versionLabel that cannot be applied to imported content.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedbugs Closed Bugs
                  Reporter:
                  hjanjua Hassan Janjua
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  6 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel