incubator-couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Cliff Stanford <cl...@may.be>
Subject validate_doc_update result format
Date Tue, 02 Feb 2010 11:40:01 GMT
According to http://wiki.apache.org/couchdb/Security_Features_Overview 
the the following validation function:

validate_doc_update: "function(newDoc, oldDoc, userCtx) {
     throw {missing_field: 'Document must have an address.'};
}"

should give the result:

HTTP/1.1 401 Unauthorized
...
{"error":"missing_field","reason":"Document must have an address."}

Using the released CouchDB 0.10.0 I get the following result:

HTTP/1.1 500 Internal Server Error
...
{"error":"try_clause","reason":"{[{<<\"missing_field\">>,<<\"Document 
must have an address.\">>}]}"}

This looks like a bug to me.  Is there a better place to post this kind 
of report?

Regards,
Cliff.

-- 
Cliff Stanford
Might Limited                           +44 845 0045 666 (Office)
Suite 67, Dorset House                  +44 7973 616 666 (Mobile)
Duke Street, Chelmsford, CM1 1TB


Mime
View raw message