incubator-couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marcos Zanona (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1101) Headers from update handler not returned when a document is created/modified
Date Mon, 04 Jul 2011 15:01:22 GMT

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

Marcos Zanona commented on COUCHDB-1101:
----------------------------------------

Same thing here, this makes the update handler useless for lots of different situations. Since
if you return null it won't update/create a document at all.

> Headers from update handler not returned when a document is created/modified
> ----------------------------------------------------------------------------
>
>                 Key: COUCHDB-1101
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1101
>             Project: CouchDB
>          Issue Type: Bug
>          Components: HTTP Interface
>    Affects Versions: 1.0.2
>         Environment: Fedora 14, 4 Cores, 4 GB RAM
>            Reporter: Jiri Sedlacek
>            Priority: Minor
>
> I expect from this update handler to return "X-my-header" header in response. It does
not.
> function(doc,req) { 
>   var resp = { "headers" : {  "X-my-header": "application" } , "body": "" }; 
>   return [{_id:req.uuid}, resp];
> }
> Changing the return to:
>   return [null, resp];
> helps.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message