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

ExtensionList missing when unsupported accept version requested for services #1456

Closed
20 tasks done
amarmodus opened this issue Jun 29, 2020 · 3 comments
Closed
20 tasks done
Assignees
Labels
oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it
Milestone

Comments

@amarmodus
Copy link

amarmodus commented Jun 29, 2020

Summary:

When wrong accept header is supplied in the request header, following error information is sent and extension list is missing.

{
    "errorInformation": {
        "errorCode": "3001",
        "errorDescription": "Unacceptable version requested - Client requested to use a protocol version which is not supported by the server"
    }
}

Expected Behavior

{ 
     "errorInformation": { 
               "errorCode": "3001", 
                "errorDescription": "The Client requested an unsupported version, see extension list for supported version(s).", 
                  "extensionList": [ 
                           { "key": "1", "value": "0" }, 
                           { "key": "2", "value": "1" }, 
                           { "key": "4", "value": "2" } 
                    ]
         } 
} 

Steps to Reproduce

curl --location --request POST 'http://dev2-quoting-service.mojaloop.live/quotes' \
--header 'Accept: application/vnd.interoperability.quotes+json;version=3' \
--header 'Content-Type: application/vnd.interoperability.quotes+json;version=1.0' \
--header 'Date: Mon, 29 Jun 2020 10:32:27 GMT' \
--header 'FSPIOP-Source: payerfsp' \
--header 'FSPIOP-Destination: payeefsp' \
--header 'FSPIOP-Signature: {"signature":"iU4GBXSfY8twZMj1zXX1CTe3LDO8Zvgui53icrriBxCUF_wltQmnjgWLWI4ZUEueVeOeTbDPBZazpBWYvBYpl5WJSUoXi14nVlangcsmu2vYkQUPmHtjOW-yb2ng6_aPfwd7oHLWrWzcsjTF-S4dW7GZRPHEbY_qCOhEwmmMOnE1FWF1OLvP0dM0r4y7FlnrZNhmuVIFhk_pMbEC44rtQmMFv4pm4EVGqmIm3eyXz0GkX8q_O1kGBoyIeV_P6RRcZ0nL6YUVMhPFSLJo6CIhL2zPm54Qdl2nVzDFWn_shVyV0Cl5vpcMJxJ--O_Zcbmpv6lxqDdygTC782Ob3CNMvg\",\"protectedHeader\":\"eyJhbGciOiJSUzI1NiIsIkZTUElPUC1VUkkiOiIvdHJhbnNmZXJzIiwiRlNQSU9QLUhUVFAtTWV0aG9kIjoiUE9TVCIsIkZTUElPUC1Tb3VyY2UiOiJPTUwiLCJGU1BJT1AtRGVzdGluYXRpb24iOiJNVE5Nb2JpbGVNb25leSIsIkRhdGUiOiIifQ"}' \
--header 'Authorization: Bearer {{TESTFSP1_BEARER_TOKEN}}' \
--data-raw '{
"quoteId": "b5031edb-eca0-4120-989b-606a174b0ab5",
"transactionId": "845b458f-0c6d-4244-8d91-07327b232389",
"payer": {
  "partyIdInfo": {
    "partyIdType": "MSISDN",
    "partyIdentifier": "{{payerMSISDN}}",
    "fspId": "payerfsp"
  },
  "personalInfo": {
    "complexName": {
      "firstName": "Mats",
      "lastName": "Hagman"
    },
    "dateOfBirth": "1983-10-25"
  }
},
"payee": {
  "partyIdInfo": {
    "partyIdType": "MSISDN",
    "partyIdentifier": "22556999125",
    "fspId": "payeefsp"
  }
},
"amountType": "SEND",
"amount": {
  "amount": "60.11",
  "currency": "USD"
},
"transactionType": {
  "scenario": "TRANSFER",
  "initiator": "PAYER",
  "initiatorType": "CONSUMER"
},
"note": "hej"
}'

Severity:
Medium

Priority:
Low

Specifications

  • Component (if known): Error framework
  • Version:v10.1.0
  • Platform:
  • Subsystem:
  • Type of testing: Manual postman test
  • Bug found/raised by: @amarmodus

Notes:

  • Severity when opened:
  • Priority when opened:

#1378 - this is opened for similar issue but for content header version.

Tasks:

  • Fix bug in Central Services Shared library
  • Update CS-Shared in ML-API Adapter
  • Update CS-Shared in Central Settlement
  • Update CS-Shared in Central Ledger
  • Update CS-Shared in Central Event Processor
  • Update CS-Shared in ALS
  • Update CS-Shared in Simulator
  • Update CS-Shared in Bulk API Adapter
  • Update CS-Shared in Quoting Services
  • E2E validation across all services updated

PRs:

@amarmodus amarmodus added the bug label Jun 29, 2020
@claudio-viola claudio-viola self-assigned this Jul 2, 2020
@claudio-viola
Copy link

claudio-viola commented Jul 2, 2020

@elnyry-sam-k elnyry-sam-k added this to the Sprint 10.6 milestone Jul 13, 2020
@elnyry-sam-k
Copy link
Member

@claudio-viola - are you done with this? Thanks for the effort..

@elnyry-sam-k elnyry-sam-k added the oss-core This is an issue - story or epic related to a feature on a Mojaloop core service or related to it label Jul 14, 2020
@amarmodus amarmodus self-assigned this Jul 14, 2020
@elnyry-sam-k elnyry-sam-k removed this from the Sprint 10.6 milestone Jul 18, 2020
@oderayi oderayi self-assigned this Nov 16, 2020
@oderayi oderayi added this to the Sprint 12.2 milestone Nov 16, 2020
@oderayi
Copy link

oderayi commented Nov 20, 2020

Closing to continue implementation and validation of FSPIOP headers in some of the services that could not be validated in this story. #1854

@oderayi oderayi closed this as completed Nov 20, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
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

4 participants