[jira] [Created] (SOLR-11356) Basic Authentication not supported on ConcurrentUpdateSolrClient

2017-09-13 Thread Robert Alexandersson (JIRA)
Robert Alexandersson created SOLR-11356:
---

 Summary: Basic Authentication not supported on 
ConcurrentUpdateSolrClient
 Key: SOLR-11356
 URL: https://issues.apache.org/jira/browse/SOLR-11356
 Project: Solr
  Issue Type: Bug
  Security Level: Public (Default Security Level. Issues are Public)
  Components: Authentication
Affects Versions: 6.5
Reporter: Robert Alexandersson


The basic authentication is not appended on the method of the http object. 

I have verified that its fixable on a clone of the 6.5 base code for 
ConcurrentUpdateSolrClient. Just use the setBasicAuthHeader from the httpclient 
on line 285 of the ConcurrentUpdateSolrClient.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Created] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-14 Thread Robert Alexandersson (JIRA)
Robert Alexandersson created SOLR-10134:
---

 Summary: EmbeddedSolrServer does not support SchemaAPI
 Key: SOLR-10134
 URL: https://issues.apache.org/jira/browse/SOLR-10134
 Project: Solr
  Issue Type: Bug
  Security Level: Public (Default Security Level. Issues are Public)
  Components: Server, SolrJ
Reporter: Robert Alexandersson


The EmbeddedSolrServer server does not support calls to the POST methods of 
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set 
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
required by the SchemaHandler class that actually performs the call. 

Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
aprox row 174 with the following: "req.getContext().put("httpMethod", 
request.getMethod().name());". This change requires the Factory methods of 
SolrJ to add the intended method to be used example : new 
SchemaRequest.AddField() should append the POST method similar to how the 
SchemaRequest.Field appends the GET method.

I have written a separate EmbeddedSolrServer with this fix in it and it "works" 
now and fields can be created on the fly using the SchemaAPI of the solrj 
client.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-14 Thread Robert Alexandersson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Alexandersson updated SOLR-10134:

Description: 
The EmbeddedSolrServer server does not support calls to the POST methods of 
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set 
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
required by the SchemaHandler class that actually performs the call at 
SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 

Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
aprox row 174 with the following: "req.getContext().put("httpMethod", 
request.getMethod().name());". This change requires the Factory methods of 
SolrJ to add the intended method to be used example : new 
SchemaRequest.AddField() should append the POST method similar to how the 
SchemaRequest.Field appends the GET method.

I have written a separate EmbeddedSolrServer with this fix in it and it "works" 
now and fields can be created on the fly using the SchemaAPI of the solrj 
client.

  was:
The EmbeddedSolrServer server does not support calls to the POST methods of 
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set 
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
required by the SchemaHandler class that actually performs the call. 

Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
aprox row 174 with the following: "req.getContext().put("httpMethod", 
request.getMethod().name());". This change requires the Factory methods of 
SolrJ to add the intended method to be used example : new 
SchemaRequest.AddField() should append the POST method similar to how the 
SchemaRequest.Field appends the GET method.

I have written a separate EmbeddedSolrServer with this fix in it and it "works" 
now and fields can be created on the fly using the SchemaAPI of the solrj 
client.


> EmbeddedSolrServer does not support SchemaAPI
> -
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: Server, SolrJ
>Reporter: Robert Alexandersson
>  Labels: test-driven
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of 
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never 
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
> required by the SchemaHandler class that actually performs the call at 
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
> aprox row 174 with the following: "req.getContext().put("httpMethod", 
> request.getMethod().name());". This change requires the Factory methods of 
> SolrJ to add the intended method to be used example : new 
> SchemaRequest.AddField() should append the POST method similar to how the 
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer with this fix in it and it 
> "works" now and fields can be created on the fly using the SchemaAPI of the 
> solrj client.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-15 Thread Robert Alexandersson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Alexandersson updated SOLR-10134:

Description: 
The EmbeddedSolrServer server does not support calls to the POST methods of 
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set 
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
required by the SchemaHandler class that actually performs the call at 
SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 

Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
aprox row 174 with the following: "req.getContext().put("httpMethod", 
request.getMethod().name());". This change requires the Factory methods of 
SolrJ to add the intended method to be used example : new 
SchemaRequest.AddField() should append the POST method similar to how the 
SchemaRequest.Field appends the GET method.

I have written a separate EmbeddedSolrServer that replaces the one in SolR. It 
works for now and fields can be created on the fly using the SchemaAPI of the 
solrj client, but would like to be able to remove this workaround.

  was:
The EmbeddedSolrServer server does not support calls to the POST methods of 
SchemaAPI using SolRJ api. The reason is that the httpMethod param is never set 
by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
required by the SchemaHandler class that actually performs the call at 
SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 

Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
aprox row 174 with the following: "req.getContext().put("httpMethod", 
request.getMethod().name());". This change requires the Factory methods of 
SolrJ to add the intended method to be used example : new 
SchemaRequest.AddField() should append the POST method similar to how the 
SchemaRequest.Field appends the GET method.

I have written a separate EmbeddedSolrServer with this fix in it and it "works" 
now and fields can be created on the fly using the SchemaAPI of the solrj 
client.


