PPR Business Debtor Search - Select Name with French Characters.
- Dominant language
- JavaScript
- Stars
- 23
- Forks
- 62
- Avg merge
- 24m
- Merged PRs (30d)
- 1
Description
From OPs ticket https://sbc-registries.atlassian.net/browse/ITOPS-137483, when selecting a PPR business debtor name from the business name lookup to search on and the name contains a French character, the search is prevented from completing. The API returns an invalid character data validation error on the search name. This behaviour is inconsistent as a selected name is a valid search value. The API currently prevents names from having non-ascii characters, so no existing names contain French characters. The temporary solution may be to allow the non-ascii characters when searching but substitute the French characters when generating the search key (so a match will be found searching with or without the French character). The long term solution may be to allow names with utf-8 characters instead of the ascii only subset.
Testing Note:
Unicode reference: https://en.wikipedia.org/wiki/List_of_Unicode_characters
API requests submit non-ascii characters using the escaped hex value. For example, É is submitted as \u00c8:
```
{
"type": "INDIVIDUAL_DEBTOR",
"criteria": {
"debtorName": {
"last": "C\u00e9zanne",
"first": "\u00c8mile"
}
},
"clientReferenceId": "UT-DI-French-002"
}
```
or
```
{
"type": "BUSINESS_DEBTOR",
"criteria": {
"debtorName": {
"business": "TEST \u00c8mile Caf\u00e9"
}
},
"clientReferenceId": "UT-DB-French-001"
}
```
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.