microsoft / restler-fuzzer

RESTler is the first stateful REST API fuzzing tool for automatically testing cloud services through their REST APIs and finding security and reliability bugs in these services.
MIT License
2.52k stars 284 forks source link

RESTler compiler crashes if 'parameters' node is missing in external example #775

Open marina-p opened 1 year ago

marina-p commented 1 year ago

Description

If the following is provided in an external example file, RESTler crashes:

"/customer/{customerId}": {

    "put": {

      "1": {

          "__body__": "abcde"

      }

    }

  }

Steps to reproduce

Plug in the above external example file into any RESTler config and substitute the endpoint+method to a request type from the specification that has a body.

Expected: RESTler raises an informative error that the 'parameters' node is required in the example file. Actual: RESTler crashes.

Expected results

No response

Actual results

No response

Environment details

No response