Skip to content

Fix #76: escape '--' in list item comments of the hierarchy XML - #77

Open
MartinBartolome wants to merge 1 commit into
masterfrom
issue/76
Open

MartinBartolome wants to merge 1 commit into
masterfrom
issue/76

Conversation

@MartinBartolome

Copy link
Copy Markdown
Member

Fixes #76.

SwApplication.allListItemsToXML() wrote the item text unescaped into an XML comment. A text containing -- made the hierarchy XML invalid, so every XPath lookup failed.

  • Replace -- in the comment text by - - (SwApplication.asXmlCommentText). The <listitem> content is unchanged.
  • Add SwApplicationListItemsTest: fails with SAXParseException without the fix, passes with it.

mvn test on taf-swing-server: 9 tests, 0 failures (JDK 17, target 1.8).

SwApplication.allListItemsToXML() wrote the item text unescaped into an XML
comment. A text containing '--' made the hierarchy XML invalid, so every XPath
lookup failed and the hierarchy could not be stored.

Replace '--' in the comment text by '- -'. The <listitem> content is unchanged.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

taf-swing-server: "--" in a list item text makes the hierarchy XML invalid

1 participant