Bug with Element.setCData(String) in xml-tools 3.3.5 (#2)
wojciech.kapcia@tigase.net opened 1 decade ago

Sometime between verson 3.0.1 and 3.3.5, the setCData method was changed from setting a cdata property to adding a child node.

This now means that multiple calls to setCData now appends the text rather than overwriting it which is the old (and expected) behaviour.

as reported in the forums Bug with Element.setCData(String) in xml-tools 3.3.5

(change was introduced in the revision r419)

wojciech.kapcia@tigase.net commented 1 decade ago
  • fix tigase.xml.Element.setCData(java.lang.String) to replace CData of the Element;

  • add method tigase.xml.Element.addCData(java.lang.String) that would append data;

  • check all method calls to the method;

  • include information in the release.

wojciech.kapcia@tigase.net commented 1 decade ago

Applied in changeset tigase-xmltools|commit:1111c51a3132c1a609f92350d79c930aaeaa3e2b.

issue 1 of 1
Type
Bug
Priority
Major
Assignee
RedmineID
238
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/tigase-xmltools#2
Please wait...
Page is in error, reload to recover