Skip to content
This repository has been archived by the owner on Jan 31, 2023. It is now read-only.

Calling enrol with unsuitable CCP can result in unhelpful errors #2909

Closed
nklincoln opened this issue Jan 8, 2021 · 0 comments · Fixed by #2934
Closed

Calling enrol with unsuitable CCP can result in unhelpful errors #2909

nklincoln opened this issue Jan 8, 2021 · 0 comments · Fixed by #2934
Assignees
Labels
enhancement New feature or request

Comments

@nklincoln
Copy link
Contributor

When connecting to an IBP network, by using an exported CCP, it is possible to select to "omit CA information", which results in empty sections for the CA information.

If trying to enrol with this exported profile, using the recommended "import gateway -> create wallet using gateway", then the extension does not check that the required section in the CCP exists and tries to read the required field directly. This can result in (depending on the CCP convention of empty object or missing field) errors of the form:

  • cannot read URL of null
  • empty object

It would be more defensive to check for the required existence of the field and report to the user that the CCP is unsuitable for the action they are trying to perform

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants