Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-16240

ServerConfigurationSerializer should include the RESP endpoint

XMLWordPrintable

      Setting the level of `org.infinispan.SERVER` to `TRACE` outputs the final actual configuration utilized by the server in XML. However, the serialization is not including the RESP endpoint on the output.

      The following configuration:

         <server xmlns="urn:infinispan:server:15.1">
            <interfaces>
               <interface name="public">
                  <inet-address value="${infinispan.bind.address:127.0.0.1}"/>
               </interface>
            </interfaces>
      
            <socket-bindings default-interface="public" port-offset="${infinispan.socket.binding.port-offset:0}">
               <socket-binding name="default" port="${infinispan.bind.port:11222}"/>
            </socket-bindings>
      
            <security>
               <security-realms>
                  <security-realm name="default">
                     <properties-realm/>
                  </security-realm>
               </security-realms>
            </security>
      
            <endpoints socket-binding="default" security-realm="default">
      	      <endpoint>
      		      <resp-connector />
      		      <rest-connector />
      	      </endpoint>
            </endpoints>
         </server>
      

      Results in the following output:

          <server xmlns="urn:infinispan:server:15.1">
              <interfaces>
                  <interface name="public">
                      <inet-address value="127.0.0.1"/>
                  </interface>
              </interfaces>
              <socket-bindings port-offset="0" default-interface="public">
                  <socket-binding name="default" port="11222" interface="public"/>
              </socket-bindings>
              <security>
                  <security-realms>
                      <security-realm name="default">
                          <properties-realm>
                              <user-properties digest-realm-name="default"/>
                          </properties-realm>
                      </security-realm>
                  </security-realms>
              </security>
              <endpoints>
                  <endpoint socket-binding="default" security-realm="default">
                      <rest-connector name="rest-default" socket-binding="default">
                          <authentication mechanisms="DIGEST" security-realm="default"/>
                      </rest-connector>
                  </endpoint>
              </endpoints>
          </server>
      

      Notice it is missing the RESP connector at the `endpoints` element in the output. The source code for serializing the server configuration is missing support for RESP:

      https://github.com/infinispan/infinispan/blob/b725df89284b292ad8e7c8f5cfa5245f875478f7/server/runtime/src/main/java/org/infinispan/server/configuration/ServerConfigurationSerializer.java#L277-L294

              rh-ee-jbolina Jose Bolina
              rh-ee-jbolina Jose Bolina
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: