couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gabriel Farrell (JIRA)" <>
Subject [jira] Commented: (COUCHDB-790) validate_doc_update on the _users database fails
Date Mon, 22 Nov 2010 21:20:15 GMT


Gabriel Farrell commented on COUCHDB-790:

All looks great. I hadn't seen that isArray implementation (should've thought to check jQuery),
but it seems to do the job fine. I grabbed the one I included from a suggestion by Crockford
on a mailing list, so I figured it was a correct one, though verbose.

Thanks for editing the code and making the commit, Filipe.

> validate_doc_update on the _users database fails
> ------------------------------------------------
>                 Key: COUCHDB-790
>                 URL:
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 0.11
>            Reporter: Cliff Stanford
>            Assignee: Filipe Manana
>         Attachments: users-test2.diff, usersTest.diff
>   Original Estimate: 0.02h
>  Remaining Estimate: 0.02h
> The validate_doc_update on the users database contains the following code:
> if ((oldDoc || newDoc).type != 'user') {
> throw({forbidden : 'doc.type must be user'});
> } // we only validate user docs for now
> However the effect of this is that a user may change his type *from* "user" but not back
again.  I don't think this is what was intended.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message