| Summary: | ']]>' is not correctly escaped in String to-many attributes | ||
|---|---|---|---|
| Product: | [Modeling] EMF | Reporter: | Carsten Reckord <reckord> |
| Component: | XML/XMI | Assignee: | Ed Merks <Ed.Merks> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | normal | ||
| Priority: | P3 | CC: | Kenn.Hussey |
| Version: | 2.5.0 | ||
| Target Milestone: | --- | ||
| Hardware: | All | ||
| OS: | All | ||
| Whiteboard: | |||
The fix is committed to CVS for 2.7. I assume it's pretty easy to work around this problem in older releases. The fix is available in the latest build for the stream. |
When saving XML, the character sequence ]]> is not correctly escaped when occuring in a String to-many attribute. We are stumbling over this when saving java method bodies in UML OpaqueBehavior.body. This fails for method bodies like writer.println("<![CDATA[stuff]]>"); which is currently encoded as writer.println("<![CDATA[stuff]]>"); (note the unescaped ']]>') Specifically, I think in XMLSave.saveDataTypeMany(), Escape.escapeText() should be used instead of Escape.escape().