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

401 Unauthorized message shows up in the Back End if the filing cant be performed as a result of allowable actions. #25112

Open
riyazuddinsyed opened this issue Jan 2, 2025 · 0 comments
Labels
bug Something isn't working Entities - Olga A label to filter on the tickets for the Entities based team that Olga is PO for. Priority2

Comments

@riyazuddinsyed
Copy link
Collaborator

riyazuddinsyed commented Jan 2, 2025

Describe the bug in the current situation
When API Users perform a filing with a valid authorization and if the filling cant be performed as a result of the allowable actions then the API throws a 401 error confusing the users

Steps to reproduce the behavior:
https://legal-api-dev.apps.silver.devops.gov.bc.ca/api/v2/businesses/BC0884207/filings {POOST}
Payload:
{"filing":{"header":{"name":"putBackOff","date":"2025-01-02","certifiedBy":""},"business":{"identifier":"BC0884207","legalType":"BC","legalName":"0884207 B.C. LTD.","foundingDate":"2024-12-17T21:19:19.704468+00:00"},"putBackOff":{"details":"detail","courtOrder":{"effectOfOrder":"planOfArrangement","fileNumber":"123456789"}}}}

Expected behavior
The response message should return 403? To be confirmed before making any changes

Screenshots/ Visual Reference/ Source
Screen Shot 2025-01-02 at 9.57.32 AM.png

@riyazuddinsyed riyazuddinsyed added bug Something isn't working Entities - Olga A label to filter on the tickets for the Entities based team that Olga is PO for. labels Jan 2, 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 Entities - Olga A label to filter on the tickets for the Entities based team that Olga is PO for. Priority2
Projects
None yet
Development

No branches or pull requests

2 participants