Attempting to Delete a document with ID containing Forward Slash results in 405 Error


I’m running into an issue where if I try to do a DELETE request on a document that contains a forward slash, it results in a 405. When I run the same query with a document where the ID doesn’t contain a forward slash, it works fine.

Here’s an example of a path I use with and without a forward slash:

The first one results in a 405. The second request results in a 200. If it is helpful, I’m running Couchbase Server Community Edition 6.0.0 build 1693.

Is there something that I’m missing? I appreciate anyone’s help! Thank you!

forward slash is URI character that represent the path. If the document key has forward slash replace that with ascii character set.

Example : document key is "k01/a"  ===>  k01%2Fa
/  with %2F 
curl -X DELETE http://user:passwd@localhost:8091/pools/default/buckets/default/docs/k01%2Fa