Uploaded image for project: 'OpenDJ'
  1. OpenDJ
  2. OPENDJ-989

dsconfig create-local-db-index throws an java.lang.IllegalArgumentException when no input provided

    Details

    • Type: Bug
    • Status: Dev backlog
    • Priority: Trivial
    • Resolution: Unresolved
    • Affects Version/s: 2.6.0
    • Fix Version/s: None
    • Component/s: tools
    • Labels:
      None

      Description

      Steps to reproduce the error :

      1. Try to add an invalid index-name
        $ ./dsconfig -p 4444 -D "cn=Directory Manager" -w password --trustAll create-local-db-index --backend-name userRoot --index-name emmployeeType --set index-type:ordering --set index-type:substring
      2. in
        >>>> Configure the properties of the Local DB Index select 1

        then

        2) Change the value

        and press <Enter> :

        Enter a value for the "attribute" property: 
        java.lang.IllegalArgumentException: Empty or blank managed object names are not allowed
          org.opends.server.admin.ManagedObjectPath.child(ManagedObjectPath.java:929)
          org.opends.server.admin.ManagedObjectPath.rename(ManagedObjectPath.java:1361)
          org.opends.server.admin.client.spi.AbstractManagedObject.setPropertyValues(AbstractManagedObject.java:812)
          org.opends.server.tools.dsconfig.PropertyValueEditor$SingleValuedPropertyEditor.runMenu(PropertyValueEditor.java:1976)
          org.opends.server.tools.dsconfig.PropertyValueEditor$SingleValuedPropertyEditor.visitUnknown(PropertyValueEditor.java:1862)
          org.opends.server.tools.dsconfig.PropertyValueEditor$SingleValuedPropertyEditor.visitUnknown(PropertyValueEditor.java:1585)
          org.opends.server.admin.PropertyDefinitionVisitor.visitAttributeType(PropertyDefinitionVisitor.java:114)
          org.opends.server.admin.AttributeTypePropertyDefinition.accept(AttributeTypePropertyDefinition.java:146)
          org.opends.server.tools.dsconfig.PropertyValueEditor$SingleValuedPropertyEditor.invoke(PropertyValueEditor.java:1618)
          org.opends.server.util.cli.MenuBuilder$MenuImpl.run(MenuBuilder.java:295)
          org.opends.server.tools.dsconfig.PropertyValueEditor.edit(PropertyValueEditor.java:2368)
          org.opends.server.tools.dsconfig.CreateSubCommandHandler.commitManagedObject(CreateSubCommandHandler.java:738)
          org.opends.server.tools.dsconfig.CreateSubCommandHandler.run(CreateSubCommandHandler.java:1349)
          org.opends.server.tools.dsconfig.DSConfig.runSubCommand(DSConfig.java:990)
          org.opends.server.tools.dsconfig.DSConfig.run(DSConfig.java:855)
          org.opends.server.tools.dsconfig.DSConfig.main(DSConfig.java:359)
          org.opends.server.tools.dsconfig.DSConfig.main(DSConfig.java:315)
        

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                matthew Matthew Swift
                Reporter:
                violette Violette Roche Montane
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated: