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

CollectionAdminRequest's processAndWait does not propagate the per-request basic auth credentials from the main request to RequestStatus and DeleteStatus used internally

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 9.0, 8.10
    • security
    • None

    Description

      Here's a basic use case that fails on 8x because the basic auth credentials supplied on the Create request do not propagate to the RequestStatus and DeleteStatus objects used internally for the waitFor:

        @Test
        public void testCreateCollAsync() throws Exception {
          CollectionAdminRequest.Create create =
              CollectionAdminRequest.createCollection(collectionName, "conf", 1, 2, 0, 0);
          create.setMaxShardsPerNode(2);
          withBasicAuth(create).processAndWait(cluster.getSolrClient(), 5);
          waitForState("Expected collection to be created with 1 shard and " + 2 + " replicas",
              collectionName, clusterShape(1, 2));
          DocCollection docCollection =
              assertNumberOfReplicas(collectionName, 2, 0, 0, false, true);
           ...
        }
      

      Attachments

        Activity

          People

            thelabdude Timothy Potter
            thelabdude Timothy Potter
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 1h 10m
                1h 10m