You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by "Katilie, John" <Jo...@softwareagusa.com> on 2007/06/27 22:14:24 UTC

Tomcat and Webdav - [Fatal Error] :-1:-1: Premature end of file

All, I'm not sure if I should post this question to the Tomcat or
Commons List server so please let me know if posting it to Tomcat is
Incorrect.

Anyways, I am running Tomcat 5.5.23 and a Standalone Java application
using Common HttpClient to access Webdav resources under Tomcat. When I
updated the client side commons-HttpClient.jar from 2.0 to 3.x I get an
error under Tomcat indicating: [Fatal Error] :-1:-1: Premature end of
file.

This message occurs even though everything seems to work. It occurs on
my 1st webdavResource instantiation:

httpURL        = new HttpURL(uri);
webdavResource = new WebdavResource(httpURL); 

and it seems to occur on each WebdavResource.setPath() request..

Any and all comments are appreciated.

Regards, John Katilie

 

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Webdav - [Fatal Error] :-1:-1: Premature end of file

Posted by Mark Thomas <ma...@apache.org>.
Katilie, John wrote:
> All, I'm not sure if I should post this question to the Tomcat or
> Commons List server so please let me know if posting it to Tomcat is
> Incorrect.

This is the right place.

> Anyways, I am running Tomcat 5.5.23 and a Standalone Java application
> using Common HttpClient to access Webdav resources under Tomcat. When I
> updated the client side commons-HttpClient.jar from 2.0 to 3.x I get an
> error under Tomcat indicating: [Fatal Error] :-1:-1: Premature end of
> file.

This is a bug. Tomcat tries to parse the request content for some WebDAV
requests regardless of whether or not there is any content to parse.

I have a fix and will apply it shortly. It will be in the next 4.1.x,
5.5.x and 6.0.x releases.

Mark

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Re: Tomcat and Webdav - [Fatal Error] :-1:-1: Premature end of file

Posted by Martin Gainty <mg...@hotmail.com>.
seems to be an encoding/decoding issue where IE stores filenames as UTF-8 
and tomcat references using ISO-8859-1
fileName = URLEncoder.encode("manual.pdf", "UTF-8");
http://mail-archives.apache.org/mod_mbox/tomcat-users/200504.mbox/%3C01LMZ3HNUHD6009V6M@fresno.net.uniovi.es%3E

M--
This email message and any files transmitted with it contain confidential
information intended only for the person(s) to whom this email message is
addressed.  If you have received this email message in error, please notify
the sender immediately by telephone or email and destroy the original
message without making a copy.  Thank you.

----- Original Message ----- 
From: "Katilie, John" <Jo...@softwareagusa.com>
To: "Tomcat Users List" <us...@tomcat.apache.org>
Sent: Wednesday, June 27, 2007 4:14 PM
Subject: Tomcat and Webdav - [Fatal Error] :-1:-1: Premature end of file


All, I'm not sure if I should post this question to the Tomcat or
Commons List server so please let me know if posting it to Tomcat is
Incorrect.

Anyways, I am running Tomcat 5.5.23 and a Standalone Java application
using Common HttpClient to access Webdav resources under Tomcat. When I
updated the client side commons-HttpClient.jar from 2.0 to 3.x I get an
error under Tomcat indicating: [Fatal Error] :-1:-1: Premature end of
file.

This message occurs even though everything seems to work. It occurs on
my 1st webdavResource instantiation:

httpURL        = new HttpURL(uri);
webdavResource = new WebdavResource(httpURL);

and it seems to occur on each WebdavResource.setPath() request..

Any and all comments are appreciated.

Regards, John Katilie



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org



---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org