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

Steve Rowe updated SOLR-11885:
------------------------------
    Fix Version/s:     (was: 6.6.3)

> 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
>            Assignee: Erick Erickson
>            Priority: Major
>         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: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org

Reply via email to