Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-11885

Solrj client deleteByIds handle route request miss wrap basic auth credentials

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 5.5.5, 6.6.2, 7.2.1
    • None
    • SolrJ
    • None

    Description

       

      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);
       } 
      .... 
      }  
      

       

      while delete by ids, inner wrapped request to routed slice should contains  auth credentials from source request, as adding documents does.

      Attachments

        1. SOLR-11885.patch
          0.8 kB
          Aibao Luo

        Issue Links

          Activity

            People

              erickerickson Erick Erickson
              roaporl Aibao Luo
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: