Hi all,
I try to upload files via HTTPBuilder (Groovy Version: 2.4.7 JVM: 1.8.0_40 Vendor: Oracle Corporation OS: Mac OS X). After a couple of test I realized, that filenames containing a plus sign ("+") can't be uploaded. The REST Service responds with HTTP/1.1 400 Bad Request. After some more debugging I think these filenames will not get encoded correctly:
uri.path = "/rest/" + objectNamespace + "/" + objectFile.name
groovyx.net.http.HTTPBuilder doRequest
FINE: PUT http://172.16.29.10/rest/TEST/space%20space.doc - Filename: space\ space.doc - OK
groovyx.net.http.HTTPBuilder doRequest
FINE: PUT http://172.16.29.10/rest/TEST/plus+plus.doc -Filename plus+plus.doc - ERROR
All other "special" characters like spaces, #, &, % or ? will get encoded correctly ...
Does anybody know how to resolve this issue?
Thanks in advance
Paolo
