Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AmTryingMyBest opened this issue Jan 21, 2025 · 0 comments
Labels
bug Something isn't working or it has wrong behavior on a Mojaloop Core service oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it

Comments

@AmTryingMyBest
Copy link

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
@AmTryingMyBest AmTryingMyBest added bug Something isn't working or it has wrong behavior on a Mojaloop Core service oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it labels Jan 21, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working or it has wrong behavior on a Mojaloop Core service oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
Projects
None yet
Development

No branches or pull requests

1 participant