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
Verify - Able to appoint a new director with no street addresses from the API which is not consistent with the BE. #32526
Describe the bug in the current situation
When an API User tries to appoint a new director with no mailing addresses, the filings go through without errors, while the FE doesn't allow it.
The BE and the FE validations are not the same in the case of Appointed Directors Addressses
Impact of this bug
The API user will be able to add the director without the Mailing Addresses
Notice that the filing will be successfully created.
See error
Expected behavior
API should not allow a COD filing with incomplete Mailing addresses.
Screenshots/ Visual Reference/ Source
Root Cause Analysis (RCA) results
If applicable, document the root cause analysis results for the scenarios. This section is mandatory before the issue can be closed
changed the title [-]Able to appoint a new director with no street addresses from the API which is not inconsistent with the BE.[/-][+]Able to appoint a new director with no street addresses from the API which is not consistent with the BE.[/+]on Feb 19, 2026
changed the title [-]Able to appoint a new director with no street addresses from the API which is not consistent with the BE.[/-][+]Verify - Able to appoint a new director with no street addresses from the API which is not consistent with the BE.[/+]on Feb 19, 2026
@mstanton1 btw I think this ticket can be moved back to the product backlog, it can't be verified until this ticket is implemented, which is also sitting in the product backlog
Existing Issue: the API was accepting director addresses with a blank/empty street address because the shared validation schema only checked the field's length, not that it was actually filled in. The frontend already blocked it, which is why BE and FE behaved differently.
Fix: this is addressed by Business Schema: Update to Enforce Non-empty Required String Fields #32771 (schema update to require non-empty values for required string fields). I tested the exact scenario from this ticket against the updated schema and the API now rejects appointing a director with a blank mailing street address, matching the frontend.
Minor cleanup ticket should be made, remove the Python mailingAddress enforcement from lear (legal-api change_of_directors.py) and shift it to business-schemas (directors.json) so director mailing-address validation lives at the schema level for all types, not just corps.
Activity
[-]Able to appoint a new director with no street addresses from the API which is not inconsistent with the BE.[/-][+]Able to appoint a new director with no street addresses from the API which is not consistent with the BE.[/+]vikas-gov commentedon Feb 19, 2026
This will be addressed once #31787 is implemented
[-]Able to appoint a new director with no street addresses from the API which is not consistent with the BE.[/-][+]Verify - Able to appoint a new director with no street addresses from the API which is not consistent with the BE.[/+]mstanton1 commentedon Mar 12, 2026
@meawong can you verify if your other ticket has resolved this issue?
meawong commentedon Mar 12, 2026
@mstanton1 the completed ticket was analysis only, so this issue won't be resolved until the implementation is done — that will be tracked here: https://app.zenhub.com/workspaces/entities-team-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/32771
I've left it in refinement for review, but let me know if it's a priority and I should pull it into this sprint.
mstanton1 commentedon Mar 12, 2026
Thanks for the update @meawong . I've added the schema analysis ticket to the refinement list.
meawong commentedon Apr 1, 2026
@mstanton1 btw I think this ticket can be moved back to the product backlog, it can't be verified until this ticket is implemented, which is also sitting in the product backlog
mstanton1 commentedon Apr 1, 2026
Thanks for advising @meawong . This ticket has been moved back.
mruff-aeq commentedon Jun 25, 2026
Verification update, @mstanton1
Status: verified working.
mailingAddress.streetAddress=""(blank)mailingAddress.streetAddressfield omitteddeliveryAddress.streetAddress=""(blank)deliveryAddress.streetAddressfield omittedmruff-aeq commentedon Jun 25, 2026
Minor cleanup ticket should be made, remove the Python mailingAddress enforcement from lear (legal-api change_of_directors.py) and shift it to business-schemas (directors.json) so director mailing-address validation lives at the schema level for all types, not just corps.
mstanton1 commentedon Jun 30, 2026
Cleanup ticket created under #34022.