fix:Incorrect response received when space is added before `requestId` in the requestId parameter
Description: When initiating the bulk issuance process using the Start bulk-issuance API, providing a space before the requestId parameter results in an incorrect error response
Method
POST/v1/orgs/{orgId}/{requestId}/bulk (bulk issue credential)
Request
Input: Provide space before requestId in requestId param [ requestId : 21d12b17-46c6-411a-b6cb-e8a015da38ce ]
Steps to Reproduce
- Execute the bulk-issuance API.
- Add a space before the requestIdIncorrect response when space is included before requestId in the requestId parameter
- Observe the response.
Current behavior { "statusCode": 400, "message": "Timeout for reviewing data, re-upload your file and generate new request", "error": "Bad Request" }
Expected behavior
Trim space and return successful response { "statusCode": 201, "message": "Issuance process started. It will take some time", "data": "Process initiated for bulk issuance" }
Screenshot
@GHkrishna I have reported an issue. Please review it and let me know if you need any further information from my side. Thanks!
Hi team, I would like to work on this issue.
Hello @sr467113 You can start working on it, assigning you the issue
Submitted. #1257 Thanks GHkrishna
@sayali-chavan2396 Can we close this?
@GHkrishna I have retested the above-mentioned issue, and it is now working as expected. Therefore, I am closing this issue.
Current Response { "statusCode": 201, "message": "Issuance process started. It will take some time", "data": "Process initiated for bulk issuance" }