using java.net.URLEncoder.encode to encode UUID parameter to startToReplicateFrom method

Change-Id: I6af165b62a09fbd28d59830b3bf910ab34f985e7
This commit is contained in:
Axel Uhl committed 2016-01-11 21:43:58 +01:00
1 parent f12f3d5f82
commit bfb9ecb9b5
1 file changed
+2 -1
@@ -78,7 +78,8 @@ public class ReplicationMasterDescriptorImpl implements ReplicationMasterDescrip
UnsupportedEncodingException {
return new URL("http", getHostname(), servletPort, REPLICATION_SERVLET + "?" + ReplicationServlet.ACTION + "="
+ ReplicationServlet.Action.REGISTER.name() + "&" + ReplicationServlet.SERVER_UUID + "="
+ uuid.toString() + "&" + ReplicationServlet.ADDITIONAL_INFORMATION + "="
+ java.net.URLEncoder.encode(uuid.toString(), "UTF-8") + "&"
+ ReplicationServlet.ADDITIONAL_INFORMATION + "="
+ java.net.URLEncoder.encode(ServerInfo.getBuildVersion(), "UTF-8"));
}