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

Wrong behavior of IIOP subsystem migration command when expressions are used

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 10.0.0.CR5
    • None
    • IIOP
    • None
    • Hide

      You can try to take this xml of subsystem and try to migrate. You can see the issues.

      <subsystem xmlns="urn:jboss:domain:jacorb:1.4">
        <orb giop-minor-version="${iiop-giop-minor-version:1.1}" cache-typecodes="${iiop-cache-typecodes:on}" cache-poa-names="${iiop-cache-poa-names:off}"
          socket-binding="jacorb" ssl-socket-binding="jacorb-ssl"
          name="${iiop-name:go-jboss-go}" print-version="${iiop-print-version:on}" use-imr="${iiop-use-imr:on}" use-bom="${iiop-use-bom:on}">
          <initializers security="${iiop-security:identity}" transactions="${iiop-transactions:on}" />
          <connection retries="${iiop-retries:4}" retry-interval="${iiop-retry-interval:1500}" client-timeout="${iiop-client-timeout:1234}"
            server-timeout="${iiop-server-timeout:4321}" max-server-connections="${iiop-max-server-connections:4}" max-managed-buf-size="${iiop-max-managed-buf-size:25}"
            outbuf-size="${iiop-outbuf-size:1024}" outbuf-cache-timeout="${iiop-outbuf-cache-timeout:-1}" />
        </orb>
        <poa monitoring="${iiop-monitoring:on}" queue-wait="${iiop-queue-wait:on}" queue-min="${iiop-queue-min:42}" queue-max="${iiop-queue-max:42}">
          <request-processors pool-size="${iiop-pool-size:24}" max-threads="${iiop-max-threads:22}" />
        </poa>
        <naming root-context="${iiop-root-context:supported}" export-corbaloc="${iiop-export-corbaloc:off}" />
        <interop sun="${iiop-sun:on}" comet="${iiop-comet:on}" iona="${iiop-iona:on}" chunk-custom-rmi-valuetypes="${iiop-chunk-custom-rmi-valuetypes:off}"
          lax-boolean-encoding="${iiop-lax-boolean-encoding:on}" indirection-encoding-disable="${iiop-indirection-encoding-disable:on}" strict-check-on-tc-creation="${iiop-strict-check-on-tc-creation:on}" />
        <security support-ssl="${iiop-support-ssl:off}" security-domain="other" add-component-via-interceptor="${iiop-add-component-via-interceptor:off}"
          client-supports="${iiop-client-supports:None}" client-requires="${iiop-client-requires:ClientAuth}" server-supports="${iiop-server-supports:None}" server-requires="${iiop-server-requires:ClientAuth}" />
        <properties>
          <property name="propname" value="${iiop-value:supported}" />
        </properties>
        <ior-settings>
          <transport-config integrity="${iiop-integrity:supported}" confidentiality="${iiop-confidentiality:supported}" trust-in-target="${iiop-trust-in-target:supported}" trust-in-client="${iiop-trust-in-client:supported}"
            detect-replay="${iiop-detect-replay:supported}" detect-misordering="${iiop-detect-misordering:supported}" />
          <as-context auth-method="${iiop-auth-method:none}" realm="${iiop-realm:supported}" required="${iiop-required:true}" />
          <sas-context caller-propagation="${iiop-caller-propagation:supported}" />
        </ior-settings>
      </subsystem>
      
      Show
      You can try to take this xml of subsystem and try to migrate. You can see the issues. <subsystem xmlns= "urn:jboss:domain:jacorb:1.4" > <orb giop-minor-version= "${iiop-giop-minor-version:1.1}" cache-typecodes= "${iiop-cache-typecodes:on}" cache-poa-names= "${iiop-cache-poa-names:off}" socket-binding= "jacorb" ssl-socket-binding= "jacorb-ssl" name= "${iiop-name:go-jboss-go}" print-version= "${iiop-print-version:on}" use-imr= "${iiop-use-imr:on}" use-bom= "${iiop-use-bom:on}" > <initializers security= "${iiop-security:identity}" transactions= "${iiop-transactions:on}" /> <connection retries= "${iiop-retries:4}" retry-interval= "${iiop-retry-interval:1500}" client-timeout= "${iiop-client-timeout:1234}" server-timeout= "${iiop-server-timeout:4321}" max-server-connections= "${iiop-max-server-connections:4}" max-managed-buf-size= "${iiop-max-managed-buf-size:25}" outbuf-size= "${iiop-outbuf-size:1024}" outbuf-cache-timeout= "${iiop-outbuf-cache-timeout:-1}" /> </orb> <poa monitoring= "${iiop-monitoring:on}" queue-wait= "${iiop-queue-wait:on}" queue-min= "${iiop-queue-min:42}" queue-max= "${iiop-queue-max:42}" > <request-processors pool-size= "${iiop-pool-size:24}" max-threads= "${iiop-max-threads:22}" /> </poa> <naming root-context= "${iiop-root-context:supported}" export-corbaloc= "${iiop-export-corbaloc:off}" /> <interop sun= "${iiop-sun:on}" comet= "${iiop-comet:on}" iona= "${iiop-iona:on}" chunk-custom-rmi-valuetypes= "${iiop-chunk-custom-rmi-valuetypes:off}" lax- boolean -encoding= "${iiop-lax- boolean -encoding:on}" indirection-encoding-disable= "${iiop-indirection-encoding-disable:on}" strict-check-on-tc-creation= "${iiop-strict-check-on-tc-creation:on}" /> <security support-ssl= "${iiop-support-ssl:off}" security-domain= "other" add-component-via-interceptor= "${iiop-add-component-via-interceptor:off}" client-supports= "${iiop-client-supports:None}" client-requires= "${iiop-client-requires:ClientAuth}" server-supports= "${iiop-server-supports:None}" server-requires= "${iiop-server-requires:ClientAuth}" /> <properties> <property name= "propname" value= "${iiop-value:supported}" /> </properties> <ior-settings> <transport-config integrity= "${iiop-integrity:supported}" confidentiality= "${iiop-confidentiality:supported}" trust-in-target= "${iiop-trust-in-target:supported}" trust-in-client= "${iiop-trust-in-client:supported}" detect-replay= "${iiop-detect-replay:supported}" detect-misordering= "${iiop-detect-misordering:supported}" /> <as-context auth-method= "${iiop-auth-method:none}" realm= "${iiop-realm:supported}" required= "${iiop-required: true }" /> <sas-context caller-propagation= "${iiop-caller-propagation:supported}" /> </ior-settings> </subsystem>

    Description

      If I use expressions in jacorb subsystem then migration to iiop-openjdk is not fully ok.

      I have troubles with following attributes to be migrated correctly

      • giop-version
      • transactions
      • export-corbaloc
      • add-component-via-interceptor

      For giop-versions there is strange string written to element after migration. For export-corbaloc and add-component-via-interceptor the value is changed directly to default one without considering the existence of the expression. For transactions the expression is left but the default value is not changed from on to full. This thing of some enum change values could be problem of other properties as well (maybe).

      Attachments

        Issue Links

          Activity

            People

              tadamski@redhat.com Tomasz Adamski
              ochaloup@redhat.com Ondrej Chaloupka (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: