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

ASF subversion and git services commented on SOLR-13727:
--------------------------------------------------------

Commit 971b5d58235b05da79797a151b6eac6f67b3e8c0 in lucene-solr's branch 
refs/heads/branch_8x from Yonik Seeley
[ https://gitbox.apache.org/repos/asf?p=lucene-solr.git;h=971b5d5 ]

SOLR-13399: add SPLITSHARD splitByPrefix docs (#903)

* SOLR-13399: add SPLITSHARD splitByPrefix docs

* SOLR-13727: CHANGES entry for bug


> V2Requests: HttpSolrClient replaces first instance of "/solr" with "/api" 
> instead of using regex pattern
> --------------------------------------------------------------------------------------------------------
>
>                 Key: SOLR-13727
>                 URL: https://issues.apache.org/jira/browse/SOLR-13727
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public) 
>          Components: clients - java, v2 API
>    Affects Versions: 8.2
>            Reporter: Megan Carey
>            Priority: Major
>              Labels: easyfix, patch
>             Fix For: master (9.0), 8.3
>
>         Attachments: SOLR-13727.patch
>
>          Time Spent: 1h 20m
>  Remaining Estimate: 0h
>
> When the HttpSolrClient is formatting a V2Request, it needs to change the 
> endpoint from the default "/solr/..." to "/api/...". It does so by simply 
> calling String.replace, which replaces the first instance of "/solr" in the 
> URL with "/api".
>  
> In the case where the host's address starts with "solr" and the HTTP protocol 
> is appended, this call changes the address for the request. Example:
> if baseUrl is "http://solr-host.com/8983/solr";, this call will change to 
> "http:/api-host.com:8983/solr"
>  
> We should use a regex pattern to ensure that we're replacing the correct 
> portion of the URL.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to