glassfish
  1. glassfish
  2. GLASSFISH-14274

In GF 3.1 list-sub-components returns success when given a bogus module name

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_b27
    • Component/s: deployment
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      14,274

      Description

      It looks there may be a difference in behavior between GF 2.1 and 3.1. The
      admin cli test list_sub_components_das_18 is a negative test that passes a bogus
      module name to the list-sub-components command. The test is expecting a return
      value of 1 to denote a failure. GF 3.1 is returning a value of 0 denoting success.

      asadmin command:
      asadmin list-sub-components --user admin --host 192.168.1.105 --port 4848
      --type servlets --appname helloworld-web hellworldweb

      note the missing "o" in the module name helloworldweb

        Activity

        Hide
        Hong Zhang added a comment -

        yes, we will have the same behavior for this negative case

        Show
        Hong Zhang added a comment - yes, we will have the same behavior for this negative case
        Hide
        Hong Zhang added a comment -

        fail the command when the modulename is non-existent to keep backward
        compatibility with v2

        Show
        Hong Zhang added a comment - fail the command when the modulename is non-existent to keep backward compatibility with v2

          People

          • Assignee:
            Hong Zhang
            Reporter:
            Ryan O'Connell
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: