This is version . It is not the current version, and thus it cannot be edited.
[Back to current version]   [Restore this version]
TitleFile upload issue
Date26-Jan-2007 17:18:24 EET
Bug criticalityMediumBug
Browser versionIE
Bug statusOpenBug
PageProvider used
Servlet ContainerTomcat 5.5
Operating SystemWindows
Java version1.4.2

Hi, I have developed a wiki based web application and hosted in internet. When I try to upload any documents using the upload option, sometimes I am getting a error like, " Stream ended prematurely." But upload works fine if I access the application directly in the server without accessing via internet. I have no cule where the problem is. Is it a problem with the internet bandwidth or firewall issue? Please help me resloving the issus. Thanks.

Stack Trace:

2007-01-26 15:42:51,179 [TP-Processor7] WARN com.ecyrd.jspwiki.attachment.AttachmentServlet  - Upload failure: Stream ended prematurely. (attachment: (unknown)) Stream ended prematurely.
	at http.utils.multipartrequest.MultipartRequest.readParameter(
	at http.utils.multipartrequest.MultipartRequest.parse(
	at http.utils.multipartrequest.MultipartRequest.initParser(
	at http.utils.multipartrequest.MultipartRequest.<init>(
	at com.ecyrd.jspwiki.attachment.AttachmentServlet.upload(
	at com.ecyrd.jspwiki.attachment.AttachmentServlet.doPost(
	at javax.servlet.http.HttpServlet.service(
	at javax.servlet.http.HttpServlet.service(
	at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(
	at org.apache.catalina.core.ApplicationFilterChain.doFilter(
	at org.apache.catalina.core.StandardWrapperValve.invoke(
	at org.apache.catalina.core.StandardContextValve.invoke(
	at org.apache.catalina.core.StandardHostValve.invoke(
	at org.apache.catalina.valves.ErrorReportValve.invoke(
	at org.apache.catalina.core.StandardEngineValve.invoke(
	at org.apache.catalina.connector.CoyoteAdapter.service(
	at org.apache.jk.server.JkCoyoteHandler.invoke(
	at org.apache.jk.common.HandlerRequest.invoke(
	at org.apache.jk.common.ChannelSocket.invoke(
	at org.apache.jk.common.ChannelSocket.processConnection(
	at org.apache.jk.common.ChannelSocket$SocketConnection.runIt(
	at org.apache.tomcat.util.threads.ThreadPool$
	at Source)

I'm almost certain this is either browser-dependent or proxy-dependent. Downgrading this to MediumBug, since it does not appear every time.

-- JanneJalkanen

It seems its the problem with the IIS server we have integrated with tomcat for providing authentication. the upload works fine after we removed the IIS. But is there a way to provide windows authentication to the application?

Regards, Guru

Yes there is, have a look at NTLM Authentication

--HarryMetske, 05-Feb-2007

Add new attachment

Only authorized users are allowed to upload new attachments.
« This particular version was published on 05-Feb-2007 20:10 by HarryMetske.