eclipse-ee4j/jax-rpc-ri

XMLReaderImpl duplicating charaters withinin an encoded CDATA block

Opened this issue · 4 comments

Ok,

The problem would appear to orginate in the InputEntity.class. when parsing the
content from a SOAP response message, within a CDATA section the penultimate
character is repeated. for example.

......<![CDATA[asdfFASDf/aasdfdsaII=]]&gt.......

as opposed to what was streamed to us which is

......<![CDATA[asdfFASDf/aasdfdsaI=]]&gt........

This problem doesn't occur to all CDATA sections in the response, only when a
CDATA section occurs at a certain point in the stream.

This problem does not occur when using the XMLTreeReaderImpl. only the
XMLReaderImpl.

The problem specifically occurs when the penultimate ']' occurs at position
32,768, in the byteInputStream (provided from SAAJ).
the structure of the message in short contains a large string of encoded xml.

e.g.

<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
soap:Body

<?xml
version="1.0">&ltAdditionalItems><InteropAdditionalItem.............<![CDATA[asdfFASDf/aasdfdsaII=]]&gt

so on and so forth -

Now I can't be certain that this still going to be an issue, I am only assuming
it is as I have compared the Version of InputEntity.java I have with the latest
from head here on Java.net. and the only difference apart from the Class Comment
(switching it to open source) is a small fix that I have added and am currently
testing for robustness.

I have deliberately not included the full actual message for reason of non
disclosure etc, but if I get a response or interest shown in this bug and my
potential fix, I will be happy to liaise, and provide further information.

Environment

Operating System: Windows XP
Platform: PC

Affected Versions

[current]

@glassfishrobot Commented
Reported by gupnorth

@glassfishrobot Commented
Was assigned to jax-rpc-issues

@glassfishrobot Commented
This issue was imported from java.net JIRA JAX_RPC-39