Hi,

this is my first post here, so if i'm posting in the wrong place, tell me!

I'm using the slide client library to communicate with MS Exchange, which works fine, except for calendar items which were made using the outlook web access. These items get a name like {0123-4567-8901-2345}.EML. When i call the WebdavResource.getChildResource() method, i got an error: org.apache.commons.httpclient.URIException: escaped absolute path not valid

To get around this i modified the setWebdavProperties method to escape the braces:

               href = href.replaceAll("\\{", "%7B");
               href = href.replaceAll("\\}", "%7D");

before assigning the childURI (unmodified):

               char[] childURI = (myURI + (myURI.endsWith("/") ? "" : "/")
                                  + URIUtil.getName(href)).toCharArray();

and then it worked.

Now i know this is a very nasty hack, only scratching my own personal little itch, but i would like to put in some more effort to make a nice patch, so then maybe i can contribute it in the upstream, maybe for the 2.2 release.

My question is whether someone could give me some pointers on where to look to make href an escaped String, or whether href is assumed to already be an escaped String and this is just an Exchange problem, in listing non-escaped filenames instead of escaped ones?

TIA & Cheers,

Willem

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

Reply via email to