Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-503

Artemis cli tools does not check and warns user if passed arguments are valid

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Minor Minor
    • A-MQ 7.0.0.ER16
    • A-MQ 7.0.0.ER14
    • None

      By trying this non-existing option, it leads me to new bug. Create instance (maybe whole cli-tool is affected as well) is unable to recognize valid and invalid arguments passed by user. So you can happily put there any argument and broker cli tool is fine with it without any complains to user.

      For example non-existing http-host & lalal option:

      /opt/jboss-amq-7/bin/artemis create  --force --nio --allow-anonymous --role=amq --user=guest --broker-security=basic --password=guest  --name=amq --http-host=0.0.0.0 --http-port=8888 --lalal=2 /opt/jboss-amq-7-http
      Creating ActiveMQ Artemis instance at: /opt/jboss-amq-7-http
      
      Auto tuning journal ...
      done! Your system can make 0.25 writes per millisecond, your journal-buffer-timeout will be 4080000
      
      You can now start the broker by executing:  
      
         "/opt/jboss-amq-7-http/bin/artemis" run
      
      Or you can run the broker in the background using:
      
         "/opt/jboss-amq-7-http/bin/artemis-service" start
      
      [0,root@r7x1_mtoth ~]$ 
      

      As you can see, ecode is 0. I will open a new bug for this.

              gaohoward Howard Gao
              mtoth@redhat.com Michal Toth
              Petra Svobodova Petra Svobodova (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: