Uploaded image for project: 'CDAP'
  1. CDAP
  2. CDAP-1820

Invalid characters to create namespace causes errors in CLI

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0
    • Component/s: CDAP
    • Labels:
      None
    • Rank:
      1|hzyp5z:

      Description

      Running the following command:
      'create namespace foo!foo'

      Causes error:

      java.lang.IllegalArgumentException: !foo: event not found
      at jline.console.ConsoleReader.expandEvents(ConsoleReader.java:779)
      at jline.console.ConsoleReader.finishBuffer(ConsoleReader.java:631)
      at jline.console.ConsoleReader.accept(ConsoleReader.java:2019)
      at jline.console.ConsoleReader.readLine(ConsoleReader.java:2666)
      at jline.console.ConsoleReader.readLine(ConsoleReader.java:2269)
      at jline.console.ConsoleReader.readLine(ConsoleReader.java:2257)
      at co.cask.common.cli.CLI.startInteractiveMode(CLI.java:158)
      at co.cask.cdap.cli.CLIMain.main(CLIMain.java:245)

        Attachments

          Activity

            People

            • Assignee:
              alvin Alvin Wang
              Reporter:
              ali.anwar Ali Anwar
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: