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

CloudSolrClient with basic auth enabled will update even if no credentials supplied

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 7.3
    • None
    • Authentication
    • None

    Description

      This is an offshoot of SOLR-9399. When I was writing a test, if I create a cluster with basic authentication set up, I can still add documents to a collection even without credentials being set in the request.

      However, simple queries, commits etc. all fail without credentials set in the request.

      I'll attach a test class that illustrates the problem.

      If I use a new HttpSolrClient instead of a CloudSolrClient, then the update request fails as expected.

      Noble Paul do you have any insight here? Possibly something with splitting up the update request to go to each individual shard?

      Attachments

        1. SOLR-12161.patch
          10 kB
          Noble Paul
        2. tests.patch
          14 kB
          Erick Erickson
        3. AuthUpdateTest.java
          5 kB
          Erick Erickson

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            noble.paul Noble Paul
            erickerickson Erick Erickson

            Dates

              Created:
              Updated:

              Slack

                Issue deployment