I've just tried with the configuration you gave me and it doesn't work at
all...

For my code, I got problem as soon as I call the constructeur :

        hUrl = new HttpURL(host, port, path);
        davRes = new WebdavResource(hUrl, defaultAction, defaultDepth);
        davRes.setUserInfo(user, passwd);

With host = "localhost", port=80, and path is the right path of a resource
on the server.
And the program does go to setUserInfo : it gets an error just before...
As for the configuration of the server, I didn't change much things except
that I gave you (and that configuration was given to me, I didn't write it
myself, so I supposed it was ok)...

What I don't undestand too is why the propfind method is launched within the
constructor method (you can see it in my message error).
When I try that code :

        HttpClient client = new HttpClient();
        client.setDebug(10);
        client.startSession("localhost", 80, new Credentials(user, passwd));
it works very well..
And I can call after that methods like PROPFIND or PROPPATCH without any
problem...

That makes a lot of incoherence, don't you think ?



----- Original Message -----
From: "Sung-Gu" <[EMAIL PROTECTED]>
To: "Slide Users Mailing List" <[EMAIL PROTECTED]>
Sent: Friday, March 22, 2002 11:23 AM
Subject: Re: problem with Apache & propfind


>
> ----- Original Message -----
> From: "Elodie Tasia" <[EMAIL PROTECTED]>
> To: "Slide Group" <[EMAIL PROTECTED]>
> Sent: Friday, March 22, 2002 6:13 PM
> Subject: problem with Apache & propfind
>
>
> org.apache.commons.httpclient.HttpException: Unauthorized  401
>
> <Directory />
>     AuthName everteam
>     AuthType Basic
>     AuthGroupFile "D:\Program Files\Apache
Group\Apache\conf\ap_group.conf"
>     AuthUserFile "D:\Program Files\Apache Group\Apache\conf\ap_user.conf"
>     AuthAuthoritative on
>     Options FollowSymLinks  <== U can set set "All" temporarily for ur
eaiser debugging
>     AllowOverride None
>     DAV On
>    Order allow, deny  <==  Please, add it.
>    Allow from .ur_domain.net (or ur_host or all)   <== Please, add it.
>    <Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
>            Require user admin frb elo
>    </Limit>
> </Directory>
>
> I think ur configuration is so stricted.  u need to set that ur client is
possible to get stuff from the server at least.
>
> If it wouldn't work well, additional information about ur password, ur
code and the additional server configuration is required to guess ur
problem.
>
> Sung-Gu
>
>


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to