Skip to content

Verify - Able to appoint a new director with no street addresses from the API which is not consistent with the BE. #32526

Closed
1 of 1 issue completed

Description

@riyazuddinsyed

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

Steps to reproduce the behavior:

  1. Go to 'https://test.api.connect.gov.bc.ca/business-dev/api/v2/businesses/BC0888461/filings'
  2. Post a COD json payload with no Street address
  3. Notice that the filing will be successfully created.
  4. See error

Expected behavior
API should not allow a COD filing with incomplete Mailing addresses.

Screenshots/ Visual Reference/ Source
Screen Shot 2026-02-19 at 11.59.06 AM.png

Screen Shot 2026-02-19 at 11.59.55 AM.png

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

Sub-issues

Sub-issues

1 of 1 Issues completed
Loading 1 sub-issues

Activity

  1. added
    bug
    Entities Team
    on Feb 19, 2026
  2. 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
  3. vikas-gov commented on Feb 19, 2026

    @vikas-gov
    Collaborator

    This will be addressed once #31787 is implemented

  4. 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
  5. mstanton1 commented on Mar 12, 2026

    @mstanton1
    Collaborator

    @meawong can you verify if your other ticket has resolved this issue?

  6. meawong commented on Mar 12, 2026

    @meawong
    Collaborator

    @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.

  7. mstanton1 commented on Mar 12, 2026

    @mstanton1
    Collaborator

    Thanks for the update @meawong . I've added the schema analysis ticket to the refinement list.

  8. meawong commented on Apr 1, 2026

    @meawong
    Collaborator

    @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

  9. mstanton1 commented on Apr 1, 2026

    @mstanton1
    Collaborator

    Thanks for advising @meawong . This ticket has been moved back.

  10. self-assigned this
    on Jun 25, 2026
  11. mruff-aeq commented on Jun 25, 2026

    @mruff-aeq
    Collaborator

    Verification update, @mstanton1

    • 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.

    Status: verified working.

    Scenario HTTP Result Caught by
    Both addresses valid (control) 200 OK — passes ✅
    mailingAddress.streetAddress = "" (blank) 422 UNPROCESSABLE_ENTITY Schema pattern ← the #32771 fix
    mailingAddress.streetAddress field omitted 422 UNPROCESSABLE_ENTITY Schema required
    deliveryAddress.streetAddress = "" (blank) 422 UNPROCESSABLE_ENTITY Schema pattern ← the #32771 fix
    deliveryAddress.streetAddress field omitted 422 UNPROCESSABLE_ENTITY Schema required
  12. mruff-aeq commented on Jun 25, 2026

    @mruff-aeq
    Collaborator

    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.

  13. mstanton1 commented on Jun 30, 2026

    @mstanton1
    Collaborator

    Cleanup ticket created under #34022.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Entities TeamPriority2bug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions