Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-3190

CLI autocompletion handles incorrectly spaces in front of attribute name

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • 4.0.0.Alpha1
    • 3.0.0.Beta31
    • CLI
    • None
    • Hide
      /subsystem=elytron/filesystem-realm=test:add(path=test,relative-to=jboss.server.config.dir)
      /subsystem=elytron/filesystem-realm=test:add-identity(identity=guest)
      /subsystem=elytron/filesystem-realm=test:set-password(identity=guest, otp={algorithm=otp-sha1, password=test, [TAB]
      

      as a result "e" is added/autocompleted instead of "se" (as the possible attributes are "seed" and "sequence").

      If I don't use space before pressing TAB, the "se" is added correctly.

      When 2 or more spaces is used, nothing is autocompleted and attribute names are just printed as a hint.

      Show
      /subsystem=elytron/filesystem-realm=test:add(path=test,relative-to=jboss.server.config.dir) /subsystem=elytron/filesystem-realm=test:add-identity(identity=guest) /subsystem=elytron/filesystem-realm=test:set-password(identity=guest, otp={algorithm=otp-sha1, password=test, [TAB] as a result "e" is added/autocompleted instead of "se" (as the possible attributes are "seed" and "sequence"). If I don't use space before pressing TAB, the "se" is added correctly. When 2 or more spaces is used, nothing is autocompleted and attribute names are just printed as a hint.

      CLI autocompletion behavior wrongly depends on space characters used in front of an attribute name.

      See Steps to reproduce for details.

              mstefank Martin Stefanko
              mstefank Martin Stefanko
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: