Uploaded image for project: 'Apache Knox'
  1. Apache Knox
  2. KNOX-1066

Update Operations via SOLR to Knox Fail

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.12.0, 0.13.0, 1.0.0, 1.1.0, 1.2.0, 1.3.0
    • None
    • Site
    • None

    Description

      When using the Java SOLRJ HttpSolrClient, any operation that relies upon a POST HTTP operation fails authentication when proxied via Knox. This is because the SOLRJ API only supports traditional challenge/response basic authentication. For any update style operation the SOLRJ client refuses to retry the operation as it might lead to duplicate data, etc. If this were a GET operation, it would retry the operation and include the appropriate authentication header.

      Therefore preemptive authentication must be used for updates to succeed. Unfortunately, the Apache HttpClient construction is hidden from the client in the form of the HttpSolrClient.Builder class.

      Attachments

        1. PreemptiveHttpSolrClient.java
          5 kB
          Richard Kellog Jr.

        Activity

          People

            rkellogg Richard Kellog Jr.
            rkellogg Richard Kellog Jr.
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: