mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-10-15 15:02:20 +00:00
Fix for ACE-5608 SOLR 6 - Dynamic shard registration does not support secure sharding
- tested against SOLR4/6 sharded and unsharded git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/DEV/5.2.N/root@132995 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -114,6 +114,9 @@ public class DynamicSolrStoreMappingWrapperFactory
|
|||||||
{
|
{
|
||||||
builder.append(',');
|
builder.append(',');
|
||||||
}
|
}
|
||||||
|
Pair<String, Integer> key = new Pair<String, Integer>(instance.getHostName(), instance.getPort());
|
||||||
|
HttpClient client = clients.get(key);
|
||||||
|
builder.append(encoder.encode(client.getHostConfiguration().getProtocol().getScheme() + "://", "UTF-8"));
|
||||||
builder.append(encoder.encode(instance.getHostName(), "UTF-8"));
|
builder.append(encoder.encode(instance.getHostName(), "UTF-8"));
|
||||||
builder.append(':');
|
builder.append(':');
|
||||||
builder.append(encoder.encode("" + instance.getPort(), "UTF-8"));
|
builder.append(encoder.encode("" + instance.getPort(), "UTF-8"));
|
||||||
|
Reference in New Issue
Block a user