couchdb-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paul Joseph Davis (Commented) (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (COUCHDB-1391) Implement _security as _local doc with revision trees
Date Sat, 28 Jan 2012 03:11:10 GMT

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

Paul Joseph Davis commented on COUCHDB-1391:
--------------------------------------------

Yeah, I looked harder at init_security and realized what I needed was to just return the db
but replace the security context like you had originally. I cribbed part of that function
from a different place and then didn't think hard enough. Should be fixed in a commit I haven't
pushed quiet yet.
                
> Implement _security as _local doc with revision trees
> -----------------------------------------------------
>
>                 Key: COUCHDB-1391
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1391
>             Project: CouchDB
>          Issue Type: Improvement
>          Components: Database Core
>            Reporter: Paul Joseph Davis
>         Attachments: 0001-Refactor-revision-merging.patch, 0002-Replace-_local-doc-sequence-with-revision-trees.patch,
0003-Prevent-multiple-updates-to-a-single-_local-doc.patch, 0004-Implement-_security-as-a-_local-doc.patch
>
>
> We had a discussion [1] a while back about updating the _security object so that it could
be replicated (internally) in a cluster or similar environment. The basic gist was "update
_local docs to have a revision tree, update _security to be a _local doc with docid "_local/_security"
and keep the current _security API for a version or two for backwards compatibility (or forever,
what color is your bike shed?)"
> So I did that.
> Basic patch progression is:
> 1. Refactor revision merging logic so that we can split it out of couch_db_updater's
code path for updating normal docs.
> 2. Implement _local docs with #full_doc_info{} records (and thus revision trees)
> 3. Implement _security as _local/_security
> These things are done. Tests should theoretically pass after each patch but I haven't
gone back and tried. They definitely pass (minus auth_cache which I just submitted a fix for)
now except for replication.js appears to fail for random reasons. I can't quite decide if
I've introduced this or if it just fails randomly. Rather than run it a lot more times and
continue to be confused I'm starting this ticket so I can have other people test and tell
me their results.
> Also, the test suite is rather wonky on trunk with segfaults. We should really look into
that more.
> Patches forth coming. I've also pushed the branch to [2].
> [1] http://grokbase.com/t/couchdb.apache.org/dev/2011/08/the-security-object-should-be-versioned/17rfmmtlu3lagqvgyq7cay26dqk4
> [2] http://git-wip-us.apache.org/repos/asf?p=couchdb.git;a=log;h=refs/heads/new-security-object

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message