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

Bulk Import tool doesn't report on what files have been skipped

    Details

    • Type: Improvement
    • Status: Need Info (View Workflow)
    • Resolution: Unresolved
    • Affects Version/s: 4.1.5
    • Fix Version/s: None
    • Component/s: Repository
    • Environment:
      RHEL V6 and Tomcat.
    • Bug Priority:
      Category 4
    • ACT Numbers:

      00117090

    • Premier Customer:
      Yes

      Description

      Steps

      1. On Redhat's file system, create a folder called 'Test' and create three files with qualified names underneath it
        (eg. Test1.txt, Test2.txt and Test3.txt).
      2. Add a dot '.' in front of the first file, eg. ".Test1.txt". This file will now be treated by Linux as a hidden file, so the import tool will skip it.
      3. Add ".v1" to the back of the second file, eg. "Test2.txt.v1". We are turning this file into a "naked" version file (with no corresponding actual file), so the tool will skip it.
      4. In log4j.properties, turn Bulk Import debugging on:
        log4j.logger.org.alfresco.repo.bulkimport=DEBUG
        log4j.logger.org.alfresco.repo.batch=DEBUG
        log4j.logger.org.alfresco.repo.batch.BatchProcessor=DEBUG
        log4j.logger.org.alfresco.repo.transaction.RetryingTransactionHelper=info
        
      5. Start Alfresco
      6. In Share, create a folder called 'Test' under 'Company Home'.
      7. Use the GUI Bulk Filesystem Import Tool (http://localhost:8080/alfresco/service/bulkfsimport) to import all three files under the 'Test' folder into Alfresco. Example bulk import setting:
        Import directory: /opt/Test
        Target space (NodeRef or Path): /Company Home/Test
        Disable rules: checked
        Replace existing files: checked
        Batch Size: 50
        Number of Threads: 1
        

      Expected result
      The skipped files (.Test1.txt and Test2.txt.v1) should be reported in some sort of shape or form, i.e. maybe in the log or on the GUI screen.

      Actual result
      The tool went on silently without reporting what's been skipped. On the final report, you'll see the Scanned count to be 3 (files) but the Read count to be 1 (file), however it doesn't tell you which ones have been skipped. In case of thousands of files, the user has no way of knowing which files were skipped unless he checks every single loaded files.

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  repositoryteam Repository Team
                  Reporter:
                  ctan Craig Tan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:

                    Structure Helper Panel