Uploaded image for project: 'WildFly Core'
  1. WildFly Core
  2. WFCORE-2797

http-remoting-connector attributes wrongly declared as "restart-required" => "no-services"

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 4.0.0.Alpha1
    • None
    • Remoting
    • None
    • Hide
      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory,value=application-sasl-authentication)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      
      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=security-realm,value=ApplicationRealm)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      
      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=server-name,value=localhost.localdomain)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      
      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-protocol,value=some_protocol)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      
      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=authentication-provider,value=asfd)
      {
          "outcome" => "success",
          "response-headers" => {
              "operation-requires-reload" => true,
              "process-state" => "reload-required"
          }
      }
      
      Show
      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-authentication-factory,value=application-sasl-authentication) { "outcome" => "success" , "response-headers" => { "operation-requires-reload" => true , "process-state" => "reload-required" } } [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=security-realm,value=ApplicationRealm) { "outcome" => "success" , "response-headers" => { "operation-requires-reload" => true , "process-state" => "reload-required" } } [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=server-name,value=localhost.localdomain) { "outcome" => "success" , "response-headers" => { "operation-requires-reload" => true , "process-state" => "reload-required" } } [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=sasl-protocol,value=some_protocol) { "outcome" => "success" , "response-headers" => { "operation-requires-reload" => true , "process-state" => "reload-required" } } [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:write-attribute(name=authentication-provider,value=asfd) { "outcome" => "success" , "response-headers" => { "operation-requires-reload" => true , "process-state" => "reload-required" } }

    Description

      Changing http-remoting-connector leads to reload required state. But all attributes are marked as "restart-required" => "no-services" in model. Based on documentation [1] I think they should be rather "restart-required" => "resource-services"

      [standalone@localhost:9990 /] /subsystem=remoting/http-connector=http-remoting-connector:read-resource-description
      {
          "outcome" => "success",
          "result" => {
              "description" => "The configuration of a HTTP Upgrade based Remoting connector.",
              "capabilities" => [{
                  "name" => "org.wildfly.remoting.http-connector",
                  "dynamic" => true
              }],
              "attributes" => {
                  "authentication-provider" => {
                      "type" => STRING,
                      "description" => "The \"authentication-provider\" element contains the name of the authentication provider to use for incoming connections.",
                      "expressions-allowed" => false,
                      "required" => false,
                      "nillable" => true,
                      "min-length" => 1L,
                      "max-length" => 2147483647L,
                      "access-constraints" => {"sensitive" => {"remoting-security" => {"type" => "remoting"}}},
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  },
                  "connector-ref" => {
                      "type" => STRING,
                      "description" => "The name (or names) of a connector in the Undertow subsystem to connect to.",
                      "expressions-allowed" => false,
                      "required" => true,
                      "nillable" => false,
                      "min-length" => 1L,
                      "max-length" => 2147483647L,
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  },
                  "sasl-authentication-factory" => {
                      "type" => STRING,
                      "description" => "Reference to the SASL authentication factory to use for this connector.",
                      "expressions-allowed" => false,
                      "required" => false,
                      "nillable" => true,
                      "nil-significant" => true,
                      "capability-reference" => "org.wildfly.security.sasl-authentication-factory",
                      "min-length" => 1L,
                      "max-length" => 2147483647L,
                      "access-constraints" => {"sensitive" => {"authentication-factory-ref" => {"type" => "core"}}},
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  },
                  "sasl-protocol" => {
                      "type" => STRING,
                      "description" => "The protocol to pass into the SASL mechanisms used for authentication.",
                      "expressions-allowed" => true,
                      "required" => false,
                      "nillable" => true,
                      "default" => "remote",
                      "min-length" => 1L,
                      "max-length" => 2147483647L,
                      "access-constraints" => {"sensitive" => {"remoting-security" => {"type" => "remoting"}}},
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  },
                  "security-realm" => {
                      "type" => STRING,
                      "description" => "The associated security realm to use for authentication for this connector.",
                      "expressions-allowed" => false,
                      "required" => false,
                      "nillable" => true,
                      "min-length" => 1L,
                      "max-length" => 2147483647L,
                      "access-constraints" => {"sensitive" => {
                          "security-realm-ref" => {"type" => "core"},
                          "remoting-security" => {"type" => "remoting"}
                      }},
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  },
                  "server-name" => {
                      "type" => STRING,
                      "description" => "The server name to send in the initial message exchange and for SASL based authentication.",
                      "expressions-allowed" => true,
                      "required" => false,
                      "nillable" => true,
                      "min-length" => 1L,
                      "max-length" => 2147483647L,
                      "access-constraints" => {"sensitive" => {"remoting-security" => {"type" => "remoting"}}},
                      "access-type" => "read-write",
                      "storage" => "configuration",
                      "restart-required" => "no-services"
                  }
              },
              "operations" => undefined,
              "notifications" => undefined,
              "children" => {
                  "security" => {
                      "description" => "Configuration of security for this connector.",
                      "model-description" => undefined
                  },
                  "property" => {
                      "description" => "Properties to further configure the connector.",
                      "model-description" => undefined
                  }
              }
          },
          "response-headers" => {"process-state" => "reload-required"}
      }
      

      [1] https://docs.jboss.org/author/display/WFLY10/Description+of+the+Management+Model#DescriptionoftheManagementModel-applyingruntimeupdates

      Attachments

        Issue Links

          Activity

            People

              chaowan@redhat.com Chao Wang
              mchoma@redhat.com Martin Choma
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: