You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Legal API: returns 401 for IA just submitted #31052
Impact: I cannot see the IA I just submitted. This probably reproduces for all bootstrap filings. I cannot continue from business dashboard. However, if I go back to my BRD then I see my new business and can load it successfully.
To reproduce:
login to Dev as a regular user (eg, BCREG0020)
select the non-primary account (eg, "Severin Dev Account" not "resd")
create a NR for a new coop (also reproduces for named and numbered corps)
get the NR approved
start the draft IA
complete, submit and pay for the IA
observe the issue:
Note: ignore that this is not using the Business API GW URL -- there's a reverse proxy in place so this network call should succeed anyway. (Fixing the URL will be a separate UI ticket.) Also, I patched the code locally to fix the URL and the same API error was returned.
The FF just turns on a check that the user has read access on the filing data. The bootstrap flow will need to be updated so that the backend knows if the regular user has access to it or not before this flag is turned on again. The priority for this is quite low I think (flag was only on in dev)
@kialj876 To work around the error described above, the FF was disabled in Dev. How does this affect the original ticket that made these changes (#29005)? What is the priority of THIS ticket given that some, presumably necessary, functionality was disabled?
Activity
severinbeauvais commentedon Oct 22, 2025
deleted obsolete comment
[-]Business Dashboard UI: fails to load IA just submitted[/-][+]Legal API: returns 401 for IA just submitted[/+]severinbeauvais commentedon Oct 22, 2025
Analysis
This only appears to fail when it is a regular user. As staff, I was able to load the bootstrap filings properly.
Argus found that some API code was returning the subject error:
https://github.com/bcgov/lear/blob/15cda9897e2067e2ae298453bdca840019072a32/legal-api/src/legal_api/resources/v2/business/business_filings/business_filings.py#L105-L114
Root cause: breakage was caused by PR 3804, ticket 29005.
Temporary resolution: Argus turned off the FF, which disables this code, and now all bootstrap filings load properly.
Solution: See Kial's comment below.
severinbeauvais commentedon Oct 22, 2025
Probably a related issue:
https://dev.business-dashboard.bcregistry.gov.bc.ca/TzOk9ayBWV?filing_id=206615&accountid=2288
severinbeauvais commentedon Oct 23, 2025
Please ignore commit above that I accidentally linked to this ticket. It's for another ticket.
kialj876 commentedon Oct 23, 2025
The FF just turns on a check that the user has read access on the filing data. The bootstrap flow will need to be updated so that the backend knows if the regular user has access to it or not before this flag is turned on again. The priority for this is quite low I think (flag was only on in dev)
severinbeauvais commentedon Oct 23, 2025
@kialj876 To work around the error described above, the FF was disabled in Dev. How does this affect the original ticket that made these changes (#29005)? What is the priority of THIS ticket given that some, presumably necessary, functionality was disabled?