couchdb-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Robert Newson <rnew...@apache.org>
Subject Re: Attachment still accessible after being deleted
Date Wed, 23 Jan 2013 23:28:07 GMT
Do you have an attachment called 'sample.pdf' in addition to one
called 'attachment'?

B.

On 23 January 2013 22:51, Nestor Urquiza <nestor.urquiza@gmail.com> 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

Mime
View raw message