glassfish
  1. glassfish
  2. GLASSFISH-9996

need correct usage error when user gives incorrect input

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: V3
    • Fix Version/s: V3
    • Component/s: upgrade_tool
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      9,996

      Description

      Install v3 glassfish build 66, invoke asupgrade tool in cli mode.

      I entered "yes" when tool prompts to rename. Tool should issue usage to use y
      or n. Currently the tool throws error "There is an existing domain
      directory: /usr/nga/v3/glassfishv3/glassfish/domains/domain1. Tool will"

      #bin/asupgrade -c
      Enter the source domain directory://usr/nga/v2.1/glassfish/domains/domain1
      Enter the target domains root directory:/usr/nga/v2/gla^H^H^[[3~^[[3~
      Target directory is invalid. Please enter a target path or type ctrl-c to exit.
      Enter the target domains root
      directory:/usr/nga/v3/glassfishv3/glassfish/domains
      "domain1" already exists in the target directory. Would you like to rename it
      (y/n)?yes
      There is an existing domain
      directory: /usr/nga/v3/glassfishv3/glassfish/domains/domain1. Tool will
      Target directory is invalid. Please enter a target path or type ctrl-c to exit.
      Enter the target domains root
      directory:/usr/nga/v3/glassfishv3/glassfish/domains
      "domain1" already exists in the target directory. Would you like to rename it
      (y/n)?y
      Moving /usr/nga/v3/glassfishv3/glassfish/domains/domain1
      to /usr/nga/v3/glassfishv3/glassfish/domains
      Enter the master password (leave blank for default):
      Start copying of user lib files.
      Copied dir: installer-builder
      Copied file: Pack200Task.jar
      Copied file: LICENSE.txt
      Copied file: libcliutil64.so
      Copied file: libloadmetrics.so
      Finished copying of user lib files.
      Executing command: /usr/nga/v3/glassfishv3/glassfish/bin/asadmin start-domain -
      -upgrade --domaindir
      Upgrade completed.

      1. server.log
        13 kB
        1xpert
      2. server.log
        14 kB
        1xpert

        Activity

        Hide
        Bobby Bissett added a comment -

        Not sure if this is a bug or feature request, but it's worth the time to get it fixed to avoid confusion. I
        should get this one done soon.

        Show
        Bobby Bissett added a comment - Not sure if this is a bug or feature request, but it's worth the time to get it fixed to avoid confusion. I should get this one done soon.
        Hide
        1xpert added a comment -

        Created an attachment (id=3426)
        v3 prelude 's server.log

        Show
        1xpert added a comment - Created an attachment (id=3426) v3 prelude 's server.log
        Hide
        1xpert added a comment -

        Created an attachment (id=3427)
        v3 's server.log

        Show
        1xpert added a comment - Created an attachment (id=3427) v3 's server.log
        Hide
        Bobby Bissett added a comment -

        Why do we need the server logs for these? It's just a change to the UI, right? Was there any problem with
        the upgrade?

        Show
        Bobby Bissett added a comment - Why do we need the server logs for these? It's just a change to the UI, right? Was there any problem with the upgrade?
        Hide
        1xpert added a comment -

        The logs was for security issue 9855. Please ignore it..I was attached
        unintentionally.

        Show
        1xpert added a comment - The logs was for security issue 9855. Please ignore it..I was attached unintentionally.
        Hide
        Bobby Bissett added a comment -

        Fixed in revision 32390.

        Show
        Bobby Bissett added a comment - Fixed in revision 32390.

          People

          • Assignee:
            Bobby Bissett
            Reporter:
            1xpert
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: