Uploaded image for project: 'Karaf'
  1. Karaf
  2. KARAF-4523

JMXSecurityMBean bulk canInvoke should be robust even if bulkQuery contains duplicate operations

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 4.0.5
    • Fix Version/s: 4.1.0, 3.0.7, 4.0.6
    • Component/s: karaf
    • Labels:
      None

      Description

      JMXSecurityMBean#canInvoke(Map<String, List<String>>) method throws the following exception in the presence of duplicate operations in the bulkQuery parameter:

      javax.management.openmbean.KeyAlreadyExistsException: Argument value's index, calculated according to this TabularData instance's tabularType, already refers to a value in this table.
      	at javax.management.openmbean.TabularDataSupport.checkValueAndIndex(TabularDataSupport.java:898)
      	at javax.management.openmbean.TabularDataSupport.internalPut(TabularDataSupport.java:358)
      	at javax.management.openmbean.TabularDataSupport.put(TabularDataSupport.java:350)
      	at org.apache.karaf.management.internal.JMXSecurityMBeanImpl.canInvoke(JMXSecurityMBeanImpl.java:102)
      	...
      

      There is an improvement (KARAF-1300) that addressed a similar situlation in a different component, so why not make JMXSecurityMBean robust as well?

        Attachments

          Activity

            People

            • Assignee:
              ffang Freeman Fang
              Reporter:
              tadayosi Tadayoshi Sato
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: