Details
-
Bug
-
Resolution: Unresolved
-
Major
-
7.0.0, 7.0.1, 7.0.2
-
Triaged
-
1
-
Unknown
Description
What's the issue?
At least one REST API endpoint does not validate requests' payloads correctly, returning response status code 200 even if the request has no effect.
Steps to reproduce:
- Set up a one node cluster with data service enabled.
- Create an empty couchbase bucket with a name "default".
- Run
curl -v --header "Content-Type: application/json" \
--request POST \
--data '{"flushEnabled":1}' \
http://localhost:9000/pools/default/buckets/default \
-u Administrator:asdasd
- Observe that even though this request returns 200 status code, flush does not get enabled for the "default" bucket.