i think you need a %2B for the +, (according to https://www.urlencoder.org/)
instead of a %20.

%20 is a space,
%2B is the + sign

let us know if this fixes it for you ok.. i'd like to know myself.

On Fri, Jul 27, 2018 at 1:13 PM Jan Lehnardt <m...@jan.io> wrote:

> Try %20 instead of the +
>
> Cheers
> Jan
> —
>
> > On 27. Jul 2018, at 12:23, Andrea Brancatelli <abrancate...@schema31.it>
> 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