Edgewall Software
Modify

Opened 19 years ago

Closed 19 years ago

Last modified 17 years ago

#99 closed defect (fixed)

Incorrect parsing of integrated CDATA Section

Reported by: sven.reimers@… Owned by: cmlenz
Priority: blocker Milestone: 0.6
Component: General Version: dev
Keywords: Cc: florian.vogler@…
Operating System:

Description

ant_log.xml files do contain CDATA sections, which have the real message text encoded. These do not get transferred back from the slave to the server, since the Node.type is 4 not 3 (xml.dom.minidom) for CDATA nodes. This is caused from

    def gettext(self):
        """Return the text content of this element.
        
        This concatenates the values of all text nodes that are immediate
        children of this element.
        """
        return ''.join([c.nodeValue.encode('utf-8')
                        for c in self._node.childNodes if c.nodeType == 3])

The following solution is working for me.

    def gettext(self):
        """Return the text content of this element.
        
        This concatenates the values of all text nodes that are immediate
        children of this element.
        """
        return ''.join([c.nodeValue.encode('utf-8')
                        for c in self._node.childNodes if c.nodeType in (3,4)])

This is quite disturbing and can be found with trunk version and ant-1.6.5 on windows and unixes.

Attachments (0)

Change History (2)

comment:1 Changed 19 years ago by sven.reimers@…

  • Cc florian.vogler@… added

Should be interesting for you as well.

comment:2 Changed 19 years ago by cmlenz

  • Resolution set to fixed
  • Status changed from new to closed

Fixed in [353]. Thanks!

Add Comment

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain cmlenz.
The resolution will be deleted. Next status will be 'reopened'.
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.