Hi,

I hope this rings a bell with someone on the list who may have experienced
something similar. I've included as much info as I think may be useful, but
let me know if I've missed out anything important!

I have a problem uploading files in Java when using Apache to connect to a
servlet engine, and managed to replicate the problem in a simple test.

I am attempting to upload a text file consisting of lines of @ characters
(to make it easier to spot corruption), which is about 614k. While the file
is uploading (which takes about a minute on broadband), I open another
browser window and browse a completely different site.

When the upload has completed, upon examining the uploaded file, I find that
some of the information sent by the other browser window to the other
website has been mixed into the uploaded file, although the overall file
size is exactly the same as the file on the client machine.

It looks like this:

<start of file extract>
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg,
application/vnd.ms-powerpoint, application/vnd.ms-excel, application/msword,
*/*
Referer: http://www.theregister.co.uk/content/53/index.html
Accept-Language: en-gb
Accept-Encoding: gzip, deflate
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 5.0)
Host: www.theregister.co.uk
Connection: Keep-Alive

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
<end of file extract>

...the @ symbols are all that is supposed to be there! (www.theregister.com
is the site I was browsing in the other browser)

I have used two different Java upload components:
 1) com.oreilly.servlet
 2) com.jspsmart.upload

I have used two different servlet engines:
 1) Tomcat4 linking to Apache via ajp13 and mod_jk
 2) JRun4 linking to Apache with with mod_jrun

I have used two different Linux servers:
 1) RedHat 7.1-1, running Apache 1.3.19-5
 2) Raq4 running Apache 1.3.20

I was using IE5.5 on a PC for the upload client and browsing the other site.
I also replicated the problem by browsing another site using a Mac, which
was sharing a broadband connection with the PC and running. IE5.2:mac. The
problem still occured when I switched off connection sharing on the PC.

The problem ONLY happens when I access the site via Apache - if I connect
directly to the servlet engine's port, the problem disappears.

The issue appears to be unrelated to file size.

Could it be that I have not configured Apache correctly, or this is a bug in
version 1.3 and I need to update to Apache 2?

Andy Taylor


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@;jakarta.apache.org>

Reply via email to