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=23229>.
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=23229

File Upload Not Compatible With IE 5.2.3 MacOS X





------- Additional Comments From [EMAIL PROTECTED]  2003-11-24 13:00 -------
It looks to me as if the issue described is because IE on the Mac is sending a
different file separator character than every other browser.

I've attached code and diff; I've included logging statements just for
illustrative purposes.

But here's the diff:

71a72,73
> import org.apache.log4j.*;
>
135a138,139
>   static Category logger = Category.getInstance(
MultipartStream.class.getName() );
>
164a169
>     protected static final byte[] MAC_IE_SEPARATOR = { 0x0A, 0x43 };
391a397
> logger.warn( "Bytes: " + Byte.toString( marker[0] ) + ", " + Byte.toString(
marker[1] ) );
393a400
> logger.warn( "Stream terminator case..." );
397a405,410
> logger.warn( "Field separator case..." );
>                 nextChunk = true;
>             }
>             else if (arrayequals(marker, MAC_IE_SEPARATOR, 2))
>             {
> logger.warn( "Mac IE case..." );
401a415
> logger.warn( "Error..." );

Here's the logger output (I'm assuming that Martin will want to remove the
logger statements if he chooses to check this in):

2003-11-17 11:53:17,214 WARN  (MultipartStream.java:397) Bytes: 13, 10
2003-11-17 11:53:17,216 WARN  (MultipartStream.java:405) Field separator case...
2003-11-17 11:54:30,040 WARN  (MultipartStream.java:397) Bytes: 10, 67
2003-11-17 11:54:30,042 WARN  (MultipartStream.java:410) Mac IE case...
2003-11-17 11:54:30,043 WARN  (MultipartStream.java:397) Bytes: 10, 67
2003-11-17 11:54:30,044 WARN  (MultipartStream.java:410) Mac IE case...
2003-11-17 11:54:30,046 WARN  (MultipartStream.java:397) Bytes: 13, 10
2003-11-17 11:54:30,047 WARN  (MultipartStream.java:405) Field separator case...
2003-11-17 11:54:30,049 WARN  (MultipartStream.java:397) Bytes: 45, 45
2003-11-17 11:54:30,050 WARN  (MultipartStream.java:400) Stream terminator case...

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

Reply via email to