Uploaded image for project: 'JBoss Admin Console'
  1. JBoss Admin Console
  2. JBADMCON-135

MBean attribute type java.util.Properties improperly handled when applying changes on page JMX MBean View

This issue belongs to an archived project. You can view it, but you can't modify it. Learn more

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • None
    • None
    • None

    Description

      If you have an MBean attribute whose type is java.util.Properties (there is a built-in property editor for setting these in jboss-service.xml), applying changes to any attribute of that MBean is perilous. Its value is shown on the JMX MBean View form as

      {name1=value1, name2=value2, name3=value3}

      in an input field. That's not a bug for viewing the values, but the bug is that the style used for rendering values cannot be submitted to retain the attribute's value. If you don't change the Properties but simply click the "Apply Changes" button, the property values are now shown as name1=value1, name2=value2, name3=value3, and in fact what happened is that now there is a single property named "

      {name1" whose value is "value1, name2=value2, name3=value3}

      ". Similarly, it is difficult to actively edit the field to obtain the property list you want.

      Workaround: It is possible to create the desired properly list by submitting the form twice: First set the property value to include "\r\n" and click "Apply Changes". This produces a new form showing an incorrect value for the properties, but with a multi-line text field for the Properties value. Now the correct properties values can be entered, one per line, like this:
      name1=value1
      name2=value2
      name3=value3

      Attachments

        Activity

          People

            Unassigned Unassigned
            benhurwitz Ben Hurwitz (Inactive)
            Archiver:
            rhn-support-adandapa Aitik Dandapat

            Dates

              Created:
              Updated:
              Archived:

              PagerDuty