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

Report an error when a CSV file is imported with a missing header

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2021.0
    • Fix Version/s: 2023.1, 2021.42
    • Component/s: CSV Importer

      Description

      Steps to reproduce:

      1. create a CSV file where there is an extra column with content but without a header (use the attached CSV file to reproduce)
      2. log in to Nuxeo as Administrator
      3. navigate to the personal workspace
      4. click on the + button then go to the CSV tab
      5. select the CSV file from step 1
      6. finish the process by clicking on the Create button

      Observed behavior: the window shows that "Your process is complete" but the detailed report does not show any imported or failed or error entries.
      In the logs, there is an explicit error

      ERROR [AbstractWork] Exception during work: CSVImporterWork(, Progress(?%, ?/0), Importing)
      java.lang.IllegalArgumentException: A header name is missing in [name, type, dc:title, dc:description, , dc:issued]
      

      Expected behavior: an error should be displayed in the Results window and ideally the error message "A header name is missing" should be shown to indicate the root cause of the failed import.

        Attachments

          Activity

            People

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

              Dates

              • Created:
                Updated:
                Resolved: