Hi !
When I use the constructor method WebdavResource(HttpUrl, action, depth), it works
very well if the HttpUrl corresponds to a resource on a Slide server (with host =
localhost and port = 8080).
But when I use it for a resource on Apache/mod_dav server (port = 80), I get that
horrible message :
org.apache.commons.httpclient.HttpException: Unauthorized 401
at org.apache.commons.httpclient.HttpClient.executeMethod(HttpClient.java:643)
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:2829)
at org.apache.webdav.lib.WebdavResource.propfindMethod(WebdavResource.java:2798)
at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java:693)
at org.apache.webdav.lib.WebdavResource.setBasicProperties(WebdavResource.java:680)
at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java:1539)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:987)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1006)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1085)
at org.apache.webdav.lib.WebdavResource.setHttpURL(WebdavResource.java:1103)
at org.apache.webdav.lib.WebdavResource.<init>(WebdavResource.java:275)
and I don't understand why, because I set right user info (or I think I'm right).
In my httpd.conf I have this :
<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
AllowOverride None
DAV On
<Limit PUT POST DELETE PROPFIND PROPPATCH MKCOL COPY MOVE LOCK UNLOCK>
Require user admin frb elo
</Limit>
</Directory>
and the passwords of two users frb and elo are in the file ap_user.conf. So I think
this is right configured (but I'm not sure, I may have missed something).
Can someone help me ? I feel desperate :o(