Uploaded image for project: 'Couchbase Server'
  1. Couchbase Server
  2. MB-29648

/settings/web requires "port" argument when setting username/password

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Won't Fix
    • Major
    • None
    • None
    • ns_server
    • 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.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            dfinlay Dave Finlay
            ceej Chris Hillery
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty