[jira] [Closed] (COUCHDB-468) POST with _id

2012-02-21 Thread Sam Bisbee (Closed) (JIRA)
[ https://issues.apache.org/jira/browse/COUCHDB-468?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sam Bisbee closed COUCHDB-468. -- Resolved for a while. Closing. POST with _id - Key

[jira] Created: (COUCHDB-468) POST with _id

2009-08-15 Thread Mark Hammond (JIRA)
POST with _id - Key: COUCHDB-468 URL: https://issues.apache.org/jira/browse/COUCHDB-468 Project: CouchDB Issue Type: Bug Components: Database Core Reporter: Mark Hammond From -dev: Is there any reason

Re: POST with _id

2009-08-15 Thread Mark Hammond
On 13/08/2009 1:16 PM, Chris Anderson wrote: On Thu, Aug 13, 2009 at 12:21 AM, Kevin Jacksonfoamd...@gmail.com wrote: Another +1 here too - that has bitten me before... +1 from me, we've also hit that one Is there a Jira ticket open for this? I can easily imagine this thread being lost to

[jira] Commented: (COUCHDB-468) POST with _id

2009-08-15 Thread Chris Anderson (JIRA)
a comment here and we can maybe give you guidance on how to proceed. POST with _id - Key: COUCHDB-468 URL: https://issues.apache.org/jira/browse/COUCHDB-468 Project: CouchDB Issue Type: Bug Components: Database Core

[jira] Resolved: (COUCHDB-468) POST with _id

2009-08-15 Thread Paul Joseph Davis (JIRA)
Fixed as of r804555. POST with _id - Key: COUCHDB-468 URL: https://issues.apache.org/jira/browse/COUCHDB-468 Project: CouchDB Issue Type: Bug Components: Database Core Reporter: Mark Hammond

Re: POST with _id

2009-08-13 Thread Kevin Jackson
Another +1 here too - that has bitten me before... +1 from me, we've also hit that one Kev

Re: POST with _id

2009-08-13 Thread Chris Anderson
On Thu, Aug 13, 2009 at 12:21 AM, Kevin Jacksonfoamd...@gmail.com wrote: Another +1 here too - that has bitten me before... +1 from me, we've also hit that one Is there a Jira ticket open for this? I can easily imagine this thread being lost to the sands of time. -- Chris Anderson

POST with _id

2009-08-03 Thread Brian Candler
Is there any reason why, if you POST a document to a database and that document has an _id member, why this is ignored and a server-generated _id is used instead? $ curl -X PUT http://127.0.0.1:5984/sample {ok:true} $ curl --data-binary '{_id:foo,bar:baz}' -X POST http://127.0.0.1:5984/sample

Re: POST with _id

2009-08-03 Thread Jan Lehnardt
On 3 Aug 2009, at 11:04, Brian Candler wrote: Is there any reason why, if you POST a document to a database and that document has an _id member, why this is ignored and a server- generated _id is used instead? $ curl -X PUT http://127.0.0.1:5984/sample {ok:true} $ curl --data-binary

Re: POST with _id

2009-08-03 Thread Brian Candler
On Mon, Aug 03, 2009 at 01:10:42PM +0200, Jan Lehnardt wrote: On 3 Aug 2009, at 11:04, Brian Candler wrote: Is there any reason why, if you POST a document to a database and that document has an _id member, why this is ignored and a server- generated _id is used instead? $ curl -X PUT

Re: POST with _id

2009-08-03 Thread Paul Davis
On Mon, Aug 3, 2009 at 11:51 AM, Brian Candlerb.cand...@pobox.com wrote: On Mon, Aug 03, 2009 at 01:10:42PM +0200, Jan Lehnardt wrote: On 3 Aug 2009, at 11:04, Brian Candler wrote: Is there any reason why, if you POST a document to a database and that document has an _id member, why this is

Re: POST with _id

2009-08-03 Thread Jan Lehnardt
On 3 Aug 2009, at 19:37, Paul Davis wrote: Either way, perhaps we should poll the community and see what the general consensus would be for respecting an _id or _rev in the POST body? “Be strict in what you send, but generous in what you receive” — The Internets Cheers Jan --

Re: POST with _id

2009-08-03 Thread Paul Davis
On Mon, Aug 3, 2009 at 1:43 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 19:37, Paul Davis wrote: Either way, perhaps we should poll the community and see what the general consensus would be for respecting an _id or _rev in the POST body? “Be strict in what you send, but

Re: POST with _id

2009-08-03 Thread Jan Lehnardt
On 3 Aug 2009, at 20:19, Paul Davis wrote: On Mon, Aug 3, 2009 at 1:43 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 19:37, Paul Davis wrote: Either way, perhaps we should poll the community and see what the general consensus would be for respecting an _id or _rev in the POST

Re: POST with _id

2009-08-03 Thread Paul Davis
On Mon, Aug 3, 2009 at 2:27 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 20:19, Paul Davis wrote: On Mon, Aug 3, 2009 at 1:43 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 19:37, Paul Davis wrote: Either way, perhaps we should poll the community and see what the

Re: POST with _id

2009-08-03 Thread Jan Lehnardt
On 3 Aug 2009, at 21:13, Paul Davis wrote: On Mon, Aug 3, 2009 at 2:27 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 20:19, Paul Davis wrote: On Mon, Aug 3, 2009 at 1:43 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 19:37, Paul Davis wrote: Either way, perhaps we

Re: POST with _id

2009-08-03 Thread Dirkjan Ochtman
On Mon, Aug 3, 2009 at 20:27, Jan Lehnardtj...@apache.org wrote: I remember stumbling over this at least twice in the (distant) past. I prefer the forced PUT, but then I'm also the one to argue intuitive APIs. Considering no downsides (usually Damien adds or leaves out features for a reason),

dev@ for development discussions (Was: POST with _id)

2009-08-03 Thread Jan Lehnardt
On 3 Aug 2009, at 22:40, Paul Davis wrote: On Mon, Aug 3, 2009 at 3:41 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 21:13, Paul Davis wrote: On Mon, Aug 3, 2009 at 2:27 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 20:19, Paul Davis wrote: On Mon, Aug 3, 2009 at

Re: dev@ for development discussions (Was: POST with _id)

2009-08-03 Thread Paul Davis
On Mon, Aug 3, 2009 at 5:23 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 22:40, Paul Davis wrote: On Mon, Aug 3, 2009 at 3:41 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 21:13, Paul Davis wrote: On Mon, Aug 3, 2009 at 2:27 PM, Jan Lehnardtj...@apache.org wrote:

Re: dev@ for development discussions (Was: POST with _id)

2009-08-03 Thread Jan Lehnardt
On 3 Aug 2009, at 23:29, Paul Davis wrote: On Mon, Aug 3, 2009 at 5:23 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 22:40, Paul Davis wrote: On Mon, Aug 3, 2009 at 3:41 PM, Jan Lehnardtj...@apache.org wrote: On 3 Aug 2009, at 21:13, Paul Davis wrote: On Mon, Aug 3, 2009 at

Re: POST with _id

2009-08-03 Thread Chris Anderson
On Mon, Aug 3, 2009 at 1:48 PM, Dirkjan Ochtmandirk...@ochtman.nl wrote: On Mon, Aug 3, 2009 at 20:27, Jan Lehnardtj...@apache.org wrote: I remember stumbling over this at least twice in the (distant) past. I prefer the forced PUT, but then I'm also the one to argue intuitive APIs. Considering

Re: POST with _id

2009-08-03 Thread Mark Hammond
On 4/08/2009 7:44 AM, Chris Anderson wrote: On Mon, Aug 3, 2009 at 1:48 PM, Dirkjan Ochtmandirk...@ochtman.nl wrote: On Mon, Aug 3, 2009 at 20:27, Jan Lehnardtj...@apache.org wrote: I remember stumbling over this at least twice in the (distant) past. I prefer the forced PUT, but then I'm