Uploaded image for project: 'Coin'
  1. Coin
  2. COIN-841

WIP Rest API does not return an error when an invalid request field value is provided

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P2: Important
    • None
    • master
    • WebServer
    • None

    Description

      For example, the endpoint GET /tasks accepts the "type" parameter which has a fixed list of allowed values: [integration, status_check, early warning, create_debug_vm]

      The following request body should cause a 400 Bad request with the offending field and value to be returned.

      {     "type": "status_chek" // Typo, not a valid value.     "status": "passed",     "max": 1 }

      Attachments

        Activity

          People

            akpietik Aku Pietikäinen
            daniel.smith Daniel Smith
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: