Ok later i’ll try.

But if it works, it looks like a bug, isn’t?

Andrea Brancatelli 

> Il giorno 27 lug 2018, alle ore 13:13, Jan Lehnardt <[email protected]> ha scritto:
> 
> Try %20 instead of the +
> 
> Cheers
> Jan
> —
> 
>> On 27. Jul 2018, at 12:23, Andrea Brancatelli <[email protected]> 
>> wrote:
>> 
>> Hi all.
>> 
>> One of our developers, in a drunkiness moment, created a document called
>> "user_Fri Jul 20 2018 15:30:19 GMT+0200 (CEST)". 
>> 
>> This is giving us a enormous headache to delete it. 
>> 
>> I guess the problem is with the "+" sign in the ID.... Any creative
>> suggestion? 
>> 
>> Some Debug: 
>> 
>> curl -v https://xxxxxxx/snapsafe_dev/_all_docs 
>> 
>> {"total_rows":6,"offset":0,"rows":[ 
>> 
>> ...cut cut cut.... 
>> 
>> {"id":"user_Fri Jul 20 2018 15:30:19 GMT+0200 (CEST)","key":"user_Fri
>> Jul 20 2018 15:30:19 GMT+0200
>> (CEST)","value":{"rev":"1-4c75286f18e14e76a1ade89d02fa95b7"}}
>> ]} 
>> 
>> curl -v -X DELETE
>> 'https://xxxxxx/snapsafe_dev/user_Fri+Jul+20+2018+15%3A30%3A19+GMT%2B0200+%28CEST%29?rev=1-4c75286f18e14e76a1ade89d02fa95b7'
>> 
>> 
>>> DELETE 
>>> /snapsafe_dev/user_Fri+Jul+20+2018+15%3A30%3A19+GMT%2B0200+%28CEST%29?rev=1-4c75286f18e14e76a1ade89d02fa95b7
>>>  HTTP/1.1
>>> Host: xxxxx
>>> Authorization: Basic xxxxx
>>> User-Agent: curl/7.54.0
>>> Accept: */*
>>> 
>> < HTTP/1.1 404 Object Not Found
>> < Date: Fri, 27 Jul 2018 12:20:35 GMT
>> < Server: CouchDB/1.7.1 (Erlang OTP/19)
>> < Content-Type: text/plain; charset=utf-8
>> < Content-Length: 41
>> < Cache-Control: must-revalidate
>> <
>> {"error":"not_found","reason":"missing"}
>> 
>> -- 
>> 
>> Andrea Brancatelli
> 

Reply via email to