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

REST POST /pools/default/buckets error message improvements

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Unresolved
    • Minor
    • None
    • 4.6.4
    • RESTful-APIs
    • Windows, 4.6.4 EE, using Postman

    Description

      Summary: A couple of the error messages when using the REST API endpoint for creating buckets are a little confusing/misleading.

      Scenario 1:

      When I POST a completely empty body to /pools/default/buckets, the error message returned is "errors": { "authType": "invalid authType" }. I didn't specify an authType so this could be confusing (especially if I put authType in the wrong place, like in the URL).

      Suggestion: Change the message to say "you must specify an authType and it must be a valid authType" or alternatively, if authType is not POSTed correctly, return error "you must specify an authType" and only return "invalid authType" if an authtype was specified and not valid.

      Scenario 2:

      When I POST only authType = "none", one of the error messages is "proxyPort": "Port must be a number.". This could be similarly confusing as in scenario 1. I would recommend "you must specify a proxyPort and it must be greater than 1023 and less than 65536" or "you must specify a proxyPort".

      Attachments

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

        Activity

          People

            ajit.yagaty Ajit Yagaty [X] (Inactive)
            matthew.groves Matthew Groves
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes

                PagerDuty