[prev in list] [next in list] [prev in thread] [next in thread] 

List:       xmlbeans-dev
Subject:    [jira] Updated: (XMLBEANS-337) Large CDATA truncated in save()
From:       "Martin Dvorak (JIRA)" <xmlbeans-dev () xml ! apache ! org>
Date:       2007-06-28 15:57:28
Message-ID: 15049251.1183046248149.JavaMail.jira () brutus
[Download RAW message or body]


     [ https://issues.apache.org/jira/browse/XMLBEANS-337?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel \
]

Martin Dvorak updated XMLBEANS-337:
-----------------------------------

    Description: 
I have a XML document (25k) that contains several CDATA sections. When the document \
is written using save() method (I tried multiple streams/file/...), one of the CDATA \
sections (large one) is not completely written - there is missing part of the CDATA \
section content and the finishing mark (]]>). 

Parsed document looks like:
<report...>
...
<![CDATA[ 
...
<xyz/>
...
]]></xml-property>
</report>

Corrupted version produced by save():
<report...>
...
<![CDATA[ 
...
<xy</xml-property>
</report>

I.e. the rest of the document is written properly.

To reproduce my issue just parse the attached XML document (even as xsd:any) and save \
it back. Then compare both files.

(I suspected org.apache.xmlbeans.impl.store.Saver, that buffers are not properly \
flushed. As quickfix I extended buffer sizes and it helped. Presuming that my issue \
might have the same cause as #XMLBEANS-335)


  was:
I have a XML document (25k) that contains several CDATA sections. When the document \
is written using save() method (I tried multiple streams/file/...), one of the CDATA \
sections (large one) is not completely written - there is missing part of the CDATA \
section content and the finishing mark (]]>). 

Parsed document looks like:
<report...>
...
<![CDATA[ 
...
<xyz/>
...
]]></xml-property>
</report>

Corrupted version produced by save():
<report...>
...
<![CDATA[ 
...
<xy</xml-property>
</report>

I.e. the rest of the document is written properly.

(I suspected org.apache.xmlbeans.impl.store.Saver, that buffers are not properly \
flushed. As quickfix I extended buffer sizes and it helped. Presuming that my issue \
might have the same cause as #XMLBEANS-335)



> Large CDATA truncated in save()
> -------------------------------
> 
> Key: XMLBEANS-337
> URL: https://issues.apache.org/jira/browse/XMLBEANS-337
> Project: XMLBeans
> Issue Type: Bug
> Components: XmlObject
> Affects Versions: Version 2.2,  Version 2.3
> Environment: i386, win, jdk1.4/1.5
> Reporter: Martin Dvorak
> Attachments: cdata.rptdesign
> 
> 
> I have a XML document (25k) that contains several CDATA sections. When the document \
> is written using save() method (I tried multiple streams/file/...), one of the \
> CDATA sections (large one) is not completely written - there is missing part of the \
> CDATA section content and the finishing mark (]]>).  Parsed document looks like:
> <report...>
> ...
> <![CDATA[ 
> ...
> <xyz/>
> ...
> ]]></xml-property>
> </report>
> Corrupted version produced by save():
> <report...>
> ...
> <![CDATA[ 
> ...
> <xy</xml-property>
> </report>
> I.e. the rest of the document is written properly.
> To reproduce my issue just parse the attached XML document (even as xsd:any) and \
> save it back. Then compare both files. (I suspected \
> org.apache.xmlbeans.impl.store.Saver, that buffers are not properly flushed. As \
> quickfix I extended buffer sizes and it helped. Presuming that my issue might have \
> the same cause as #XMLBEANS-335)

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@xmlbeans.apache.org
For additional commands, e-mail: dev-help@xmlbeans.apache.org


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic