canonical / canonical/checkbox
canonical-certification-precheck script is warning of the absence of a [common] config file section
- Dominant language
- Python
- Stars
- 52
- Forks
- 81
- Avg merge
- 2d 17h
- Merged PRs (30d)
- 69
Description
### Bug Description
The `canonical-certification-precheck` script used in Server Certification is checking for the presence of a `[common]` section in `/etc/xdg/canonical-certification.conf`; however, this configuration file does not currently include such a section. The result is that the `XDG_Check` precheck script test fails. Either the default config file should be updated to include such a section or the precheck script should be modified to omit this check, so as to avoid confusing users.
### Cert-blocker Test Case
- [ ] cert-blocker
### To Reproduce
1. Install the `canonical-certification-server` package.
2. Run the `canonical-certification-precheck` script.
3. Answer various questions in the script and observe the output.
### Expected Result
The `XDG_Check` test should pass (assuming the config file is otherwise OK).
### Actual Result
The `XDG_Check` test fails.
### Environment
- Tested with both Ubuntu 24.04 and 25.10
- `canonical-certification-server` 7.0.0~dev150~ubuntu24.04.1 and 7.0.0~dev150~ubuntu25.10.1
### Relevant log output
```shell
XDG_Check -------------------- Failed
```
### Additional context
_No response_
Contributor guide
Research direction
Start by locating the canonical-certification-precheck script and the default /etc/xdg/canonical-certification.conf, then inspect how XDG_Check looks for the [common] section. Reproduce the failure after installing canonical-certification-server and running the precheck. Done means XDG_Check passes without confusing users and the configuration check remains consistent with the default file.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, testing-qa
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 68/100