java.lang.IllegalArgumentException: Duplicated record: id=fcbf7d03-929d-4d57-b012-138483684b63, name=test

Sonatype JIRA | Kelly Robinson | 2 years ago
tip
Do you know that we can give you better hits? Get more relevant results from Samebug’s stack trace search.
  1. 0

    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. {code} 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] {code}

    Sonatype JIRA | 2 years ago | Kelly Robinson
    java.lang.IllegalArgumentException: Duplicated record: id=fcbf7d03-929d-4d57-b012-138483684b63, name=test

    Root Cause Analysis

    1. java.lang.IllegalArgumentException

      Duplicated record: id=fcbf7d03-929d-4d57-b012-138483684b63, name=test

      at org.sonatype.nexus.ldap.internal.persist.orient.OrientDBLdapConfigurationSource.create()
    2. org.sonatype.nexus
      ValidationInterceptor.invoke
      1. org.sonatype.nexus.ldap.internal.persist.orient.OrientDBLdapConfigurationSource.create(OrientDBLdapConfigurationSource.java:110)[na:na]
      2. org.sonatype.nexus.ldap.internal.persist.DefaultLdapConfigurationManager.addLdapServerConfiguration(DefaultLdapConfigurationManager.java:133)[na:na]
      3. org.sonatype.nexus.ldap.internal.persist.LdapConfigurationManager$addLdapServerConfiguration$0.call(Unknown Source)[na:na]
      4. org.sonatype.nexus.ldap.internal.ui.LdapServerComponent.create(LdapServerComponent.groovy:121)[na:na]
      5. org.sonatype.nexus.validation.internal.ValidationInterceptor.invoke(ValidationInterceptor.java:53)[na:na]
      5 frames