glassfish
  1. glassfish
  2. GLASSFISH-15965

Clustered instance page is missing Rotate Log button

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 3.1_b41
    • Fix Version/s: 3.1.1_b01
    • Component/s: admin_gui
    • Labels:
      None
    • Environment:

      promoted b41

      Description

      I thought this has already been logged a while back but cannot find a relevant issue, hence logging it here.

      Clustered instance page is missing Rotate Log button. The backend functionality is there, since I can execute asadmin rotate-log --target=<clustered instance> and it works fine. Initially logging backend only allowed rotating of the log files for the whole cluster, but that's been changed. Therefore we should add Rotate Log button to clustered instance page to make it consistent with CLI and standalone instance page.

        Activity

        Hide
        sirajg added a comment -

        Fixed revision 45745

        + <sun:button id="rotateLog" text="$resource

        {i18n.button.rotateLog}

        " primary="#

        {false}

        " disabled="#

        {pageSession.isStopped}

        "
        + onClick="if ( getConfirm(this, '$resource

        {i18nc.msg.JS.confirmRotateLog}

        ') )
        + { return submitAndDisable(this, '$resource

        {i18n.button.Processing}

        ');}
        + else

        {return false;}

        " >
        + <!command
        + createMap(result="#

        {requestScope.map}");
        + mapPut(map="#{requestScope.map}

        ", key="target", value="#

        {pageSession.encodedInstanceName}

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

        {sessionScope.REST_URL}

        /rotate-log"
        + attrs="#

        {requestScope.map}

        "
        + method="POST"
        + result="#

        {pageSession.props}

        ");
        + gf.redirect("#

        {pageSession.selfPage}

        ");/>
        +
        + </sun:button>
        +

        Show
        sirajg added a comment - Fixed revision 45745 + <sun:button id="rotateLog" text="$resource {i18n.button.rotateLog} " primary="# {false} " disabled="# {pageSession.isStopped} " + onClick="if ( getConfirm(this, '$resource {i18nc.msg.JS.confirmRotateLog} ') ) + { return submitAndDisable(this, '$resource {i18n.button.Processing} ');} + else {return false;} " > + <!command + createMap(result="# {requestScope.map}"); + mapPut(map="#{requestScope.map} ", key="target", value="# {pageSession.encodedInstanceName} "); + gf.restRequest( + endpoint="# {sessionScope.REST_URL} /rotate-log" + attrs="# {requestScope.map} " + method="POST" + result="# {pageSession.props} "); + gf.redirect("# {pageSession.selfPage} ");/> + + </sun:button> +
        Hide
        lidiam added a comment -

        Verified in build ogs-3.1.1-b11-07_04_2011-aix.zip.

        Show
        lidiam added a comment - Verified in build ogs-3.1.1-b11-07_04_2011-aix.zip.

          People

          • Assignee:
            sirajg
            Reporter:
            lidiam
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: