There is a bug in (I think) the HttpClient implementation used from commons. When a port number is used in the url it mangles it. If you trace in you will see that the url associated with the credentials has been mangled to "<IP>80:80/exchange/test/contacts". Unfortunately Slide is not compatible with the newest version of HttpClient.
-----Original Message----- From: Mahen Perera [mailto:[EMAIL PROTECTED] Sent: Thursday, December 01, 2005 2:37 AM To: [email protected] Subject: problem with WebDavResource.listWebdavResources() ... I am using the jakarta-slide-webdavlib-2.1.jar and commons-httpclient.jar - 2.0 final following is the code snippet.. WebdavResource ObjWebResource = new WebdavResource(" http://<IP>:80/exchange/test/Contacts", new UsernamePasswordCredentials("test","test")); WebdavResource[] objContactList = ObjWebResource.listWebdavResources(); The above method throws the following exception.... org.apache.commons.httpclient.URIException: escaped absolute path not valid at org.apache.commons.httpclient.URI.setRawPath(URI.java:2781) at org.apache.commons.httpclient.URI.parseUriReference(URI.java:1973) at org.apache.commons.httpclient.HttpURL.<init>(HttpURL.java:78) at org.apache.webdav.lib.WebdavResource.setWebdavProperties( WebdavResource.java:1078) at org.apache.webdav.lib.WebdavResource.setNamedProp(WebdavResource.java :968) at org.apache.webdav.lib.WebdavResource.setBasicProperties( WebdavResource.java:912) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java :1894) at org.apache.webdav.lib.WebdavResource.setProperties(WebdavResource.java :1917) at org.apache.webdav.lib.WebdavResource.getChildResources( WebdavResource.java:2082) at org.apache.webdav.lib.WebdavResource.listWebdavResources( WebdavResource.java:2099) at com.xxx.util.messenger.impl.msexchange.MsExchangeContact.getContactData( MsExchangeContact.java:207) at com.xxx.util.messenger.MessengerBuilderFactory.main( MessengerBuilderFactory.java:179) Someone pls help pls pls.. Thanks in advance.. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
