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

[BP MB-40336] - Action continues even after error on REST API

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.5.1
    • Fix Version/s: 6.6.1
    • Component/s: eventing
    • Triage:
      Untriaged
    • Story Points:
      1
    • Is this a Regression?:
      Unknown

      Description

      Jon Strabala reports:

      Referring to the /

      {pause,resume,undeploy,deploy}

      endpoints one odd thing I ran the following (it claimed an error but the function still paused) so I think there is a bug:
      curl -XGET http://Administrator:password@192.168.3.150:8096/api/v1/functions/test/pause
      {
      "name": "ERR_INVALID_CONFIG",
      "code": 38,
      "description": "Invalid configuration",
      "attributes": null,
      "runtime_info":

      { "code": 38, "info": "Only POST call allowed to this endpoint" }

      }
      If we return an ERR_INVALID_CONFIG we shouldn't actually do the action.

        Attachments

          Issue Links

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

            Activity

            Hide
            build-team Couchbase Build Team added a comment -

            Build couchbase-server-6.6.1-9078 contains eventing commit 36b6c1d with commit message:
            MB-40357: Do not continue after REST API validation error

            Show
            build-team Couchbase Build Team added a comment - Build couchbase-server-6.6.1-9078 contains eventing commit 36b6c1d with commit message: MB-40357 : Do not continue after REST API validation error
            Hide
            vikas.chaudhary Vikas Chaudhary added a comment -

            verified on 6.6.1-9117

            vikass-MacBook-Pro:~ vikaschaudhary$ curl -XGET http://Administrator:password@10.143.192.102:8096/api/v1/functions/test1/pause
            {
             "name": "ERR_INVALID_CONFIG",
             "code": 38,
             "description": "Invalid configuration",
             "attributes": null,
             "runtime_info": {
              "code": 38,
              "info": "Only POST call allowed to this endpoint"
             }
            } 

            Show
            vikas.chaudhary Vikas Chaudhary added a comment - verified on 6.6.1-9117 vikass-MacBook-Pro:~ vikaschaudhary$ curl -XGET http://Administrator:password@10.143.192.102:8096/api/v1/functions/test1/pause { "name": "ERR_INVALID_CONFIG", "code": 38, "description": "Invalid configuration", "attributes": null, "runtime_info": { "code": 38, "info": "Only POST call allowed to this endpoint" } }

              People

              Assignee:
              vinayaka.kamath Vinayaka Kamath
              Reporter:
              jeelan.poola Jeelan Poola
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes

                    PagerDuty