User Story (Required on creation):
When I start the RPA Bridge with an erroneous configuration, the application should clearly state which properties are configured in the wrong way.
For example, starting the RPA Bridge with both configuration properties org.camunda.bpm.rpa.uipath-api.url as well as org.camunda.bpm.rpa.automation-anywhere-api.url in your application.yml file leads to the following stack trace. Instead, the application should display a meaningful error message helping the user to identify the issue that only one vendor is supported within a single RPA Bridge instance.
2021-10-06 12:19:32.852 INFO 12932 — [ main] ConditionEvaluationReportLoggingListener : Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled. 2021-10-06 12:19:32.853 ERROR 12932 — [ main] o.s.b.d.LoggingFailureAnalysisReporter : *************************** APPLICATION FAILED TO START *************************** Description: The bean 'authentication', defined in class path resource [org/camunda/bpm/rpa/bridge/vendor/uipath/UiPathConfiguration.class], could not be registered. A bean with that name has already been defined in class path resource [org/camunda/bpm/rpa/bridge/vendor/aai/AutomationAnywhereConfiguration.class] and overriding is disabled.Action: Consider renaming one of the beans or enabling overriding by setting spring.main.allow-bean-definition-overriding=true
Functional Requirements (Required before implementation):
- Application properties are properly validated before application start
- Erroneous configurations lead to meaningful error messages that help the user in fixing the errors
Technical Requirements (Required before implementation):
We can either
- Add validation for the use case mentioned here
- Create a centralized configuration validation and move validation logic there where applicable
Limitations of Scope (Optional):
Hints (optional):
No validation of properties [1] at startup is available.
[1] https://reflectoring.io/validate-spring-boot-configuration-parameters-at-startup/
This is the controller panel for Smart Panels app
- is related to
-
CAM-12429 Centralize property validation in the bridge
- Open
- links to