[ 
https://issues.apache.org/jira/browse/COUCHDB-1535?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Mathias Chouet resolved COUCHDB-1535.
-------------------------------------

    Resolution: Not A Problem
    
> After sync, deleting a _design document brings it back to an old revision
> -------------------------------------------------------------------------
>
>                 Key: COUCHDB-1535
>                 URL: https://issues.apache.org/jira/browse/COUCHDB-1535
>             Project: CouchDB
>          Issue Type: Bug
>          Components: Database Core
>    Affects Versions: 1.2
>         Environment: Linux Ubuntu x86_64
>            Reporter: Mathias Chouet
>              Labels: delete, revision
>
> At first the base "fsf4" is empty.
> The said _design document is obtained via syncing with an existing base.
> If one tries to delete this doc, the HTTP API says "OK" but the doc is not 
> deleted. Instead, it still exists with an old revision. One must then delete 
> it again. This can occur more than one for a single doc.
> Example below shows a case with 3 deletions needed. Undead docs?
> curl -X GET 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211";
> {"_id":"_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211","_rev":"34-86d1da1a464b9586da783fe1b11f8e40",
> ...
> }
> curl -X DELETE 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211?rev=34-86d1da1a464b9586da783fe1b11f8e40";
> {"ok":true,"id":"_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211","rev":"35-58ea7d7c9f00479fe07e72646fac9970"}
> curl -X GET 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211";
> {"_id":"_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211","_rev":"24-1ea1964661676d319183d9808b74f1f6","
> ...
> }
> curl -X DELETE 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211?rev=24-1ea1964661676d319183d9808b74f1f6";
> {"ok":true,"id":"_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211","rev":"25-842cc522be5c4cd69c7bd07bc54d7686"}
> curl -X GET 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211";
> {"_id":"_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211","_rev":"6-aa3f132dd50b52ce2f99c5ddc8f6fcf9","
> ...
> }
> curl -X DELETE 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211?rev=6-aa3f132dd50b52ce2f99c5ddc8f6fcf9";
> {"ok":true,"id":"_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211","rev":"7-e50f29349237eb747bf56c5a7d0cb9c2"}
> curl -X GET 
> "http://localhost:5984/fsf4/_design/mm_fa29506c-0cd9-40c0-915e-6ba4949b4211";
> {"error":"not_found","reason":"deleted"}

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to