Return-Path: X-Original-To: apmail-couchdb-user-archive@www.apache.org Delivered-To: apmail-couchdb-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 60848E956 for ; Thu, 24 Jan 2013 02:31:59 +0000 (UTC) Received: (qmail 79520 invoked by uid 500); 24 Jan 2013 02:31:57 -0000 Delivered-To: apmail-couchdb-user-archive@couchdb.apache.org Received: (qmail 79429 invoked by uid 500); 24 Jan 2013 02:31:57 -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 79418 invoked by uid 99); 24 Jan 2013 02:31:57 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 02:31:57 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS,WEIRD_PORT X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of nestor.urquiza@gmail.com designates 209.85.212.171 as permitted sender) Received: from [209.85.212.171] (HELO mail-wi0-f171.google.com) (209.85.212.171) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 24 Jan 2013 02:31:51 +0000 Received: by mail-wi0-f171.google.com with SMTP id hn14so37968wib.16 for ; Wed, 23 Jan 2013 18:31:30 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=yej9v38nSS7GMQcIx6Pwwnoq2VS+H2hzyceM3EP6YVk=; b=LBSPBbKnZ60kKu4UNZu+O8/YY2vvywk5F5sVKYdWVh60npri1HmFI2JhSLPVjdNNZc 30zbvg0TtSUWKRZghCUQiunYaQ8VUS7DtSQkgocEKk86QLsueOENDz7pjBUxfCEKfGkA mx4UCR6GgY3KvpAqXXhfsJMtEVNuuDCmI/MXtlF+xM5FwTlZCdcvspnSFXVnSQ3x4aNw sRqOzFPuwe5HMZ1A8Zp8ZHTuK1tQ6DjtxJQepvHgNv4PR4EtC2AeybVvQLHIxO4cJWab EabSLGmgDtORhTfsGVDcArsVQTvfPpeAT4slFwqZwaMTKZ6OAKr1PeqvgWs/PEkxnJXt LYLw== MIME-Version: 1.0 X-Received: by 10.180.86.39 with SMTP id m7mr633330wiz.1.1358994690709; Wed, 23 Jan 2013 18:31:30 -0800 (PST) Received: by 10.217.4.146 with HTTP; Wed, 23 Jan 2013 18:31:30 -0800 (PST) In-Reply-To: References: Date: Wed, 23 Jan 2013 21:31:30 -0500 Message-ID: Subject: Re: Attachment still accessible after being deleted From: Nestor Urquiza To: user@couchdb.apache.org Content-Type: text/plain; charset=ISO-8859-1 X-Virus-Checked: Checked by ClamAV on apache.org Hi Robert, My bad. I just realized what you meant. I took "attachment" as literal where the documentation was referring to the actual attachmentName. This is no longer an issue. Thanks! -Nestor On Wed, Jan 23, 2013 at 8:21 PM, Nestor Urquiza wrote: > Hi Robert not sure what you mean. > > The url showing document_id/attachment is just the way you access the > attachment of that document_id right? At least that is my > understanding from > http://wiki.apache.org/couchdb/HTTP_Document_API#Attachments > > Thanks! > - Nestor > > > > On Wed, Jan 23, 2013 at 6:28 PM, Robert Newson wrote: >> Do you have an attachment called 'sample.pdf' in addition to one >> called 'attachment'? >> >> B. >> >> On 23 January 2013 22:51, Nestor Urquiza wrote: >>> Hellow guys, >>> >>> Can anyone help here please. I believe I am not deleting the >>> attachment correctly? >>> >>> 1. I delete a document as per documentation: >>> $ curl -k -X DELETE >>> "https://user:password@example.com:6984/db/sample.pdf/attachment/?rev=1-adb7b6f2e32d73758dfa16966c1caef9" >>> {"ok":true,"id":"sample.pdf","rev":"2-87988b99af60e2f7cb9022b65b7565d5"} >>> >>> 2. I check for the attachment and indeed it is not there: >>> $ curl -k -X GET >>> "https://user:password@udesktop3.sample.com:6984/db/sample.pdf/attachment" >>> {"error":"not_found","reason":"Document is missing attachment"} >>> >>> 3. Yet from futon (or the equivalent below) the attachment is downloaded? >>> $ curl -O -k -X GET >>> "https://user:password@udesktop3.sample.com:6984/db/sample.pdf/sample.pdf" >>> % Total % Received % Xferd Average Speed Time Time Time Current >>> Dload Upload Total Spent Left Speed >>> 100 163k 100 163k 0 0 1707k 0 --:--:-- --:--:-- --:--:-- 1817k >>> >>> Thanks, >>> -Nestor