HomePhabricator
Diffusion Comm 1d64bb76e110

[services] Tunnelbroker - Check for an empty string in ConfigManager

Description

[services] Tunnelbroker - Check for an empty string in ConfigManager

Summary:
This diff fixes a bug when the option in the config file provided, but has an empty value the app throws the following error:
what(): basic_string::_M_construct null not valid.
To fix this we will check the option value not to be empty or throw an appropriate error.

Linear task: ENG-1059

Test Plan:
In the config file located at services/tunnelbroker/tunnelbroker.ini change the option value to an empty.
Run service using the command yarn run-tunnelbroker-service and expect the 'Error: config parameter X can not be empty' error.

Reviewers: karol-bisztyga, palys-swm

Reviewed By: palys-swm

Subscribers: ashoat, palys-swm, Adrian, atul, karol-bisztyga, yayabosh

Differential Revision: https://phabricator.ashoat.com/D4137

Details

Provenance
maxAuthored on May 26 2022, 7:59 AM
Reviewer
tomek
Differential Revision
D4137: [services] Tunnelbroker - Check for an empty string in ConfigManager
Parents
rCOMM22ba6740b514: [keyserver] Better document MySQL errno
Branches
Unknown
Tags
Unknown