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

Improve error message for duplicate entries in directory CSV

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 11.1, 2021.0
    • Component/s: Directory
    • Upgrade notes:
      Hide

      The error message is improved by adding the Directory Name when the entries are duplicated in directory CSV.

      Show
      The error message is improved by adding the Directory Name when the entries are duplicated in directory CSV.
    • Sprint:
      nxfit 11.1.6
    • Story Points:
      2

      Description

      When a CSV is loaded at init time for a directory, duplicate entries cause an error but the message doesn't mention the directory name, just the duplicate entry id.

      ERROR [localhost-startStop-1] [org.nuxeo.runtime.model.impl.RegistrationInfoImpl] Component service:org.nuxeo.ecm.directory.DirectoryServiceImpl notification of application started failed: Entry with id MyDuplicateEntryId already exists
      org.nuxeo.ecm.directory.DirectoryException: Entry with id MyDuplicateEntryId already exists
      	at org.nuxeo.ecm.directory.sql.SQLSession.createEntry(SQLSession.java:207)
      	at org.nuxeo.ecm.directory.DirectoryCSVLoader.loadData(DirectoryCSVLoader.java:110)
      	at org.nuxeo.ecm.directory.sql.SQLDirectory.getSession(SQLDirectory.java:266)
      	at org.nuxeo.ecm.directory.DirectoryServiceImpl.applicationStarted(DirectoryServiceImpl.java:85)
      	at org.nuxeo.runtime.model.impl.RegistrationInfoImpl.notifyApplicationStarted(RegistrationInfoImpl.java:331)
      

        Attachments

          Issue Links

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 0 minutes
                  0m
                  Remaining:
                  Remaining Estimate - 0 minutes
                  0m
                  Logged:
                  Time Spent - 3 days, 5 hours
                  3d 5h

                    PagerDuty

                    Error rendering 'com.pagerduty.jira-server-plugin:PagerDuty'. Please contact your Jira administrators.