SungHun Kim - 2001-09-30

This is a mail from poelzi.
And I fixed the problem.

I really appreciate it.

If you find out some bugs or something, would
you like to let me know about that.

It would be appreciated.

I released 0.2.2 with this bug fix.

------------------------------------------
hi,

i filled out a support request a while ago, but no reaktion :(

today i tryed to get it work with the current cvs.

i done some debuging and found the problem.
i use a debuging proxy and here is my result

first request:

==> OPTIONS http://private.poelzi.org:80/ HTTP/1.1
==> Host: private.poelzi.org:80
==> User-Agent: DAV-FS/0.0.1
==> Connection: Keep-Alive
==> Authorization: Basic cG9lbHppOnRlc3Q=
==>
[0.060 - Server connected]
<== HTTP/1.1 200 OK
<== Date: Sat, 29 Sep 2001 22:22:40 GMT
<== Server: Apache/1.3.20 (Unix) DAV/1.0.2 mod_fastcgi/2.2.10
mod_gzip/1.3.19.1a mod_auth_pam/1.0a mod_layout/2.10.6 PHP/4.0.6
mod_perl/1.25 mod_ssl/2.8.4 OpenSSL/0.9.6a
<== Content-Length: 0
<== MS-Author-Via: DAV
<== Allow: OPTIONS, GET, HEAD, POST, DELETE, TRACE, PROPFIND, PROPPATCH,
COPY, MOVE, LOCK, UNLOCK
<== DAV: 1,2,<http://apache.org/dav/propset/fs/1>
<== Keep-Alive: timeout=15, max=40
<== Connection: Keep-Alive
<== Content-Type: text/plain
<== [0.176000 - Closed by Client]

this is ok. but the secound request:

<?xml version="1.0" encoding="utf-8" ?>
<D:propfind xmlns:D="DAV:">==> PROPFIND http://private.poelzi.org:80/
HTTP/1.1
==> Host: private.poelzi.org:80
==> User-Agent: DAV-FS/0.0.1
==> Connection: Keep-Alive
==> Authorization: Basic cG9lbHppDQo6dGVzdA0K
==> Depth: 0
==> Content-Length: 96
==> Content-Type: text/xml; charset="utf-8"
==>
==> <?xml version="1.0" encoding="utf-8" ?>
==> <D:propfind xmlns:D="DAV:">
==> <D:allprop/>
[0.169 - Server connected]
<== HTTP/1.1 401 Authorization Required
<== Date: Sat, 29 Sep 2001 22:25:02 GMT
<== Server: Apache/1.3.20 (Unix) DAV/1.0.2 mod_fastcgi/2.2.10
mod_gzip/1.3.19.1a mod_auth_pam/1.0a mod_layout/2.10.6 PHP/4.0.6
mod_perl/1.25 mod_ssl/2.8.4 OpenSSL/0.9.6a
<== WWW-Authenticate: Basic realm="private"
<== Keep-Alive: timeout=15, max=40
<== Connection: Keep-Alive
<== Transfer-Encoding: chunked
<== Content-Type: text/html; charset=iso-8859-1
<==
<== 1d8
<== <!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN">
<== <HTML><HEAD>
<== <TITLE>401 Authorization Required</TITLE>
<== </HEAD><BODY>
<== <H1>Authorization Required</H1>
<== This server could not verify that you
<== are authorized to access the document
<== requested. Either you supplied the wrong
<== credentials (e.g., bad password), or your
<== browser doesn't understand how to supply
<== the credentials required.<P>
<== <HR>
<== <ADDRESS>Apache/1.3.20 Server at private.poelzi.org Port 80</ADDRESS>
<== </BODY></HTML>
<==
<== 0
<==
==> </D:propfind>[0.289000 - Closed by Client]

the problem is that the auth is changed. the first is right. and the
base64.c with base64_test outputs the key used by the first request.
i looked into the source but can't see the problem

by
poelzi