Uploaded image for project: 'Accumulo'
  1. Accumulo
  2. ACCUMULO-3424

Token class option always requires token property

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.6.0, 1.6.1
    • 1.6.2, 1.7.0
    • shell
    • None

    Description

      In testing out ACCUMULO-2815, I attempted to manually provide a KerberosToken to authenticate myself and then launch the shell, but ran into an issue. The KerberosToken (in its current state) needs no options: it's wholly functional on its own.

      accumulo shell -tc org.apache.accumulo.core.client.security.tokens.KerberosToken gives an error

      2014-12-16 11:41:09,712 [shell.Shell] ERROR: com.beust.jcommander.ParameterException: Must supply either both or neither of '--tokenClass' and '--tokenProperty'
      

      And providing an empty option just prints the help message accumulo shell -tc org.apache.accumulo.core.client.security.tokens.KerberosToken -l ""

      I'm guessing the latter is just how the JCommander DynamicParameter is implemented, but I don't see a reason why every authentication must have some properties provided to it.

      Attachments

        Activity

          People

            elserj Josh Elser
            elserj Josh Elser
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 20m
                20m