glassfish
  1. glassfish
  2. GLASSFISH-18334

REST endpoint for validate-dcom gives error.

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 4.0_dev
    • Fix Version/s: 4.0_dev, 4.0
    • Component/s: admin_gui
    • Labels:
      None

      Description

      I have changed the REST endpoint to management/domain/nodes/validate-dcom so it is the same as in 3.1.2 and how it should be.
      Now i am seeing another problem.

      Cannot find host in validate-dcom command model, file a bug injection failed on com.sun.enterprise.v3.admin.cluster.ValidateDcom.host with class java.lang.String
      validate-dcom command output:

      Cannot find host in validate-dcom command model, file a bug
      injection failed on com.sun.enterprise.v3.admin.cluster.ValidateDcom.host with class java.lang.String

      Exit Code: FAILURE

        Activity

        Hide
        Byron Nevins added a comment -

        Notice how you are calling POST but it is defined as GET

        if ("#

        {pageSession.valueMap['type']}

        =DCOM"){
        gfr.fixWinPswd();
        //call validate-dcom first
        if ("#

        {pageSession.valueMap['validateDcom']}

        "){
        createMap(result="#

        {pageSession.dMap}");
        mapPut(map="#{pageSession.dMap}

        ", key="host" value="#

        {pageSession.valueMap['nodehost']}

        ");
        foreach(var="dattr" list=

        {"windowsuser", "windowsdomain", "windowspassword" "remotetestdir" }

        ){
        mapGet(Map="#

        {pageSession.valueMap}

        " Key="#

        {requestScope.dattr}" Value="#{requestScope.dval}");
        if ("#{requestScope.dval}"){
        mapPut(map="#{pageSession.dMap}", key="#{requestScope.dattr}

        " value="#

        {requestScope.dval}

        ");
        }
        }
        gf.restRequest( endpoint="#

        {sessionScope.REST_URL}

        /nodes/validate-dcom" attrs="#

        {pageSession.dMap}

        " method="POST" )
        }

        Show
        Byron Nevins added a comment - Notice how you are calling POST but it is defined as GET if ("# {pageSession.valueMap['type']} =DCOM"){ gfr.fixWinPswd(); //call validate-dcom first if ("# {pageSession.valueMap['validateDcom']} "){ createMap(result="# {pageSession.dMap}"); mapPut(map="#{pageSession.dMap} ", key="host" value="# {pageSession.valueMap['nodehost']} "); foreach(var="dattr" list= {"windowsuser", "windowsdomain", "windowspassword" "remotetestdir" } ){ mapGet(Map="# {pageSession.valueMap} " Key="# {requestScope.dattr}" Value="#{requestScope.dval}"); if ("#{requestScope.dval}"){ mapPut(map="#{pageSession.dMap}", key="#{requestScope.dattr} " value="# {requestScope.dval} "); } } gf.restRequest( endpoint="# {sessionScope.REST_URL} /nodes/validate-dcom" attrs="# {pageSession.dMap} " method="POST" ) }
        Hide
        Anissa Lam added a comment -

        change to admingui so i can look at it again.

        Show
        Anissa Lam added a comment - change to admingui so i can look at it again.
        Hide
        Anissa Lam added a comment -

        Fix by HCF (3/25)

        Show
        Anissa Lam added a comment - Fix by HCF (3/25)
        Hide
        Anissa Lam added a comment -

        Issues need to be addressed before 4.0 HCF (3/25)

        Show
        Anissa Lam added a comment - Issues need to be addressed before 4.0 HCF (3/25)
        Hide
        Anissa Lam added a comment -

        move to 4.0.1 as clustering related feature will not be in 4.0 console.

        Show
        Anissa Lam added a comment - move to 4.0.1 as clustering related feature will not be in 4.0 console.
        Hide
        Anissa Lam added a comment -

        move back to 4.0 , try to fix this for 4.0

        Show
        Anissa Lam added a comment - move back to 4.0 , try to fix this for 4.0
        Hide
        Anissa Lam added a comment -

        With http://localhost:4848/management/domain/nodes/validate-dcom as the endpoint, and doing a GET solved the issue.

        Console is able to show the user any error reported by the backend.

        Show
        Anissa Lam added a comment - With http://localhost:4848/management/domain/nodes/validate-dcom as the endpoint, and doing a GET solved the issue. Console is able to show the user any error reported by the backend.

          People

          • Assignee:
            Anissa Lam
            Reporter:
            Anissa Lam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: