glassfish
  1. glassfish
  2. GLASSFISH-15951

Replication error when creating message security config for a running cluster

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Cannot Reproduce
    • Affects Version/s: 3.1_b41
    • Fix Version/s: 3.1.2_b02
    • Component/s: security
    • Labels:
      None

      Description

      Step to reproduce:

      1. create a cluster C1 with an instance, say i1
      2. start the cluster, ensure i1 is running.
      3. in the GUI go to:
      Configuration -> C1-config -> Security -> Message Security Config
      and create the HttpServlet layer with the following info:

      • layer: HttpServlet
      • ProviderId : client
      • Provider Type: client
      • Default Provider: true
      • classname: com.sun.xml.wss.provider.ClientSecurityAuthModule

      Press OK to create and you will see the error on screen saying
      "An error occurred during replication"

      When i checked the instance server.log, I see it says:

      [#|2011-02-10T16:38:19.717-0800|SEVERE|glassfish3.1|javax.enterprise.system.tools.admin.com.sun.enterprise.v3.admin|_ThreadID=76;_ThreadName=Thread-1;|Cannot find providerId in create-message-security-provider command model, file a bug|#]

      If you turn admingui logger to finest, you will also see the action report returned:

      [#|2011-02-10T16:38:19.615-0800|FINEST|glassfish3.1|org.glassfish.admingui|_ThreadID=32;_ThreadName=admin-thread-pool-4848(7);ClassName=org.glassfish.admingui.common.util.RestUtil;MethodName=restRequest;|restRequest: endpoint=http://localhost:4848/management/domain/configs/config/C1-config/security-service/message-security-config
      attrs=

      {providername=client, classname=com.sun.xml.wss.provider.ClientSecurityAuthModule, providertype=client, target=C1-config, isdefaultprovider=true, layer=HttpServlet}
      method=post|#]

      [#|2011-02-10T16:38:19.799-0800|SEVERE|glassfish3.1|org.glassfish.admingui|_ThreadID=32;_ThreadName=admin-thread-pool-4848(7);|RestResponse.getResponse() gives FAILURE. endpoint = 'http://localhost:4848/management/domain/configs/config/C1-config/security-service/message-security-config'; attrs = '{providername=client, classname=com.sun.xml.wss.provider.ClientSecurityAuthModule, providertype=client, target=C1-config, isdefaultprovider=true, layer=HttpServlet}

      '|#]

      [#|2011-02-10T16:38:19.799-0800|FINEST|glassfish3.1|org.glassfish.admingui|_ThreadID=32;_ThreadName=admin-thread-pool-4848(7);ClassName=org.glassfish.admingui.common.util.RestUtil;MethodName=parseResponse;|response.getResponseBody():

      {"message":"An error occurred during replication","exit_code":"FAILURE"}

      |#]

      I believe I am sending everything correctly. However CLI is not showing this error.

      This was reported by Shalini today when she verify another GUI issue.

        Activity

        Hide
        Anissa Lam added a comment -

        I am fine with excluding this from 3.1
        Even though there is error, this config and the provider is created correctly.
        CLI doesn't show the error. and i also see that after created this Msg Security config HttpServlet layer, the cluster shows restart required. If restart fixes this, then it should be fine.

        Show
        Anissa Lam added a comment - I am fine with excluding this from 3.1 Even though there is error, this config and the provider is created correctly. CLI doesn't show the error. and i also see that after created this Msg Security config HttpServlet layer, the cluster shows restart required. If restart fixes this, then it should be fine.
        Hide
        kumarjayanti added a comment -

        Since you mention CLI does not have this issue, i am wondering if this issue is similar to :

        http://java.net/jira/browse/GLASSFISH-14797

        Marking it as 3.1-exclude.

        Nithya shall anyway investigate this and post her comments.

        Show
        kumarjayanti added a comment - Since you mention CLI does not have this issue, i am wondering if this issue is similar to : http://java.net/jira/browse/GLASSFISH-14797 Marking it as 3.1-exclude. Nithya shall anyway investigate this and post her comments.
        Hide
        Nithya Ramakrishnan added a comment -

        Since this issue is not critical, we are postponing the investigation from the security side for the next release.
        As Kumar points out, the issue could be the same as 14797 - where the issue was that the admin gui was not calling the instance specific config (like the cli call).

        Show
        Nithya Ramakrishnan added a comment - Since this issue is not critical, we are postponing the investigation from the security side for the next release. As Kumar points out, the issue could be the same as 14797 - where the issue was that the admin gui was not calling the instance specific config (like the cli call).
        Hide
        Nithya Ramakrishnan added a comment -

        This issue is not reproducible in 3.1.2 builds.

        Show
        Nithya Ramakrishnan added a comment - This issue is not reproducible in 3.1.2 builds.

          People

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

            Dates

            • Created:
              Updated:
              Resolved: