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
Create UI - min start date check is not working (was: Re-enact previous error message) #30497
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresPriority2UX AssurancebugSomething isn't working
This was reported by an end user, and the UI should have prevented them from entering a start date older than 10 years. This was originally implemented but seems to be broken, and should be fixed.
The reported issue is related to the error message, but actually it's fine -- the UI failed to catch the error (and so did not display an error) but the API caught it.
Note that a staff user has a special permission to bypass the "min start date" check. Please verify that this still works (UI + API -- full filing test).
changed the title [-]Create UI - Re-enact previous error message for firm's registration[/-][+]Create UI - min start date check is not working (was: Re-enact previous error message)[/+]on Oct 7, 2025
Bobby, thank you for testing and verifying that the expected code is in place.
@Mihai-QuickSilverDev , our analysis is complete and we have not been able to reproduce this, nor do we see how the code might allow it. Can we walk through your scenario with you some time to see if we're missing something? Thanks!
Mihai bypassed the start date validation in the UI by having staff update the draft. Since it was the user who finally submitted the filing, the API used the user's permissions and did not allow the start date older than 10 years.
I believe Mihai's request is to allow a start date older than 10 years when that change was done by staff but the filing is submitted by a regular user.
I can't think of a way to quickly do this that wouldn't be easily spoofable by an API user. (Note that we do not know whether the submission is from an API user or a regular user. They are currently undistinguishable.)
If we come up with a technical solution then I recommend creating a new ticket (possibly with sub-issues). We should also consider whether any other validations should be bypassed when the data is entered by staff.
@argush3 , Mihai tells me that the API should always allow a start date older than 10 years in a registration filing. (It's validated in Create UI.)
MD: Yes, as mentioned in our direct communication: We are asking for us to know unequivocally that if the Business Start Date is older than 10 years, that was done by Staff. Simply, because no other user has that right. If they do, that's a bug that needs to be fixed on its own.
Mihai said I should ask you: Isn't there a concern that an API user could set a start date older than 10 years, when they shouldn't be allowed to?
MD: - this is not what I asked. What I said is, if you have any concerns of API users being able to move a firm's Business Start Date beyond 10 years themselves, that's something you need to discuss with the API experts, in this case Argus.
What a coincidence! That ticket asks for the role check to be replaced with a permissions check. However, either check will prevent a user-submitted registration with a business start date older than 10 years.
Mihai bypassed the start date validation in the UI by having staff update the draft. Since it was the user who finally submitted the filing, the API used the user's permissions and did not allow the start date older than 10 years.
To me, this seems like circumventing the checks we put in the UI. Is this a valid scenario that we want to support?
Options:
ask staff to submit a registration with validation overrides (ie, that would block a user), or
leave the validation only in the UI, and remove it from the API (but this might let API users enter invalid data), or
come up with a design to allow staff to override some values but the user will submit the filing
Entities TeamA label to filter on the tickets for the Entities based team that takes care of front end featuresPriority2UX AssurancebugSomething isn't working
Activity
[-]Create UI - Re-enact error message for firm's registration[/-][+]Create UI - Re-enact previous error message for firm's registration[/+]severinbeauvais commentedon Sep 3, 2025
deleted obsolete comment
severinbeauvais commentedon Sep 3, 2025
deleted obsolete comment
severinbeauvais commentedon Sep 5, 2025
This was reported by an end user, and the UI should have prevented them from entering a start date older than 10 years. This was originally implemented but seems to be broken, and should be fixed.
The reported issue is related to the error message, but actually it's fine -- the UI failed to catch the error (and so did not display an error) but the API caught it.
severinbeauvais commentedon Oct 7, 2025
Note that a staff user has a special permission to bypass the "min start date" check. Please verify that this still works (UI + API -- full filing test).
[-]Create UI - Re-enact previous error message for firm's registration[/-][+]Create UI - min start date check is not working (was: Re-enact previous error message)[/+]bobdev-94 commentedon Oct 7, 2025
I tested it with regular user.

It's disabled so user cannot select start date older than 10 years old.
severinbeauvais commentedon Oct 7, 2025
Please follow up with this ticket's author to see how this may have been done as described.
Also, please verify that you can file a Registration, as staff, with a start date older than 10 years. I want to check that the API does not block it.
Thank you.
bobdev-94 commentedon Oct 8, 2025
https://github.com/bcgov/lear/blob/e01756d9dff72c2963f11f567e41b91f38e7f09c/legal-api/src/legal_api/services/filings/validations/registration.py#L138-L141
https://dev.business-dashboard.bcregistry.gov.bc.ca/FM1169767?filing_id=206568&accountid=3040
You can download the document and check the start date - August 24, 2005
severinbeauvais commentedon Oct 8, 2025
Bobby, thank you for testing and verifying that the expected code is in place.
@Mihai-QuickSilverDev , our analysis is complete and we have not been able to reproduce this, nor do we see how the code might allow it. Can we walk through your scenario with you some time to see if we're missing something? Thanks!
Mihai-QuickSilverDev commentedon Oct 8, 2025
@OlgaPotiagalova This ticket can be closed.
NOTE:
Mihai-QuickSilverDev commentedon Oct 8, 2025
Error Scenario:
To Do List:
NOTE:
severinbeauvais commentedon Oct 8, 2025
Mihai bypassed the start date validation in the UI by having staff update the draft. Since it was the user who finally submitted the filing, the API used the user's permissions and did not allow the start date older than 10 years.
I believe Mihai's request is to allow a start date older than 10 years when that change was done by staff but the filing is submitted by a regular user.
I can't think of a way to quickly do this that wouldn't be easily spoofable by an API user. (Note that we do not know whether the submission is from an API user or a regular user. They are currently undistinguishable.)
If we come up with a technical solution then I recommend creating a new ticket (possibly with sub-issues). We should also consider whether any other validations should be bypassed when the data is entered by staff.
@argush3 @vysakh-menon-aot Any ideas on how to solve this?
severinbeauvais commentedon Oct 8, 2025
@argush3 , Mihai tells me that the API should always allow a start date older than 10 years in a registration filing. (It's validated in Create UI.)
MD: Yes, as mentioned in our direct communication: We are asking for us to know unequivocally that if the Business Start Date is older than 10 years, that was done by Staff. Simply, because no other user has that right. If they do, that's a bug that needs to be fixed on its own.
Mihai said I should ask you: Isn't there a concern that an API user could set a start date older than 10 years, when they shouldn't be allowed to?
MD: - this is not what I asked. What I said is, if you have any concerns of API users being able to move a firm's Business Start Date beyond 10 years themselves, that's something you need to discuss with the API experts, in this case Argus.
Mihai-QuickSilverDev commentedon Oct 8, 2025
Looks like @severinbeauvais is already working on a fix for this situation here: https://app.zenhub.com/workspaces/entities---olga-65af15f59e89f5043c2911f7/issues/gh/bcgov/entity/30993
severinbeauvais commentedon Oct 8, 2025
What a coincidence! That ticket asks for the role check to be replaced with a permissions check. However, either check will prevent a user-submitted registration with a business start date older than 10 years.
severinbeauvais commentedon Oct 8, 2025
SB wrote:
To me, this seems like circumventing the checks we put in the UI. Is this a valid scenario that we want to support?
Options:
cc: @OlgaPotiagalova