Re: The _security object should be versioned

2011-08-26 Thread Filipe David Manana
On Fri, Aug 26, 2011 at 10:36 PM, Paul Davis wrote: > Imagine you have a phone with a CouchDB. And your friend says, "Just > replicate this photo album." But he's inserted a _security doc that > gives him permission to touch your private data. If someone said the > obvious answer is "have a valida

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092203#comment-13092203 ] Paul Joseph Davis commented on COUCHDB-834: --- @Prudhvi First, stop thinking tha

Re: The _security object should be versioned

2011-08-26 Thread Filipe David Manana
On Fri, Aug 26, 2011 at 8:46 PM, Jason Smith wrote: >> Does it sound simple and satisfies people's needs? > > AFAIK, nobody wants security to ever replicate. Some people want to > manually "sync" them as an application feature. Ok, catching this thread late, my understanding was that people wante

Re: The _security object should be versioned

2011-08-26 Thread Paul Davis
On Fri, Aug 26, 2011 at 10:46 PM, Jason Smith wrote: > On Sat, Aug 27, 2011 at 10:17 AM, Filipe David Manana > wrote: >> On Fri, Aug 26, 2011 at 8:01 PM, Jason Smith wrote: >>> 1. Does this require updating the replicator to update _local docs >>> correctly? >> >> Yes >> >>> 2. Only admins can

Re: The _security object should be versioned

