bcgov / bcgov/entity

PPR - Copy and paste of Name into Party fields on registration and amendment

Open
#12,884 2 comments 0 reactions 0 assignees View on GitHub
Assets bug PPR Priority2
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

**Describe the bug in current situation**

Related OPS tickets:

1096
2755

This originated with OPS ticket 1096. The client couldn't complete an Amendment - it turned out a copy and paste was done of the Debtor Name into the Business Debtor Name field and the value contained an apostrophe. The 'Unable to complete registration" error would display with no indication of what the issue was. If you type the name into the Business Debtor Name field, the amendment completes.

We had a similar issue with copy and paste into the search parameter field. That ticket was completed and the issue was resolved.

The fix should be applied to all fields where copy and paste could occur.

**Link bug to the User Story**

**Impact of this bug**
Describe the impact, i.e. what the impact is, and number of users impacted.

**Chance of Occurring (high/medium/low/very low)**
High when a Business Name with an apostrophe is copy and pasted into the Business Debtor Name field.

**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**
Copy and paste from word or outlook into the Business Debtor Name field when adding a new debtor to a registration.

**Steps to Reproduce**
Steps to reproduce the behavior:
1. Start an amendment
2. Add a business debtor
3. Copy and paste a value containing an apostrophe into the Business Debtor Name field from word or outlook
4. Error will occur when attempting to complete amendment

**Actual/ observed behavior/ results**
"Unable to complete registration" error occurs with no indication of what is in error

**Expected behavior**
System accepts the Business Debtor Name and the amendment completes.

**Screenshots/ Visual Reference/ Source**
If applicable, add screenshots to help explain your problem. You an use screengrab.

Contributor guide

No contributing guide indexed for this repository

Research direction

The issue names no source files, tests, or entry points. Start by reproducing the amendment flow with a copied business name containing an apostrophe, then trace the resulting error across the registration form and related fields. Done means pasted names are accepted and the amendment completes without the generic error.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.