project icon indicating copy to clipboard operation
project copied to clipboard

tests: request with missing accept header returns an Accepted 200 response

Open theobadha opened this issue 11 months ago • 0 comments

Summary: A request missing the accept header is processed successfully and returns a 200 response.

Expected Behavior A request that has the accept headers missing should fail and return an error code 3102: Missing Mandatory element.

Severity: Low

Priority: Low

Request Header

curl 'http://ml-api-adapter:3000/transfers'
  -H 'content-type: application/vnd.interoperability.transfers+json;version=1.0'
  -H 'fspiop-source: pinkbankfsp'
  -H 'date: Tue, 21 Jan 2025 10:57:00 GMT'
  -H 'traceparent: 00-aabbdd95d6ae3b2d2f2a694df99e6cee-0123456789abcdef0-00'

Response sample

{
  "status": 202,
  "statusText": "Accepted",
  "body": "",
  "headers": {
    "cache-control": "no-cache",
    "content-length": "0",
    "date": "Tue, 21 Jan 2025 10:57:01 GMT",
    "connection": "keep-alive",
    "keep-alive": "timeout=5"
  }
}

Specifications

  • Component (if known):
  • Version: 16
  • Platform:
  • Subsystem:
  • Type of testing: api validation
  • Bug found/raised by: Walter

Notes:

  • Severity when opened: Low
  • Priority when opened: Low

theobadha avatar Jan 21 '25 11:01 theobadha