You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@lucene.apache.org by "Ryan McKinley (JIRA)" <ji...@apache.org> on 2012/04/21 02:27:33 UTC

[jira] [Created] (SOLR-3389) Autodetect JSON/XML when content-type is missing from request

Ryan McKinley created SOLR-3389:
-----------------------------------

             Summary: Autodetect JSON/XML when content-type is missing from request
                 Key: SOLR-3389
                 URL: https://issues.apache.org/jira/browse/SOLR-3389
             Project: Solr
          Issue Type: Improvement
            Reporter: Ryan McKinley


Since solr 1.1, if you try:
{code}curl http://localhost:8983/solr/update --data-binary @books.json{code}
you will get a 400 bad request 'missing content stream' error

To change this behavior, we could try harder with you POST data with www-form-encoded

See line 394 in SolrRequestParsers.java


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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


[jira] [Updated] (SOLR-3389) Autodetect JSON/XML when content-type is missing from request

Posted by "Ryan McKinley (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/SOLR-3389?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Ryan McKinley updated SOLR-3389:
--------------------------------

    Priority: Trivial  (was: Major)
    
> Autodetect JSON/XML when content-type is missing from request
> -------------------------------------------------------------
>
>                 Key: SOLR-3389
>                 URL: https://issues.apache.org/jira/browse/SOLR-3389
>             Project: Solr
>          Issue Type: Improvement
>            Reporter: Ryan McKinley
>            Priority: Trivial
>
> Since solr 1.1, if you try:
> {code}curl http://localhost:8983/solr/update --data-binary @books.json{code}
> you will get a 400 bad request 'missing content stream' error
> To change this behavior, we could try harder with you POST data with www-form-encoded
> See line 394 in SolrRequestParsers.java

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

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