You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@couchdb.apache.org by "Andy Wenk (JIRA)" <ji...@apache.org> on 2015/05/28 11:23:17 UTC

[jira] [Commented] (COUCHDB-2702) Updating a view in a ddoc is resulting in a 409

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

Andy Wenk commented on COUCHDB-2702:
------------------------------------

[~garren] I hope it's ok that I assigned the ticket to you ;-) 

> Updating a view in a ddoc is resulting in a 409
> -----------------------------------------------
>
>                 Key: COUCHDB-2702
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-2702
>             Project: CouchDB
>          Issue Type: Bug
>      Security Level: public(Regular issues) 
>          Components: Fauxton
>            Reporter: Andy Wenk
>            Assignee: Garren Smith
>
> With using Fauxton (npm fauxton 1.0.2) I create a ddoc 'foo' in the Fauxton editor. When saving for the first time the ddoc is being created. Then I edit the map function without reloading the page and save the ddoc again. This is resulting in a 409. When opening a different page and coming back to the ddoc, change the map function and save, everything works fine. 
> My assumption was, that the revision for updating the ddoc is false. You can reproduce this in the developer tools network bar by examining the Request Payload and the Response Headers. The first time I have in the Request Payload the rev 7-a013f97484eb8c045a196407f4f1f417. As a Response Header I receive etag:"8-2fa6a96e7687f1fd747d3562eb20f658". Then when updating the ddoc the Request Payload uses the rev 7-a013f97484eb8c045a196407f4f1f417 again what is wrong.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)