OpenBankProject / OpenBankProject/OBP-API

Wrong case, Transaction request permission canCreateAnyTransactionRequest

Open
#1,319 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Scala
Stars
1.7k
Forks
482
Avg merge
1d 12h
Merged PRs (30d)
15

Description

Steps to reproduce:

  • Create a transaction request for an account which your user does not own.

  • Observe the error message:

{"code":400,"message":"OBP-40002: Insufficient authorisation to create TransactionRequest. The Transaction Request could not be created because you don't have access to the owner view of the from account or you don't have access to canCreateAnyTransactionRequest."}

Fix:

Error message should be upper-case CanCreateAnyTransactionRequest

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Search the transaction-request creation path for the reported error message and the permission name canCreateAnyTransactionRequest. Change the displayed permission name to CanCreateAnyTransactionRequest, then verify that the unauthorized transaction-request response uses the corrected casing.

Written by the indexing model from the issue text.

Assessment

Tech stack
scala
Domain
api, authorization, backend
Issue type
Bug
Difficulty
1/5
Estimated time
Under an hour
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
55/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.