> EmbeddedSolrServer does not support SchemaAPI
> -
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: Server, SolrJ
>Reporter: Robert Alexandersson
>  Labels: test-driven
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of 
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never 
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
> required by the SchemaHandler class that actually performs the call at 
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
> aprox row 174 with the following: "req.getContext().put("httpMethod", 
> request.getMethod().name());". This change requires the Factory methods of 
> SolrJ to add the intended method to be used example : new 
> SchemaRequest.AddField() should append the POST method similar to how the 
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer that replaces the one in SolR. 
> It works for now and fields can be created on the fly using the SchemaAPI of 
> the solrj client, but would like to be able to remove this workaround.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-16 Thread Robert Alexandersson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Alexandersson updated SOLR-10134:

Affects Version/s: 6.4.1

> EmbeddedSolrServer does not support SchemaAPI
> -
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: Server, SolrJ
>Affects Versions: 6.4.1
>Reporter: Robert Alexandersson
>  Labels: test-driven
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of 
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never 
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
> required by the SchemaHandler class that actually performs the call at 
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
> aprox row 174 with the following: "req.getContext().put("httpMethod", 
> request.getMethod().name());". This change requires the Factory methods of 
> SolrJ to add the intended method to be used example : new 
> SchemaRequest.AddField() should append the POST method similar to how the 
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer that replaces the one in SolR. 
> It works for now and fields can be created on the fly using the SchemaAPI of 
> the solrj client, but would like to be able to remove this workaround.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Updated] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-16 Thread Robert Alexandersson (JIRA)

 [ 
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Alexandersson updated SOLR-10134:

Attachment: SOLR-10134.patch

> EmbeddedSolrServer does not support SchemaAPI
> -
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: Server, SolrJ
>Affects Versions: 6.4.1
>Reporter: Robert Alexandersson
>  Labels: test-driven
> Attachments: SOLR-10134.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of 
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never 
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
> required by the SchemaHandler class that actually performs the call at 
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
> aprox row 174 with the following: "req.getContext().put("httpMethod", 
> request.getMethod().name());". This change requires the Factory methods of 
> SolrJ to add the intended method to be used example : new 
> SchemaRequest.AddField() should append the POST method similar to how the 
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer that replaces the one in SolR. 
> It works for now and fields can be created on the fly using the SchemaAPI of 
> the solrj client, but would like to be able to remove this workaround.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-16 Thread Robert Alexandersson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15870187#comment-15870187
 ] 

Robert Alexandersson commented on SOLR-10134:
-

Path uploaded and can be found here as well: 
https://github.com/alero/lucene-solr/commit/3603832e3d4fdb3bfe3fa9eb27202b71dda4e068

> EmbeddedSolrServer does not support SchemaAPI
> -
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: Server, SolrJ
>Affects Versions: 6.4.1
>Reporter: Robert Alexandersson
>  Labels: test-driven
> Attachments: SOLR-10134.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of 
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never 
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
> required by the SchemaHandler class that actually performs the call at 
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
> aprox row 174 with the following: "req.getContext().put("httpMethod", 
> request.getMethod().name());". This change requires the Factory methods of 
> SolrJ to add the intended method to be used example : new 
> SchemaRequest.AddField() should append the POST method similar to how the 
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer that replaces the one in SolR. 
> It works for now and fields can be created on the fly using the SchemaAPI of 
> the solrj client, but would like to be able to remove this workaround.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org



[jira] [Commented] (SOLR-10134) EmbeddedSolrServer does not support SchemaAPI

2017-02-17 Thread Robert Alexandersson (JIRA)

[ 
https://issues.apache.org/jira/browse/SOLR-10134?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15871484#comment-15871484
 ] 

Robert Alexandersson commented on SOLR-10134:
-

I have added a test and noticed that the code had changed quite alot in this so 
needed to add change more to support the EmbeddedSolrServer requests. It does 
seem like you are in need of adding more tests in general for the 
EmbeddedSolrServer as it seems to get lost in the main "http" flows.  The tests 
and code changes can be found in PR on github, 
https://github.com/apache/lucene-solr/pull/158 

> EmbeddedSolrServer does not support SchemaAPI
> -
>
> Key: SOLR-10134
> URL: https://issues.apache.org/jira/browse/SOLR-10134
> Project: Solr
>  Issue Type: Bug
>  Security Level: Public(Default Security Level. Issues are Public) 
>  Components: Server, SolrJ
>Affects Versions: 6.4.1
>Reporter: Robert Alexandersson
>  Labels: test-driven
> Attachments: SOLR-10134.patch
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The EmbeddedSolrServer server does not support calls to the POST methods of 
> SchemaAPI using SolRJ api. The reason is that the httpMethod param is never 
> set by the EmbeddedSolrServer#request(SolrRequest, String) and this is later 
> required by the SchemaHandler class that actually performs the call at 
> SchemaHandler#handleRequestBody(SolrQueryRequest, SolrQueryResponse). 
> Proposal is to enhance the EmbeddedSolrServer to forward the httpMethod at 
> aprox row 174 with the following: "req.getContext().put("httpMethod", 
> request.getMethod().name());". This change requires the Factory methods of 
> SolrJ to add the intended method to be used example : new 
> SchemaRequest.AddField() should append the POST method similar to how the 
> SchemaRequest.Field appends the GET method.
> I have written a separate EmbeddedSolrServer that replaces the one in SolR. 
> It works for now and fields can be created on the fly using the SchemaAPI of 
> the solrj client, but would like to be able to remove this workaround.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

-
To unsubscribe, e-mail: dev-unsubscr...@lucene.apache.org
For additional commands, e-mail: dev-h...@lucene.apache.org