DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5822>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=5822

byte lost every 4096 bytes after a 0A

           Summary: byte lost every 4096 bytes after a 0A
           Product: Struts
           Version: 1.0.1 Final
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: File Upload
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]
                CC: [EMAIL PROTECTED]


we use the file upload component to upload xml files. The xml files which are 
generated by VB 
XMLObjects has few enter(0A) between tags. for example, in IE we see tags like this:
<?xml 
version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE ITEMData SYSTEM "ITEMData 
.dtd">
<ITEMData>
 <ITEM>
  <NAME>ABC</NAME> 
    <IPAGE/> 
  </ITEM>
</ITEMData>
but 
the file is like this:
<?xml version="1.0" encoding="Shift_JIS"?>
<!DOCTYPE ITEMData 
SYSTEM "ITEMData 
.dtd">
<ITEMData><ITEM><NAME>ABC</NAME><IPAGE/></ITEM></ITEMData>

we found that 
there are some bytes lost in the xml file. 
Every byte lost is the one 4096 bytes after the lastest 
0A, 
and right byte is replaced by a new 0A. 
So in the file, we lost a byte every 4096 bytes after a 
0A, 
and got a new 0A.

But this phenomenon does not happens every time. Even with 
the same 
file, sometime it happens, sometime it does not. 

We guess is it something about the 
readline() used in the component.
Our project will release in March. Is it a bug in struts?

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to