project icon indicating copy to clipboard operation
project copied to clipboard

TTK Requests to PUT /parties/{Type}/{ID} endpoint fail

Open theobadha opened this issue 4 months ago • 0 comments

Summary: A request to the PUT /parties​/{Type}​/{ID}​/ endpoint does not require an Accept header (as per the swagger documentation) However, building a request and leaving out the Accept header value, the test fails with an error message that says the Accept header is missing and required. Response:

{
  "status": 400,
  "statusText": "Bad Request",
  "body": {
    "errorInformation": {
      "errorCode": "3102",
      "errorDescription": "Missing mandatory element - Accept is required"
    }
  },
  "headers": {
    "content-type": "application/json; charset=utf-8",
    "cache-control": "no-cache",
    "content-length": "109",
    "date": "Tue, 05 Aug 2025 14:58:36 GMT",
    "connection": "keep-alive",
    "keep-alive": "timeout=5"
  }
}

Severity: Low

Priority: Low

Expected Behavior Requests should behave matching the api swagger definition. This request without the accept header should pass successfully with a Status code: 200

Steps to Reproduce Submit this request in the TTK curl 'http://account-lookup-service:4002/parties/MSISDN/27713803912' -H 'content-type: application/vnd.interoperability.parties+json;version=2.0' -H 'date: Tue, 05 Aug 2025 14:58:36 GMT' -H 'fspiop-source: testingtoolkitdfsp' -H 'traceparent: 00-aabb6b8ac64b74edbcd4fc75b90d52ba-0000000000000001-01' -H 'user-agent: axios/1.8.4' -H 'accept-encoding: gzip, compress, deflate, br' --compressed Observe response in the response tab to see failing response

Specifications

  • Component : TTK
  • Version: swagger definition v2.0
  • Type of testing: exploratory
  • Bug found/raised by: Walter

theobadha avatar Aug 05 '25 14:08 theobadha