Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-9076

Make the IIOP migration warnings more user friendly

    Details

    • Type: Enhancement
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 11.0.0.Alpha1
    • Fix Version/s: 11.0.0.Beta1
    • Component/s: IIOP
    • Labels:
      None

      Description

      JBEAP-10124 changed the behaviour of jacorb:migrate operation to print migration warnings instead of throwing an error in case inconsistent configuration was used. We should update the warning messages to more user friendly form as now it may not be totally clear for user what is expected of him to do.

      reproduce
      Add the following snippet into EAP7.1 standalone.xml configuration

      <extension module="org.jboss.as.jacorb"/>
      ...
      <subsystem xmlns="urn:jboss:domain:jacorb:1.4">
          <orb socket-binding="jacorb" ssl-socket-binding="jacorb-ssl">
              <initializers security="identity" transactions="on"/>
          </orb>
          <security client-supports="ServerAuth" client-requires="ServerAuth" server-supports="ServerAuth" server-requires="ServerAuth"/>
          <ior-settings>
              <transport-config integrity="required" confidentiality="supported" trust-in-client="required" trust-in-target="supported"
                  detect-replay="required" detect-misordering="required"/>
              <as-context auth-method="none" realm="ApplicationRealm" required="true"/>
              <sas-context caller-propagation="supported"/>
          </ior-settings>
      </subsystem>
      

      run the following command from $JBOSS_HOME/bin directory

      [pkremens@localhost bin] $ ./jboss-cli.sh 'embed-server, /subsystem=jacorb:describe-migration' | grep --after-context=7 migration-warnings
      

      actual

              "migration-warnings" => [
                  "WFLYIIOP0111: SSL has not been configured but ssl-port property has been specified - the connection will use clear-text protocol",
                  "WFLYIIOP0105: Inconsistent transport-config configuration: integrity is not supported but it is not configured with NONE value",
                  "WFLYIIOP0105: Inconsistent transport-config configuration: confidentiality is not supported but it is not configured with NONE value",
                  "WFLYIIOP0105: Inconsistent transport-config configuration: trust-in-client is not supported but it is not configured with NONE value",
                  "WFLYIIOP0104: Inconsistent transport-config configuration: detect-misordering is supported but it is configured with NONE value",
                  "WFLYIIOP0104: Inconsistent transport-config configuration: detect-replay is supported but it is configured with NONE value"
              ]
      

      expected
      Warning messages clearly states what is expected from user to make the configuration valid.

      ...
                  "WFLYIIOP0105: Inconsistent transport-config configuration: trust-in-client is not supported, please remove it or configure it to NONE value",
      ...
      

      cc: Daniel Simko, Ondrej Chaloupka

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tomekadamski Tomasz Adamski
                  Reporter:
                  tomekadamski Tomasz Adamski
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: