Skip to content

Legal API: responding with 403 when user tries to file alteration with changed "Certified By" #30809

Closed

Description

@severinbeauvais
  1. login to Dev as BCREG0020
  2. go to https://dev.edit.business.bcregistry.gov.bc.ca/BC0888309/alteration?accountid=2288
  3. make a simple alteration change
  4. on review page, change Certify Legal Name
  5. file and pay for this alteration
  6. see error below

This is unexpected because the UI allows me to change the Certified By value, so the API should allow me also.

image.png

image.png

image.png

NOTE: I see the same issue in Create UI (voluntary dissolution) if I change the Certify Legal Name.

Activity

  1. added
    bug
    Entities Team
    on Sep 19, 2025
  2. severinbeauvais commented on Sep 19, 2025

    @severinbeauvais
    CollaboratorAuthor

    Rajan, please have a quick look at this and report what you find. Thanks!

  3. severinbeauvais commented on Sep 19, 2025

    @severinbeauvais
    CollaboratorAuthor
  4. severinbeauvais commented on Sep 19, 2025

    @severinbeauvais
    CollaboratorAuthor

    Is Prod safe from this issue? (The enable-permissions-for-action FF is currently Off in Dev, meaning I saw the issue even with the FF off.)

  5. changed the title [-]Legal API: responding with 403 when user tries to file alteration[/-] [+]Legal API: responding with 403 when user tries to file alteration with changed "Certified By"[/+] on Sep 19, 2025
  6. Rajandeep98 commented on Sep 22, 2025

    @Rajandeep98
    Collaborator

    image.png

    regular user doesnt have permission:
    "EDITABLE_CERTIFY_NAME"
    anyone with no permission to edit certify name would get error
    current logic is based on >> jwt name vs sent name
    @severinbeauvais

  7. Rajandeep98 commented on Sep 22, 2025

    @Rajandeep98
    Collaborator

    tested with flag , allows to file changed certify name with OFF state.
    currently ON in dev

  8. severinbeauvais commented on Sep 22, 2025

    @severinbeauvais
    CollaboratorAuthor

    Thanks for looking into this.

    In the UI, some filings allow the user to edit the certify name. In other filings, it's not permitted. Would it make sense to update the API to remove this check for some filings? Or should we ask Olga about removing it altogether?

  9. Rajandeep98 commented on Sep 22, 2025

    @Rajandeep98
    Collaborator

    Ignore Check till certify statements/ name decision.

  10. self-assigned this
    on Nov 5, 2025
  11. gunanagar commented on Nov 5, 2025

    @gunanagar
    Collaborator

    Retested in Dev and Test with the same user (BCREG0020) and working as expected
    Steps followed:
    1.login to Dev as BCREG0020
    2.go to https://dev.edit.business.bcregistry.gov.bc.ca/BC0888309/alteration?accountid=2288
    make a simple alteration change
    3.on review page, change Certify Legal Name
    4.file and pay for this alteration

    Expected Result :
    It should allow to file and pay

    image.png

    TEST Environment

    image.png

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

Metadata

Metadata

Labels

Entities Teambug

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions