Uploaded image for project: 'JBoss Enterprise Application Platform'
  1. JBoss Enterprise Application Platform
  2. JBEAP-4767

Web console should add capacity-(de|in)crementer-properties of resource adapter connection definitions using map-put operation instead of write-attribute operation

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Obsolete
    • Icon: Minor Minor
    • None
    • 7.0.0.GA
    • Web Console
    • None
    • Hide
      • Prepare resource adapter using CLI
        • /subsystem=resource-adapters/resource-adapter=test-adapter:add(archive=test-archive, transaction-support=NoTransaction)
        • /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:add(jndi-name=java:/test-definitions,class-name=Testclass,enabled=false)
        • /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:write-attribute(name=capacity-decrementer-class, value=org.jboss.jca.core.connectionmanager.pool.capacity.WatermarkDecrementer)
      • Enable audit logging using CLI command /core-service=management/access=audit/logger=audit-log:write-attribute(name=enabled, value=true)
      • using web console navigate Configuration > Subsystems > Resource Adapters > test-adapter > View > Connection Definitions > Pool > Edit
      • enter Watermark=753 to Capacity decrementer properties and hit Save
      • using CLI ask for /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:read-attribute(name=capacity-decrementer-properties)
      • using CLI perform reload
      • using CLI ask for /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:read-attribute(name=capacity-decrementer-properties) again
      • see $serverdir/standalone/data/audit-log.log
      Show
      Prepare resource adapter using CLI /subsystem=resource-adapters/resource-adapter=test-adapter:add(archive=test-archive, transaction-support=NoTransaction) /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:add(jndi-name=java:/test-definitions,class-name=Testclass,enabled=false) /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:write-attribute(name=capacity-decrementer-class, value=org.jboss.jca.core.connectionmanager.pool.capacity.WatermarkDecrementer) Enable audit logging using CLI command /core-service=management/access=audit/logger=audit-log:write-attribute(name=enabled, value=true) using web console navigate Configuration > Subsystems > Resource Adapters > test-adapter > View > Connection Definitions > Pool > Edit enter Watermark=753 to Capacity decrementer properties and hit Save using CLI ask for /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:read-attribute(name=capacity-decrementer-properties) using CLI perform reload using CLI ask for /subsystem=resource-adapters/resource-adapter=test-adapter/connection-definitions=test-definitions:read-attribute(name=capacity-decrementer-properties) again see $serverdir/standalone/data/audit-log.log

      According to audit-log.txt

          "ops" : [{
              "operation" : "composite",
              "address" : [],
              "steps" : [{
                  "address" : [
                      { "subsystem" : "resource-adapters" },
                      { "resource-adapter" : "test-adapter" },
                      { "connection-definitions" : "test-definitions" }
                  ],
                  "operation" : "write-attribute",
                  "name" : "capacity-decrementer-properties",
                  "value" : [{ "WaterMark" : "753" }]
              }],
              "operation-headers" : {"access-mechanism" : "HTTP"}
          }]
      

      web console calls write-attribute instead of map-put which leads to type conversion from [("Watermark" => "753")] to {"Watermark" => "753"} after reload and may
      bring unforeseen consequences in the future.

              Unassigned Unassigned
              pjelinek@redhat.com Pavel Jelinek
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: