From user-return-7074-apmail-couchdb-user-archive=couchdb.apache.org@couchdb.apache.org Sun Oct 25 19:55:45 2009 Return-Path: Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: (qmail 89115 invoked from network); 25 Oct 2009 19:55:45 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Oct 2009 19:55:45 -0000 Received: (qmail 50139 invoked by uid 500); 25 Oct 2009 19:55:44 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 50051 invoked by uid 500); 25 Oct 2009 19:55:43 -0000 Mailing-List: contact user-help@couchdb.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@couchdb.apache.org Delivered-To: mailing list user@couchdb.apache.org Received: (qmail 50041 invoked by uid 99); 25 Oct 2009 19:55:43 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 19:55:43 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of paul.joseph.davis@gmail.com designates 209.85.211.186 as permitted sender) Received: from [209.85.211.186] (HELO mail-yw0-f186.google.com) (209.85.211.186) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 25 Oct 2009 19:55:34 +0000 Received: by ywh16 with SMTP id 16so10343755ywh.13 for ; Sun, 25 Oct 2009 12:55:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :from:date:message-id:subject:to:content-type :content-transfer-encoding; bh=lBRgvanSyl22XX/3abJHnziQRTVN0g6sh5Ny2ZSmvio=; b=RtvZ/6ee4O531uTww11LVAIpA6UFTwWC2saU6IYm6xITSpl09HvyAHSzNtFAp+5Bf5 tCVaOTEo8x0sMg1SjfKuJe/wBrHbUcvL+I3cKb93157ODllo5Fa/EziEM9MGb5UneTkr XF9gm4YULuq4lxmYIcV73iNDLkoQf5+lETFV8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type:content-transfer-encoding; b=Ox8X+9OQe7O0u6Vtp5ctNI+HOvS1mVpipNI09mdKJ4fCPcpL6rJHD64KUEJEkLXDIb PpBw1zX0yxNYKoNrewDhSS8P7ImBNlkKQpEzgboComuVugwbCjoemEi3tQWVsgm1ltxH Y9MLoa1onKP/XTj32jhui510wCxvV2nxGZG54= MIME-Version: 1.0 Received: by 10.101.62.6 with SMTP id p6mr8577280ank.153.1256500512176; Sun, 25 Oct 2009 12:55:12 -0700 (PDT) In-Reply-To: <7999489996990147563@unknownmsgid> References: <8502178921300477607@unknownmsgid> <7999489996990147563@unknownmsgid> From: Paul Davis Date: Sun, 25 Oct 2009 15:54:52 -0400 Message-ID: Subject: Re: COPY bug To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable X-Virus-Checked: Checked by ClamAV on apache.org Hmmm. Now all we have to do is decide if we want ok:true or not. Anyone have an opinion? It would remain more consistent with the other CRUD style operations that don't return a document. Paul On Sun, Oct 25, 2009 at 3:40 PM, Sebastian Negomireanu wrote: > The documentation I'm looking at is here: > > http://wiki.apache.org/couchdb/HTTP_Document_API > > You just need to scroll down to the COPY command. The response in the > documentation is: > > HTTP/1.1 201 Created > Server: CouchDB/0.9.0a730122-incubating (Erlang OTP/R12B) > Etag: "355068078" > Date: Mon, 05 Jan 2009 11:12:49 GMT > Content-Type: text/plain;charset=3Dutf-8 > Content-Length: 41 > Cache-Control: must-revalidate > > {"ok":true,"id":"some_other_doc","rev":"355068078"} > > > > -----Original Message----- > From: Paul Davis [mailto:paul.joseph.davis@gmail.com] > Sent: Sunday, October 25, 2009 7:30 PM > To: user@couchdb.apache.org > Subject: Re: COPY bug > > Sebastian, > > There doesn't appear to be anything in the code to return {ok:true, > ...} as you mention. Can you paste a link to the docs? It could be > that we dropped the flag in a refactor. > > This is a less than one line patch to fix, does anyone have any > insight on to what's proper? > > Paul Davis > > Note to future self: Line 785 in couch_httpd_db.erl > > On Sun, Oct 25, 2009 at 8:27 AM, Sebastian Negomireanu > wrote: >> Hello, >> >> >> >> I am running the Windows version of CouchDB. It seems that when I perfor= m > a >> COPY operation the result does not contain the ok=3Dtrue pair, only the = id > and >> rev values. Is this by design or is it a bug (the documentation says tha= t > it >> should also return the ok value)? >> >> >> >> =A0_____ >> >> Best regards, >> Sebastian Negomireanu | CTO / Managing Partner JustDesign Sibiu, Romania >> +40-726-181186 | +40-788-757462 >> =A0 >> sebastian.negomireanu@justdesign.ro >> >> SC JustDesign SRL | Str. Dorului 20, 550352, Sibiu, Romania >> +40-269-210008 | =A0 office@justdesign.ro | >> www.justdesign.ro >> >> The information contained in this e-mail is intended only for the ones t= o >> which it is addressed, and contains information which is confidential an= d >> may be privileged. Unauthorized disclosure, copying or use (of any part) > of >> this information is prohibited. If you are not the intended recipient, >> please notify the sender or Just Design SRL by return e-mail or telephon= e >> (+40-269-210008) and delete this e-mail from your system, including any >> attachments thereto. Any information in this message that does not relat= e > to >> the official business of Just Design SRL shall be understood as neither >> given nor endorsed by it. Internet communications are not secure, > therefore >> Just Design SRL does not accept any liability for either the contents of >> this message, or any damage related to documents and/or data which are >> communicated by e-mail. Violation of this notice may be unlawful. >> >> >> >> > > >