You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@solr.apache.org by "ASF subversion and git services (Jira)" <ji...@apache.org> on 2021/08/04 22:21:00 UTC
[jira] [Commented] (SOLR-15575) CollectionAdminRequest's
processAndWait does not propagate the per-request basic auth credentials
from the main request to RequestStatus and DeleteStatus used internally
[ https://issues.apache.org/jira/browse/SOLR-15575?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17393472#comment-17393472 ]
ASF subversion and git services commented on SOLR-15575:
--------------------------------------------------------
Commit dd655f700f2561e184e86250fb4153185cdfe3f1 in solr's branch refs/heads/main from Timothy Potter
[ https://gitbox.apache.org/repos/asf?p=solr.git;h=dd655f7 ]
SOLR-15575: Propagate request level basic auth creds from the top-level request to internally used async requests (#246)
> CollectionAdminRequest's processAndWait does not propagate the per-request basic auth credentials from the main request to RequestStatus and DeleteStatus used internally
> -------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: SOLR-15575
> URL: https://issues.apache.org/jira/browse/SOLR-15575
> Project: Solr
> Issue Type: Bug
> Security Level: Public(Default Security Level. Issues are Public)
> Components: security
> Reporter: Timothy Potter
> Assignee: Timothy Potter
> Priority: Major
> Time Spent: 10m
> Remaining Estimate: 0h
>
> 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}}:
> {code}
> @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);
> ...
> }
> {code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@solr.apache.org
For additional commands, e-mail: issues-help@solr.apache.org