Details
-
Improvement
-
Resolution: Won't Fix
-
Major
-
None
-
None
-
None
Description
The initial setting of username/password using REST requires the following command:
curl -v http://127.0.0.1:8091/settings/web -d port=8091 -d username=Administrator -d password=password
It seems weird to me that "-d port=8091" is required there, because obviously the port is already known since I'm curl'ing to it. But if you leave it out, you get the not entirely helpful response
HTTP/1.1 400 Bad Request
["All parameters must be given"]
Our documentation does not mention this requirement: https://developer.couchbase.com/documentation/server/current/install/init-setup.html
Artem let me know that you can say "-d port=SAME" to say "don't change the port from its current value", which is slightly better, but IMHO at least that should be the presumed default if it isn't explicitly specified.
I recognize this is not a super-urgent problem especially since most people don't use the REST API for configuring, so if we wanted to punt on it, great - but we should at least fix the doc so the example works out of the box.