lucene-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Erlend Garåsen (JIRA) <>
Subject [jira] [Created] (SOLR-13270) SolrJ does not send "Expect: 100-continue" header
Date Mon, 25 Feb 2019 16:37:00 GMT
Erlend Garåsen created SOLR-13270:

             Summary: SolrJ does not send "Expect: 100-continue" header
                 Key: SOLR-13270
             Project: Solr
          Issue Type: Bug
      Security Level: Public (Default Security Level. Issues are Public)
          Components: SolrJ
    Affects Versions: 7.7
            Reporter: Erlend Garåsen

SolrJ does not set the "Expect: 100-continue" header, even though it's configured in HttpClient:
A HttpClient developer has reviewed the code and says we're setting up
the client correctly, so we have a reason to believe there is a bug in
SolrJ. It's actually a problem we are facing in ManifoldCF, explained in:

The problem can be reproduced by building and running the following small Maven project:


The application runs SolrJ code where the header does not show up and HttpClient code where
the header is present.

HttpClientBuilder builder = HttpClients.custom();
// This should add an Expect: 100-continue header:
HttpClient httpClient =;

// Start Solr and create a core named "test".
String baseUrl = "http://localhost:8983/solr/test";

// Test using SolrJ — no expect 100 header
HttpSolrClient client = new HttpSolrClient.Builder()
SolrQuery query = new SolrQuery();

// Test using HttpClient directly — expect 100 header shows up:
HttpPost httpPost = new HttpPost(baseUrl);
HttpEntity entity = new InputStreamEntity(new ByteArrayInputStream("test".getBytes()));

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message