]
Steven Hawkins resolved TEIID-5242.
-----------------------------------
Resolution: Done
Corrected the json attribute logic and captured the event iterators as reusable lists.
XML/JSON issues
---------------
Key: TEIID-5242
URL:
https://issues.jboss.org/browse/TEIID-5242
Project: Teiid
Issue Type: Quality Risk
Components: Query Engine
Reporter: Steven Hawkins
Assignee: Steven Hawkins
Fix For: 10.2, 10.0.3, 9.3.7, 10.1.1
TEIID-5233 highlighted a couple of issues with xml and json:
XMLEventStreamReader is very inefficient in dealing with a large number of
attributes/namespaces as the iterator was traversed on each access.
JsonToXmlContentHandler was not strictly correct in the events that it emitted.
Namespace and attribute events should be associated with their respective start/end
element events. While the JRE libraries are tolerant to emitting the events separately,
Saxon was not. To prevent issues with embedded consumers reading directly from the stax
event stream this should be corrected.