Uploaded image for project: 'Metron (Retired)'
  1. Metron (Retired)
  2. METRON-1013

StellarShell does not validate parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Done
    • Major
    • Resolution: Done
    • 0.4.0
    • 0.4.1
    • None

    Description

      If you pass an invalid url to -z for example - you will get a wait and then an exception crashing the shell.

      In the case of -z, I am not sure url is the right name, since we want host:port, with host being a valid name or ip address and port.

      We also do use a default port if none is provided, we probably should.
      A 'dev' default for the whole thing would be 'node1:2181', to match our vagrant environments. I propose that we use that.

      Thus:

      • no -z => node1:2181
      • -z -> validate host name, if no port then 2181
      • if port then validate port

      Attachments

        Issue Links

          Activity

            People

              otto Otto Fowler
              otto Otto Fowler
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: