-
Bug
-
Resolution: Cannot Reproduce
-
Normal
-
None
-
1.7.1
-
None
-
False
-
-
False
-
Release Note Not Required
-
-
Steps to Reproduce:
- git clone https://github.com/redhat-developer/rhdh-local.git
- cd rhdh-local/
- cp configs/app-config/app-config.local.example.yaml configs/app-config/app-config.local.yaml
- cp configs/dynamic-plugins/dynamic-plugins.override.example.yaml configs/dynamic-plugins/dynamic-plugins.override.yaml
- podman compose up
Actual Result:
The server fails to start with the following error:
Plugin 'app' startup failed; caused by Error: Invalid app bundle schema. Config validation failed, Config must have required property 'analytics'
Expected Result:
The application should start successfully when using the provided example configuration.
Workaround / Proposed Fix:
Adding an analytics section to configs/app-config/app-config.local.yaml resolves the issue:
app:
title: Red Hat Developer Hub
baseUrl: ${BASE_URL}
#added
analytics:
adoptionInsights:
enabled: false
segment:
writeKey: ""
Rationale for the Fix:
The startup validation requires an analytics key in the app configuration.
Since the example app-config.local.yaml does not include this property, the default setup is not aligned with the current schema.
By adding an analytics section with disabled values, the configuration becomes schema-compliant while still allowing users to enable analytics later if needed.