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/27 20:22:20 UTC

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

Andy Wenk created COUCHDB-2702:
----------------------------------

             Summary: 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


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)