You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@couchdb.apache.org by rn...@apache.org on 2013/06/29 17:18:15 UTC

[34/50] [abbrv] git commit: updated refs/heads/1843-feature-bigcouch to cba2e81

Replicating existing docs bypasses validation

https://github.com/davisp/couchdb/commit/35bc88b69486a96409d9f9709209a5dacffc9174

The fact that the old test worked was a fluke. If we want to validate
all doc updates (even these that are no-ops) we should think harder
about our validation scheme.


Project: http://git-wip-us.apache.org/repos/asf/couchdb/repo
Commit: http://git-wip-us.apache.org/repos/asf/couchdb/commit/c57ad19f
Tree: http://git-wip-us.apache.org/repos/asf/couchdb/tree/c57ad19f
Diff: http://git-wip-us.apache.org/repos/asf/couchdb/diff/c57ad19f

Branch: refs/heads/1843-feature-bigcouch
Commit: c57ad19fe3a515e28465c527871248b5f9db272e
Parents: 77e7a1f
Author: Paul J. Davis <pa...@gmail.com>
Authored: Wed Mar 13 03:14:46 2013 -0500
Committer: Paul J. Davis <pa...@gmail.com>
Committed: Wed Mar 20 06:02:55 2013 -0500

----------------------------------------------------------------------
 share/www/script/test/security_validation.js | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/couchdb/blob/c57ad19f/share/www/script/test/security_validation.js
----------------------------------------------------------------------
diff --git a/share/www/script/test/security_validation.js b/share/www/script/test/security_validation.js
index 862924a..14e5d04 100644
--- a/share/www/script/test/security_validation.js
+++ b/share/www/script/test/security_validation.js
@@ -115,6 +115,8 @@ couchTests.security_validation = function(debug) {
         {"WWW-Authenticate": "X-Couch-Test-Auth Jan Lehnardt:apple"}
       );
       // Attempt to save the design as a non-admin (in replication scenario)
+      designDoc.foo = "bar";
+      designDoc._rev = "2-642e20f96624a0aae6025b4dba0c6fb2";
       try {
         user2Db.save(designDoc, {new_edits : false});
         T(false && "Can't get here. Should have thrown an error on design doc");