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 "Pan, Jiantao" <ji...@labbook.com> on 2001/01/05 16:55:20 UTC
Slide client with mod_dav
Thanks Remy,
From the following debug information, It looks to me like
WebdavClient give method up to 5 attempts.
The first try: The server returns 401 Authoriztion required.
The 2nd try: The Response is empty. [But actually the folder is created,
on apache's log file. it said it returned 201]
not aware of the success, the webdavclient give a the 3rd try. Then got
405 Method not allowed.
After all this, if one use method.getStatusCode(). it will return 405.
Please let me know if you have some idea on how to fix it.
Thanks a lot
----------------------------------------------------------------------------
----
Debug info:
----------------------------------------------------------------------------
----
Start session : Host:localhost Port:80
Request: MKCOL /webdav/newcol HTTP/1.1
MKCOL /webdav/newcol HTTP/1.1
Content-Length: 0
cookie: $Version=1
host: localhost
user-agent: org.apache.webdav.lib.WebdavClient
HTTP/1.1 401 Authorization Required
Response: HTTP/1.1 401 Authorization Required
Date: Fri, 05 Jan 2001 15:08:40 GMT
Server: Apache/1.3.12 (Win32) DAV/1.0.1
WWW-Authenticate: Basic realm="DAV"
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
Closing connection
Reopen connection : Host:localhost Port:80
Request: MKCOL /webdav/newcol HTTP/1.1
MKCOL /webdav/newcol HTTP/1.1
Content-Length: 0
Authorization: Basic anBhbjpwYXNzd29yZA==
cookie: $Version=1
host: localhost
user-agent: org.apache.webdav.lib.WebdavClient
Response:
Closing connection
Reopen connection : Host:localhost Port:80
Request: MKCOL /webdav/newcol HTTP/1.1
MKCOL /webdav/newcol HTTP/1.1
Content-Length: 0
Authorization: Basic anBhbjpwYXNzd29yZA==
cookie: $Version=1
host: localhost
user-agent: org.apache.webdav.lib.WebdavClient
HTTP/1.1 405 Method Not Allowed
Response: HTTP/1.1 405 Method Not Allowed
Date: Fri, 05 Jan 2001 15:08:41 GMT
Server: Apache/1.3.12 (Win32) DAV/1.0.1
Allow: GET, HEAD, POST, PUT, DELETE, OPTIONS, PROPFIND, PROPPATCH, MKCOL,
COPY, MOVE, LOCK, UNLOCK, TRACE
Transfer-Encoding: chunked
Content-Type: text/html; charset=iso-8859-1
-----Original Message-----
From: Remy Maucherat [mailto:remm@apache.org]
Sent: Friday, January 05, 2001 10:31 AM
To: slide-user@jakarta.apache.org
Subject: Re: Can't access Slide with DAVExplorer
> By the way, The mkcol call is actually runs ok, the folder was created. It
> is only the client status code and debug messages are wrong.
You're supposed to get a 405 back when the collection already exists. So if
you run your code multiple times, it's normal.
However, if the collection doesn't exist, you're supposed to get a 201 back
(if the creation is successful, of course).
Is it what you see ?
Remy
Re: Slide client with mod_dav
Posted by Remy Maucherat <re...@apache.org>.
> Thanks Remy,
> From the following debug information, It looks to me like
> WebdavClient give method up to 5 attempts.
> The first try: The server returns 401 Authoriztion required.
> The 2nd try: The Response is empty. [But actually the folder is created,
> on apache's log file. it said it returned 201]
> not aware of the success, the webdavclient give a the 3rd try. Then got
> 405 Method not allowed.
>
> After all this, if one use method.getStatusCode(). it will return 405.
> Please let me know if you have some idea on how to fix it.
> Thanks a lot
Thanks for the log. Apparently the problem is that the client closes the
connection because it thinks something is wrong (instead of parsing the 201
response).
Did you try with the latest version from CVS ? Versions before M5 had some
bugs related to connection management.
Remy