Axis2-C
  1. Axis2-C
  2. AXIS2C-1591

axiom_element_add_attribute and duplicate names

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 1.7.0
    • Fix Version/s: None
    • Component/s: xml/om
    • Labels:
      None

      Description

      in axiom_element_add_attribute, the attribute is added to the hash of attributes in om_element->attributes
      based on the name (axutil_qname_to_string).
      If an attribute with the same name is already in the hash, that entry is overwritten and thus, will never be freed.
      This seems to be the case always if several xml nodes have the same namespace - the attribute value itself is not used there, or are
      we just talking namespace attributes here?

      I don't even begin to understand what the role of the attributes is, and what happes, if the attributes are stored with different names or such.
      For the moment, I will try to create two hashes, one for the attributes that are used, and one for the attributes that just have to be freed. Of course, a list would be enough for the latter.

      1. om_element.c.patch
        2 kB
        Sebastian Brandt

        Activity

        No work has yet been logged on this issue.

          People

          • Assignee:
            Nandika Jayawardana
            Reporter:
            Sebastian Brandt
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:

              Development