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

Nick North commented on COUCHDB-1685:
-------------------------------------

I just ran into this bug and, since I need to post multipart documents with 
server-assigned ids as an atomic operation, I decided to try fixing it. The 
pull request is at https://github.com/apache/couchdb/pull/91 and contains a 
proposed change to the POST processing code and an extra test to make sure the 
fix works. It would definitely benefit from a review by someone more familiar 
with Erlang than I am.
                
> POSTing multipart/related to a database doesn't create a document
> -----------------------------------------------------------------
>
>                 Key: COUCHDB-1685
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1685
>             Project: CouchDB
>          Issue Type: Bug
>            Reporter: João Barbosa
>
> POST application/json to a database creates a document and assigns an id. 
> It's an atomic operation.
> But POST to a database with a multipart/related doesn't. The response error 
> is:
> {
>   "error":"bad_content_type",
>   "reason":"Content-Type must be application/json"
> }

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to