You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Steve Rowe (JIRA)" <ji...@apache.org> on 2015/05/13 14:55:00 UTC

[jira] [Commented] (SOLR-7540) SSLMigrationTest urlScheme isn't tested properly

    [ https://issues.apache.org/jira/browse/SOLR-7540?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14541868#comment-14541868 ] 

Steve Rowe commented on SOLR-7540:
----------------------------------

This fixes it:

{noformat}
Index: solr/core/src/test/org/apache/solr/cloud/SSLMigrationTest.java
===================================================================
--- solr/core/src/test/org/apache/solr/cloud/SSLMigrationTest.java	(revision 1679199)
+++ solr/core/src/test/org/apache/solr/cloud/SSLMigrationTest.java	(working copy)
@@ -103,7 +103,7 @@
     assertEquals("Wrong number of replicas found", 4, replicas.size());
     for(Replica replica : replicas) {
       assertTrue("Replica didn't have the proper urlScheme in the ClusterState",
-          StringUtils.startsWith(replica.getStr(ZkStateReader.BASE_URL_PROP), urlScheme));
+          StringUtils.startsWith(replica.getStr(ZkStateReader.BASE_URL_PROP), urlScheme + ":"));
     }
   }
{noformat}

> SSLMigrationTest urlScheme isn't tested properly
> ------------------------------------------------
>
>                 Key: SOLR-7540
>                 URL: https://issues.apache.org/jira/browse/SOLR-7540
>             Project: Solr
>          Issue Type: Bug
>            Reporter: Steve Rowe
>            Priority: Minor
>
> I noticed that {{SSLMigrationTest.assertReplicaInformation(urlScheme)}} only checks that a replicas' base url *starts with* the given url scheme - since the urlScheme can only be "http" or "https", this check will always succeed when the given urlScheme is "http".



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@lucene.apache.org
For additional commands, e-mail: dev-help@lucene.apache.org