Bind with accents are not working well.

 

I have created a resource /slide/files/test้

Then i created a bind named /slide/files/test้้

 

In the internet browser, i can see : test%C3%A9%C3%A9/ 
<http://localhost:8081/slide/files/test%25C3%25A9%25C3%25A9> 

 

The Java code :

 

HttpURL oHttpURL = new HttpURL("http://localhost:8081/slide/";);

oHttpURL.setUserinfo("root", "root");

WebdavResource r_oWebdavResource = new WebdavResource(oHttpURL);

r_oWebdavResource.bindMethod( "/slide/files/test้", "/slide/files/test้้");

oWebdavResource.close();

 

The http request :

<?xml version="1.0" encoding="utf-8" ?><D:propfind 
xmlns:D="DAV:"><D:prop><D:displayname/><D:getcontentlength/><D:getcontenttype/><D:resourcetype/><D:getlastmodified/><D:lockdiscovery/></D:prop></D:propfind>BIND
 /slide/files HTTP/1.1

Authorization: Basic ************

User-Agent: Jakarta Commons-HttpClient/3.0-rc2

Host: localhost:8082

Cookie: $Version=0; JSESSIONID=1FA963D1E55AA8CC5D0640E528DCFE19; $Path=/slide

Content-Length: 150

Content-Type: text/xml; charset=utf-8

Overwrite: F

<?xml version="1.0" encoding="utf-8" ?><D:bind 
xmlns:D="DAV:"><D:segment>test%C3%A9%C3%A9</D:segment><D:href>/slide/files/test%C3%A9</D:href></D:bind>

 

 

All other methods( mkcol, move, renamed...) work well with accents.

 

 

 

 

Reply via email to