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

SolrCloud + 2 shards + subquery + auth = 401 Exception

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Reopened
    • Major
    • Resolution: Unresolved
    • 6.4.1, 7.5, 8.11
    • None
    • security, SolrCloud
    • None

    Description

      Environment: * Solr 6.4.1

      • Zookeeper 3.4.6
      • Java 1.8

      Run Zookeeper
      Upload simple configuration wherein the Solr schema has fields for a relationship between parent/child

      Run two Solr instance (2 nodes)
      Create the collection with 1 shard on each Solr nodes
       
      Add parent document to one shard and child document to another shard.

      The response for: * /select?q=ChildIdField:VALUE&fl=*,parents:[subqery]&parents.q={!term f=id v=$row.ParentIdsField}

      correct.
       
      After that add Basic Authentication with some user for collection.
      Restart Solr or reload Solr collection.
      If the simple request /select?q=: with authorization on Solr server is a success then run previously request
      with authorization on Solr server and you get the exception: "Solr HTTP error: Unauthorized (401) "
       
      Screens in the attachment.

      Attachments

        1. screen1.png
          17 kB
          Igor Fedoryn
        2. screen2.png
          39 kB
          Igor Fedoryn

        Issue Links

          Activity

            People

              Unassigned Unassigned
              Ignoring Igor Fedoryn
              Votes:
              1 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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