[jira] [Reopened] (SOLR-11885) Solrj client deleteByIds handle route request miss wrap basic auth credentials

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[jira] [Reopened] (SOLR-11885) Solrj client deleteByIds handle route request miss wrap basic auth credentials

JIRA jira@apache.org

     [ https://issues.apache.org/jira/browse/SOLR-11885?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aibao Luo reopened SOLR-11885:
------------------------------

> Solrj client deleteByIds handle route request miss wrap basic auth credentials
> ------------------------------------------------------------------------------
>
>                 Key: SOLR-11885
>                 URL: https://issues.apache.org/jira/browse/SOLR-11885
>             Project: Solr
>          Issue Type: Bug
>      Security Level: Public(Default Security Level. Issues are Public)
>          Components: SolrJ
>    Affects Versions: 5.5.5, 6.6.2, 7.2.1
>            Reporter: Aibao Luo
>            Priority: Major
>             Fix For: 6.6.3
>
>         Attachments: SOLR-11885.patch
>
>
>  
> {code:java}
> public Map<String,LBHttpSolrClient.Req> getRoutes(DocRouter router, DocCollection col, Map<String,List<String>> urlMap, ModifiableSolrParams params, String idField) {
>  ....
>   if (request != null) {  
>     UpdateRequest urequest = (UpdateRequest) request.getRequest();
>    urequest.deleteById(deleteId, version);
>   } else{  
>     UpdateRequest urequest = new UpdateRequest();
>    urequest.setParams(params);
>    urequest.deleteById(deleteId, version);
>    urequest.setCommitWithin(getCommitWithin());
>    request = new LBHttpSolrClient.Req(urequest, urls);
>    routes.put(leaderUrl, request);
>  }
> ....
> }  
> {code}
>  
> while delete by ids, inner wrapped request to routed slice should contains  auth credentials from source request, as adding documents does.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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