2011-08-26 Thread Paul Davis
On Fri, Aug 26, 2011 at 10:17 PM, Filipe David Manana wrote: > On Fri, Aug 26, 2011 at 8:01 PM, Jason Smith wrote: >> 1. Does this require updating the replicator to update _local docs correctly? > > Yes > >> 2. Only admins can change _security. But anybody with read access can >> change _local/*

Re: The _security object should be versioned

2011-08-26 Thread Paul Davis
On Fri, Aug 26, 2011 at 10:01 PM, Jason Smith wrote: > On Sat, Aug 27, 2011 at 9:09 AM, Randall Leeds > wrote: >>> The issue here is that adding a revision tree most likely means a >>> requirement that the HTTP API changes to use MVCC tokens. >> >> _local docs already do. They just don't support

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Prudhvi (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092196#comment-13092196 ] Prudhvi commented on COUCHDB-834: - @paul thank you for the explanation, my view emits [

Re: The _security object should be versioned

2011-08-26 Thread Jason Smith
On Sat, Aug 27, 2011 at 10:17 AM, Filipe David Manana wrote: > On Fri, Aug 26, 2011 at 8:01 PM, Jason Smith wrote: >> 1. Does this require updating the replicator to update _local docs correctly? > > Yes > >> 2. Only admins can change _security. But anybody with read access can >> change _local/*

Re: The _security object should be versioned

2011-08-26 Thread Filipe David Manana
On Fri, Aug 26, 2011 at 8:01 PM, Jason Smith wrote: > 1. Does this require updating the replicator to update _local docs correctly? Yes > 2. Only admins can change _security. But anybody with read access can > change _local/*. Does couch special-case _local/security? My preference: _security w

Re: The _security object should be versioned

2011-08-26 Thread Jason Smith
On Sat, Aug 27, 2011 at 9:09 AM, Randall Leeds wrote: >> The issue here is that adding a revision tree most likely means a >> requirement that the HTTP API changes to use MVCC tokens. > > _local docs already do. They just don't support ?new_edits, or > revs_info/revs/open_revs/meta, though I'd hav

Re: The _security object should be versioned

2011-08-26 Thread Paul Davis
On Fri, Aug 26, 2011 at 9:09 PM, Randall Leeds wrote: > On Aug 26, 2011 4:31 PM, "Paul Davis" wrote: >> >> On Fri, Aug 26, 2011 at 5:58 PM, Randall Leeds > wrote: >> > On Aug 26, 2011 2:56 PM, "Chris Anderson" wrote: >> >> >> >> On Thu, Aug 25, 2011 at 8:55 PM, Jason Smith wrote: >> >> > On Fr

Re: The _security object should be versioned

2011-08-26 Thread Randall Leeds
On Aug 26, 2011 4:31 PM, "Paul Davis" wrote: > > On Fri, Aug 26, 2011 at 5:58 PM, Randall Leeds wrote: > > On Aug 26, 2011 2:56 PM, "Chris Anderson" wrote: > >> > >> On Thu, Aug 25, 2011 at 8:55 PM, Jason Smith wrote: > >> > On Fri, Aug 26, 2011 at 8:59 AM, Paul Davis < paul.joseph.da...@gmail.

Re: git commit: davisp - GIT OK

2011-08-26 Thread Paul Davis
The mirror: http://git.apache.org/couchdb.git The writable repo: http://git-wip-us.apache.org/repos/asf/couchdb.git I haven't looked into this at all yet myself. I'll be working on this tomorrow and Sunday though so if you have questions I'll be around. Thanks, Paul On Fri, Aug 26, 20

Re: git commit: davisp - GIT OK

2011-08-26 Thread Dustin Sallings
On Aug 26, 2011, at 1:32 AM, Paul Davis wrote: > Basic story is that I translated the git.apache.org mirror script to > Python and made some tweaks (that shouldn't affect hashes) but the > hashes are apparently different. Original mirroring script is at [1] > and my Python version is at [2]. Feel

Re: The _security object should be versioned

2011-08-26 Thread Paul Davis
On Fri, Aug 26, 2011 at 5:58 PM, Randall Leeds wrote: > On Aug 26, 2011 2:56 PM, "Chris Anderson" wrote: >> >> On Thu, Aug 25, 2011 at 8:55 PM, Jason Smith wrote: >> > On Fri, Aug 26, 2011 at 8:59 AM, Paul Davis > wrote: >> >> I wouldn't focus on the _local docs suggestion too much. >> > >> > I

Re: The _security object should be versioned

2011-08-26 Thread Randall Leeds
On Aug 26, 2011 2:56 PM, "Chris Anderson" wrote: > > On Thu, Aug 25, 2011 at 8:55 PM, Jason Smith wrote: > > On Fri, Aug 26, 2011 at 8:59 AM, Paul Davis wrote: > >> I wouldn't focus on the _local docs suggestion too much. > > > > I proposed a _local doc to keep couch simple and self-similar; and

Re: The _security object should be versioned

2011-08-26 Thread Chris Anderson
On Thu, Aug 25, 2011 at 8:55 PM, Jason Smith wrote: > On Fri, Aug 26, 2011 at 8:59 AM, Paul Davis > wrote: >> I wouldn't focus on the _local docs suggestion too much. > > I proposed a _local doc to keep couch simple and self-similar; and at > the time I incorrectly thought that _local docs had f

[jira] [Commented] (COUCHDB-1262) View files are never fsynced

2011-08-26 Thread Adam Kocoloski (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092068#comment-13092068 ] Adam Kocoloski commented on COUCHDB-1262: - Seriously, though, I'd probably omit

[jira] [Commented] (COUCHDB-1262) View files are never fsynced

2011-08-26 Thread Adam Kocoloski (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-1262?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092065#comment-13092065 ] Adam Kocoloski commented on COUCHDB-1262: - +1000 (order-of-magnitude number of c

[jira] [Created] (COUCHDB-1262) View files are never fsynced

2011-08-26 Thread Paul Joseph Davis (JIRA)
View files are never fsynced Key: COUCHDB-1262 URL: https://issues.apache.org/jira/browse/COUCHDB-1262 Project: CouchDB Issue Type: Bug Components: JavaScript View Server Reporter: Paul Jose

[jira] [Commented] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092061#comment-13092061 ] Paul Joseph Davis commented on COUCHDB-994: --- @Adam Fair point. I'll open one n

[jira] [Commented] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread Adam Kocoloski (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092058#comment-13092058 ] Adam Kocoloski commented on COUCHDB-994: @davisp Probably not a bad idea, though

[jira] [Commented] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092056#comment-13092056 ] Paul Joseph Davis commented on COUCHDB-994: --- Did you consider adding an fsync b

[jira] [Commented] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread Robert Newson (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092053#comment-13092053 ] Robert Newson commented on COUCHDB-994: --- +1 to Adam's patch, lgtm. > Crash after

[jira] [Updated] (COUCHDB-911) Repeating a doc._id in a _bulk_docs request results in erroneous "Document conflict" error

2011-08-26 Thread Bob Dionne (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Dionne updated COUCHDB-911: --- Attachment: jira-911-patch2.diff Here's a somewhat cleaner version > Repeating a doc._id in a _bulk

[jira] [Updated] (COUCHDB-911) Repeating a doc._id in a _bulk_docs request results in erroneous "Document conflict" error

2011-08-26 Thread Bob Dionne (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-911?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Bob Dionne updated COUCHDB-911: --- Attachment: (was: jira-911-patch.diff) > Repeating a doc._id in a _bulk_docs request results in

[jira] [Resolved] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Paul Joseph Davis resolved COUCHDB-834. --- Resolution: Not A Problem > startkey_docid/endkey_docid don't work without an exact

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13092003#comment-13092003 ] Paul Joseph Davis commented on COUCHDB-834: --- @Prudhvi No its not a bug. You ca

[jira] [Commented] (COUCHDB-431) Support cross domain XMLHttpRequest (XHR) calls by implementing Access Control spec

2011-08-26 Thread Randall Leeds (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091990#comment-13091990 ] Randall Leeds commented on COUCHDB-431: --- I haven't checked the test suite but the p

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Randall Leeds (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091986#comment-13091986 ] Randall Leeds commented on COUCHDB-834: --- It sounds like the real ticket issue is th

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Prudhvi (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091981#comment-13091981 ] Prudhvi commented on COUCHDB-834: - Hi Paul, Is this a valid bug or we are using the wron

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Paul Joseph Davis (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091890#comment-13091890 ] Paul Joseph Davis commented on COUCHDB-834: --- startkey_docid and endkey_docid on

[jira] [Created] (COUCHDB-1261) Add KML and KMZ as default mime types

2011-08-26 Thread Aaron Reichman (JIRA)
Add KML and KMZ as default mime types - Key: COUCHDB-1261 URL: https://issues.apache.org/jira/browse/COUCHDB-1261 Project: CouchDB Issue Type: Improvement Reporter: Aaron Reichman P

[jira] [Updated] (COUCHDB-431) Support cross domain XMLHttpRequest (XHR) calls by implementing Access Control spec

2011-08-26 Thread Benoit Chesneau (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-431?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Benoit Chesneau updated COUCHDB-431: Attachment: 0001-cors-support.-should-fix-COUCHDB-431.patch improved patch wich take in co

[jira] [Updated] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread Robert Newson (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Robert Newson updated COUCHDB-994: -- Comment: was deleted (was: I am currently out of the office and will be back on Friday 2nd Sep

[jira] [Commented] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread Alex Markham (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091780#comment-13091780 ] Alex Markham commented on COUCHDB-994: -- I am currently out of the office and will be

[jira] [Updated] (COUCHDB-994) Crash after compacting large views

2011-08-26 Thread JIRA
[ https://issues.apache.org/jira/browse/COUCHDB-994?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Stefan Kögl updated COUCHDB-994: Attachment: 2011-08-26-couchdb.log I again has a compaction crash, this time with a current 1.1.x

[jira] [Commented] (COUCHDB-834) startkey_docid/endkey_docid don't work without an exact startkey/endkey match

2011-08-26 Thread Prudhvi (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-834?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091701#comment-13091701 ] Prudhvi commented on COUCHDB-834: - Hi Mathias Meyer, As you said, > However, it does wh

Re: git commit: davisp - GIT OK

2011-08-26 Thread Paul Davis
On Fri, Aug 26, 2011 at 3:13 AM, Dustin Sallings wrote: > > On Aug 25, 2011, at 1:55 PM, Paul Davis wrote: > >> Oh right. Not entirely certain how fixable that's going to be. >> >> On Thu, Aug 25, 2011 at 3:49 PM, Jan Lehnardt wrote: >>> >>> On Aug 24, 2011, at 06:04 , Paul Davis wrote: >>>

Re: git commit: davisp - GIT OK

2011-08-26 Thread Dustin Sallings
On Aug 25, 2011, at 1:55 PM, Paul Davis wrote: > Oh right. Not entirely certain how fixable that's going to be. > > On Thu, Aug 25, 2011 at 3:49 PM, Jan Lehnardt wrote: >> >> On Aug 24, 2011, at 06:04 , Paul Davis wrote: >> >>> What commit-hash thing? >> >> Where the commit hashes in current

[jira] [Commented] (COUCHDB-431) Support cross domain XMLHttpRequest (XHR) calls by implementing Access Control spec

2011-08-26 Thread Benoit Chesneau (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-431?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13091659#comment-13091659 ] Benoit Chesneau commented on COUCHDB-431: - Thanks for the review. Answers follow