[Issue 39] New - XMLReaderImpl duplicating charaters withinin an encoded CDATA block

View: New views
1 Messages — Rating Filter:   Alert me  

[Issue 39] New - XMLReaderImpl duplicating charaters withinin an encoded CDATA block

by gupnorth :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

https://jax-rpc.dev.java.net/issues/show_bug.cgi?id=39
                 Issue #|39
                 Summary|XMLReaderImpl duplicating charaters withinin an encode
                        |d CDATA block
               Component|jax-rpc
                 Version|current
                Platform|PC
              OS/Version|Windows XP
                     URL|
                  Status|NEW
       Status whiteboard|
                Keywords|
              Resolution|
              Issue type|DEFECT
                Priority|P3
            Subcomponent|spec
             Assigned to|issues@jax-rpc
             Reported by|gupnorth






------- Additional comments from gupnorth@... Fri May 23 14:52:18 +0000 2008 -------
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=]]>.......

as opposed to what was streamed to us which is

......<![CDATA[asdfFASDf/aasdfdsaI=]]>........

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.

<?xml version="1.0" ?>
 <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Body>
    <CreatePolicyWithClientKeySimpleResponse xmlns="http://www.ssp-uk.com/">
       <CreatePolicyWithClientKeySimpleResult><?xml
version="1.0"><AdditionalItems><InteropAdditionalItem.............<![CDATA[asdfFASDf/aasdfdsaII=]]>

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.

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@...
For additional commands, e-mail: issues-help@...