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

Improve error handling / permissions on CSV import

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 10.3-SNAPSHOT
    • Fix Version/s: 11.1, 2021.0
    • Component/s: CSV Importer, Web UI

      Description

      Non-administrators cannot import documents with CSV import, but the feature is still available and no messaging provided indicating why it doesn't work.

      Steps to reproduce:

      • Log in as a non-administrator.
      • Navigate to a folder and click on the Add Content button.
      • Click on the CSV tab and upload the attached csv file (attached).
      • Activate import mode (click on the toggle that says Apply Date, Author and Dublin Core properties)
      • Click on the Create button.
        => Import fails with error message:

        Line 2
        ERROR
        Unable to import document
        Line 3
        ERROR
        Unable to import document

      Error in server log:

      2018-12-07T16:56:57,570 ERROR [Nuxeo-Work-csvImporter-1:default:/domain-4/workspaces/workspace-4/csv-folder-4:csvImport:60f4c43c1f3a87760cefa795fbbd79fd] [org.nuxeo.ecm.csv.core.CSVImporterWork] Line 2: Unable to create document: Only Administrator can import
      2018-12-07T16:56:57,571 ERROR [Nuxeo-Work-csvImporter-1:default:/domain-4/workspaces/workspace-4/csv-folder-4:csvImport:60f4c43c1f3a87760cefa795fbbd79fd] [org.nuxeo.ecm.csv.core.CSVImporterWork] Line 3: Unable to create document: Only Administrator can import
      

      Either:

      • non-administrators should not have access to import mode
        OR
      • a more specific error message should appear indicating WHY the import was unsuccessful

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 1 day, 6 hours
                  1d 6h