Commit a53b47d1 authored by Sonia Zorba's avatar Sonia Zorba
Browse files

Fixed encoding issue on sharing

parent 598b650c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -167,7 +167,7 @@ public class VOSpaceClient {


        String path = node.getUri().substring(("vos://" + authority).length());
        String path = node.getUri().substring(("vos://" + authority).length());


        HttpRequest request = getRequest("/nodes" + path + "?recursive=" + recursive)
        HttpRequest request = getRequest("/nodes" + urlEncodePath(path) + "?recursive=" + recursive)
                .header("Accept", useJson ? "application/json" : "text/xml")
                .header("Accept", useJson ? "application/json" : "text/xml")
                .header("Content-Type", useJson ? "application/json" : "text/xml")
                .header("Content-Type", useJson ? "application/json" : "text/xml")
                .POST(HttpRequest.BodyPublishers.ofString(marshal(node)))
                .POST(HttpRequest.BodyPublishers.ofString(marshal(node)))