[ http://issues.apache.org/struts/browse/STR-427?page=all ] Don Brown reopened STR-427: ---------------------------
Assign To: (was: Struts Developer Mailing List) > byte lost every 4096 bytes after a 0A > ------------------------------------- > > Key: STR-427 > URL: http://issues.apache.org/struts/browse/STR-427 > Project: Struts Action 1 > Type: Bug > Components: Action > Versions: 1.1 Beta 1 > Environment: Operating System: Solaris > Platform: Sun > Reporter: Jessica Lin > Fix For: 1.1 Family > > 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? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/struts/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]