validation functions

2009-01-17 Thread Jan Lehnardt
Hi dev list, Damien, I noticed when a database has multiple design docs with a `validate_doc_update` function each. The validation functions are called in the reverse string collation order of the design document's id. The function in `_design/b` gets executed before the one in `_des

Re: validation functions

2009-01-17 Thread Paul Davis
tabase has multiple design docs with a > `validate_doc_update` function each. The validation functions > are called in the reverse string collation order of the design > document's id. > > The function in `_design/b` gets executed before the one > in `_design/a`, which comes befor

Re: validation functions

2009-01-17 Thread Chris Anderson
seems like not a good > thing to rely on. > > Paul > > On Sat, Jan 17, 2009 at 4:41 PM, Jan Lehnardt wrote: >> Hi dev list, Damien, >> >> I noticed when a database has multiple design docs with a >> `validate_doc_update` function each. The validation functions >

Validation functions and design documents

2009-10-01 Thread eric casteleijn
I was unpleasantly surprised today when I tried to implement a rather critical piece of our infrastructure: the validation to prevent replication of certain design documents which are run on our server node(s). It appears that validation functions don't get called at all when a design doc

http context in validation functions?

2010-01-21 Thread Dean Landolt
I'm writing a couchdb store for pintura [1] -- one of its features I'd really like to push down to couch is conditional writes using the If header and jsonquery. This would be trivial to do with a validation function if it included the http context so's I could get at the headers. Is there any reas

Re: Validation functions and design documents

2009-10-07 Thread Jason Davies
validation functions don't get called at all when a design document is updated. I used the logging example from the book: http://books.couchdb.org/relax/reference/security#Update%20Validations%20Again and this logs an entry for each update to a regular document, but is eerily silent on up

Re: http context in validation functions?

2010-01-21 Thread Paul Davis
That'd do funky things to the validation on replication because the HTTP context would change. You should be able to do this with an _update handler though. Paul Davis On Thu, Jan 21, 2010 at 11:48 AM, Dean Landolt wrote: > I'm writing a couchdb store for pintura [1] -- one of its features I'd >

Re: http context in validation functions?

2010-01-21 Thread Dean Landolt
On Thu, Jan 21, 2010 at 11:56 AM, Paul Davis wrote: > That'd do funky things to the validation on replication because the > HTTP context would change. You should be able to do this with an > _update handler though. > > Yep, that looks like just what I needed. Thanks Paul.

[jira] [Created] (COUCHDB-1488) Allow Validation Functions to Modify Response

2012-05-31 Thread Dominic Barnes (JIRA)
Dominic Barnes created COUCHDB-1488: --- Summary: Allow Validation Functions to Modify Response Key: COUCHDB-1488 URL: https://issues.apache.org/jira/browse/COUCHDB-1488 Project: CouchDB

[jira] [Resolved] (COUCHDB-1488) Allow Validation Functions to Modify Response

2012-05-31 Thread Robert Newson (JIRA)
This would mess with replication. > Allow Validation Functions to Modify Response > - > > Key: COUCHDB-1488 > URL: https://issues.apache.org/jira/browse/COUCHDB-1488 > Project: C

[jira] [Created] (COUCHDB-1747) DSL for index creation, validation functions, etc.

2013-03-27 Thread Dave Cottlehuber (JIRA)
Dave Cottlehuber created COUCHDB-1747: - Summary: DSL for index creation, validation functions, etc. Key: COUCHDB-1747 URL: https://issues.apache.org/jira/browse/COUCHDB-1747 Project: CouchDB

[jira] [Updated] (COUCHDB-1747) DSL for index creation, validation functions, etc.

2013-03-27 Thread Dave Cottlehuber (JIRA)
for index creation, validation functions, etc. > -- > > Key: COUCHDB-1747 > URL: https://issues.apache.org/jira/browse/COUCHDB-1747 > Project: CouchDB > Issue Type: Improvement >

[jira] Created: (COUCHDB-294) in validation functions, new_doc does not contain the rev that was sent in the request

2009-03-18 Thread Tim (JIRA)
in validation functions, new_doc does not contain the rev that was sent in the request --- Key: COUCHDB-294 URL: https://issues.apache.org/jira/browse/COUCHDB-294

[jira] Closed: (COUCHDB-294) in validation functions, new_doc does not contain the rev that was sent in the request

2010-06-02 Thread Jan Lehnardt (JIRA)
document is written to the database which is when it gets the new rev id. Feel free to reopen the issue with a test script that demonstrates the erroneous behaviour (bonus points for a patch to the JavaScript or etap test suite :). > in validation functions, new_doc does not contain the rev t