You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by dovan nguyen <do...@yahoo.com> on 2002/10/10 00:53:07 UTC
putMethod adds some junks characters
Hi all,
I have already asked the question but I still have no
clue of the problem...
I deployed slide.war on WL 7. I have configured slide
to use anonymous authentication.
The following is the piece of client code i use to put
a file into slide repository.
WebdavResource resource = null;
try
{
resource = new WebdavResource(new
HttpURL(targetURL));
resource.putMethod("Test Content".getBytes());
}
catch(Exception e)
{
e.printStackTrace();
}
and below is the content of the file:
cc
Test Content
0
Do I need to set anything special on the any slid
configuration files or WebdavResource needs more
properties setting? Please Help.
Thank you,
Dovan
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: putMethod adds some junks characters
Posted by dovan nguyen <do...@yahoo.com>.
Hi Mickael,
I've tried to deploy slide.war onto Tomcat and it
works fine....
I definitely suspect it's WL 7.0...
I will try your suggestion today.
Thanks,
Dovan
--- Michael Smith <ms...@xn.com.au> wrote:
> dovan nguyen wrote:
> >
> > Hi all,
> >
> > I have already asked the question but I still have
> no
> > clue of the problem...
>
> This problem (still) looks like a bug in WL7. I've
> tested the client,
> and it definately works correctly, and the webdav
> servlet never deals
> with HTTP/1.1 chunking directly, so it couldn't be a
> bug there. Perhaps
> you could write a simple test servlet to run in your
> servlet container
> that implements doPut() and writes the input stream
> from the
> HttpServletRequest directly to a file - then, if
> that file has those
> bogus extra characters, it'd definately be a server
> bug.
>
> Michael
>
> --
> To unsubscribe, e-mail:
> <ma...@jakarta.apache.org>
> For additional commands, e-mail:
> <ma...@jakarta.apache.org>
>
__________________________________________________
Do you Yahoo!?
Faith Hill - Exclusive Performances, Videos & More
http://faith.yahoo.com
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>
Re: putMethod adds some junks characters
Posted by Michael Smith <ms...@xn.com.au>.
dovan nguyen wrote:
>
> Hi all,
>
> I have already asked the question but I still have no
> clue of the problem...
This problem (still) looks like a bug in WL7. I've tested the client,
and it definately works correctly, and the webdav servlet never deals
with HTTP/1.1 chunking directly, so it couldn't be a bug there. Perhaps
you could write a simple test servlet to run in your servlet container
that implements doPut() and writes the input stream from the
HttpServletRequest directly to a file - then, if that file has those
bogus extra characters, it'd definately be a server bug.
Michael
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>