[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-06-11 Thread Uwe Schindler (JIRA)

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

Uwe Schindler updated SOLR-5940:


Fix Version/s: 5.0
   4.9

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
>Assignee: Uwe Schindler
> Fix For: 4.9, 5.0
>
> Attachments: solr-5940.patch, solr-5940.patch, solr-5940.patch, 
> solr-5940.patch, solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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



[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-06-11 Thread Uwe Schindler (JIRA)

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

Uwe Schindler updated SOLR-5940:


Attachment: solr-5940.patch

New patch:
- Also report server response on errors when doing GET requests
- Use try-with-resources also for output stream
- report only for HTTP status codes >= 400. HTTP 200 is not the only successful 
response code.

I take the issue.

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
>Assignee: Uwe Schindler
> Attachments: solr-5940.patch, solr-5940.patch, solr-5940.patch, 
> solr-5940.patch, solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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



[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-06-11 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar updated SOLR-5940:


Assignee: Uwe Schindler  (was: Shalin Shekhar Mangar)

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
>Assignee: Uwe Schindler
> Attachments: solr-5940.patch, solr-5940.patch, solr-5940.patch, 
> solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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



[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-06-11 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar updated SOLR-5940:


Attachment: solr-5940.patch

Done, thanks.

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
>Assignee: Shalin Shekhar Mangar
> Attachments: solr-5940.patch, solr-5940.patch, solr-5940.patch, 
> solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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



[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-06-11 Thread Uwe Schindler (JIRA)

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

Uwe Schindler updated SOLR-5940:


Attachment: solr-5940.patch

Patch to handle all according HTTP spec. It also uses StringBuilder and uses 
try-with-resources also for the standard InputStream.

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
>Assignee: Shalin Shekhar Mangar
> Attachments: solr-5940.patch, solr-5940.patch, solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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



[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-06-11 Thread Shalin Shekhar Mangar (JIRA)

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

Shalin Shekhar Mangar updated SOLR-5940:


Attachment: solr-5940.patch

Thanks Sameer. I have added "UTF-8" charset in the InputStreamReader 
constructor and put the whole thing inside a try-with-resources block.

I'll commit this shortly.

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
>Assignee: Shalin Shekhar Mangar
> Attachments: solr-5940.patch, solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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



[jira] [Updated] (SOLR-5940) Make post.jar report back detailed error in case of 400 responses

2014-04-01 Thread Sameer Maggon (JIRA)

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

Sameer Maggon updated SOLR-5940:


Attachment: solr-5940.patch

Patch that adds the error returned by solr and prints out as a warning

> Make post.jar report back detailed error in case of 400 responses
> -
>
> Key: SOLR-5940
> URL: https://issues.apache.org/jira/browse/SOLR-5940
> Project: Solr
>  Issue Type: Improvement
>  Components: scripts and tools
>Affects Versions: 4.7
>Reporter: Sameer Maggon
> Attachments: solr-5940.patch
>
>
> Currently post.jar does not print detailed error message that is encountered 
> during indexing. In certain use cases, it's helpful to see the error message 
> so that clients can take appropriate actions.
> In 4.7, here's what gets shown if there is an error during indexing:
> SimplePostTool: WARNING: Solr returned an error #400 Bad Request
> SimplePostTool: WARNING: IOException while reading response: 
> java.io.IOException: Server returned HTTP response code: 400 for URL: 
> http://localhost:8983/solr/update
> It would be helpful to print out the "msg" that is returned from Solr.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

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