Uploaded image for project: 'Dev - Nexus Repo'
  1. Dev - Nexus Repo
  2. NEXUS-8770

LDAP unique name violation shows obtuse message

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Won't Fix
    • Affects Version/s: 3.0.0-m4, 3.0.0
    • Fix Version/s: None
    • Component/s: LDAP, UI
    • Labels:
      None

      Description

      If a duplicate LDAP name is selected this fact is not highlighted until saving, at which point the message is less than helpful for problem resolution(see screenshot). In addition, because the interaction is spread across multiple panels, the only way to resolve the problem is to navigate back to the first panel - which loses all of the "User and group" configuration. This isn't so bad in the case where our available templates are used, but could prove very frustrating for someone applying custom config. If possible we should allow navigating between the panels without information loss to facilitate fine-tuning the config for situations like this.
      In any case we should be able to validate name uniqueness earlier than at the point of saving the DB record, either by validating against the Store names in the UI or at the server bean validation layer(or both), and improve the error message.

      2015-06-05 11:02:30,188-0700 ERROR [qtp175455137-415] admin org.sonatype.nexus.extdirect.internal.ExtDirectServlet - Failed to invoke action method: ldap_LdapServer.create, java-method: org.sonatype.nexus.ldap.internal.ui.LdapServerComponent.create
      java.lang.IllegalArgumentException: Duplicated record: id=fcbf7d03-929d-4d57-b012-138483684b63, name=test
      	at org.sonatype.nexus.ldap.internal.persist.orient.OrientDBLdapConfigurationSource.create(OrientDBLdapConfigurationSource.java:110) [na:na]
      	at org.sonatype.nexus.ldap.internal.persist.DefaultLdapConfigurationManager.addLdapServerConfiguration(DefaultLdapConfigurationManager.java:133) [na:na]
      	at org.sonatype.nexus.ldap.internal.persist.LdapConfigurationManager$addLdapServerConfiguration$0.call(Unknown Source) [na:na]
      	at org.sonatype.nexus.ldap.internal.ui.LdapServerComponent.create(LdapServerComponent.groovy:121) [na:na]
      	at org.sonatype.nexus.validation.internal.ValidationInterceptor.invoke(ValidationInterceptor.java:53) [na:na]
      

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            krobinson Kelly Robinson
            Last Updated By:
            Peter Lynch Peter Lynch
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response:

                tigCommentSecurity.panel-title