Uploaded image for project: 'ShrinkWrap'
  1. ShrinkWrap
  2. SHRINKWRAP-526

XML comment in property elements is not handled correctly

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • Major
    • None
    • 1.2.6
    • spi
    • None

    Description

      When a property element contains an XML comment, I would expect the property value to be the concatenation of the text nodes surrounding the comment.

      The XmlDomNodeImporterImpl#readRecursive code suggests that the value of the property would be the last text node. That is indeed what a simple test shows XML_comment_in_property_elements_is_not_handled_correctly.patch

      But it's even worse when used to parse multiple servers/groups by Arquillian: isometimes the first text node is used instead of the last node, making the tests impredictible. See the attached XML_comment_in_container_property-1.patch

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              dberinde@redhat.com Dan Berindei (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: