couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Anthony Ananich (JIRA)" <>
Subject [jira] [Created] (COUCHDB-1705) Update Function does not parse multipart/form-data
Date Thu, 14 Mar 2013 15:28:13 GMT
Anthony Ananich created COUCHDB-1705:

             Summary: Update Function does not parse multipart/form-data
                 Key: COUCHDB-1705
             Project: CouchDB
          Issue Type: Bug
          Components: Database Core, JavaScript View Server
            Reporter: Anthony Ananich

I have a design doc and update handler.
function(doc, req) {
    var newdoc = {};
    return [newdoc, \{
    	code: 200,
    	body: req.uuid

I made a HTML file with the following form
<form action="http://localhost:5984/db/_design/app/_update/crashreport" method="POST" enctype="multipart/form-data">
<input type="text" name="classname"/><br>
<input type="Submit">

In the log file I can see that POST request body exists, but was not parsed:
{ "body" : "------WebKitFormBoundaryE6xRBni3g8MNw14P\r\nContent-Disposition: form-data; name=\"classname\"\r\n\r\nABC\r\n------WebKitFormBoundaryE6xRBni3g8MNw14P--\r\n",
  "form" : {  },

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:

View raw message