Skip to content

Bug When Prompting User for Legal Participant Details #5

@agmangas

Description

@agmangas

The program that prompts the user to fill in the details of their legal participant does not seem to work correctly when the legal name contains spaces. For example, see the log below.

The line bash: line 1: Centro: command not found indicates that the program has not properly read the full legal name: "CTIC Centro Tecnologico".

task: [credentials-manager:start-api] docker compose -p ctic up credentials-api --wait
WARN[0000] Found orphan containers ([ctic.wallet ctic.did-server]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 1/1
 ✔ Container ctic.credentials-api  Healthy                                                                                                                                                                   0.5s
Provision Wallet
2024-10-31 09:23:41.128 | INFO     | libs.waltid.wallet.WalletClass:auth_create_wallet:87 - User [email protected] created
2024-10-31 09:23:41.959 | INFO     | libs.waltid.wallet.WalletClass:import_key:203 - Imported key (GuCl-OPfbjb8frbDYhdCXv9fk8exnJcvZNFT5l3A1f8) into wallet: %s
2024-10-31 09:23:42.620 | INFO     | gaiax.registry:check_x5u_compliance_gx_trustanchor:15 - Root for the certificate chain is verified as a TrustAnchor in the registry
2024-10-31 09:23:42.643 | INFO     | libs.waltid.wallet.WalletClass:create_did_web:256 - DID web created did:web:ctic.dcserver.cticpoc.com:wallet-api:registry:b63181e4-71d7-45c1-a9d9-19aa0b664129
2024-10-31 09:23:42.643 | INFO     | __main__:<module>:64 - Prticipant DID =did:web:ctic.dcserver.cticpoc.com:wallet-api:registry:b63181e4-71d7-45c1-a9d9-19aa0b664129
Do you want to create a legal participant? (yes/no) [no]: yes
Creating legal participant...
task: [credentials-manager:start-api] docker compose -p ctic up credentials-api --wait
WARN[0000] Found orphan containers ([ctic.wallet ctic.did-server]) for this project. If you removed or renamed this service in your compose file, you can run this command with the --remove-orphans flag to clean it up.
[+] Running 1/1
 ✔ Container ctic.credentials-api  Healthy                                                                                                                                                                   0.5s
Enter legalName (CEA): CTIC Centro Tecnologico
Enter VAT ID (FR43775685019): ESG33906637
Enter subdivision (FR-OCC): ES-AS
Creating legal participant: legalName=CTIC Centro Tecnologico, vatID=ESG33906637, CountrySubdivisionCode=ES-AS
bash: line 1: Centro: command not found
task: Failed to run task "credentials-manager:create-legalparticipant": exit status 127
task: Failed to run task "start-all": exit status 201

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions