[SRU]: Broken collection in certain localization environments
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| ubuntu-insights (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
| Questing |
New
|
Undecided
|
Unassigned | ||
Bug Description
[ Impact ]
* Ubuntu Insights is not a user-facing application, so direct impact on the user is minimized. However, the bug fixed here is important for the developer side.
* The localization standardization is not properly applied to commands executed by Ubuntu Insights when it generates its collection reports. In certain environments, particularly localization environments that use comma decimal delimiters, this results in error messages in logs and incorrect report generation. This means misleading reports being potentially generated.
[ Test Plan ]
1. Ensure consent is set to true via `ubuntu-insights consent linux -s=true`.
2. With a localization that uses comma separators for decimals, for instance FR, generate a report via `ubuntu-insights collect -f`.
3. Check that there are no unexpected errors related to formatting, and check that the printed output makes sense, particularly for disk and memory size.
4. Check that a generated report is present in `~/.cache/
[ Where problems could occur ]
* Collection localization standardization is not properly solved, and the reports are either still improperly generated in certain localization environments, or no reports are generated at all.
[ Other Info ]
* As mentioned earlier, Ubuntu Insights is not a user-facing application. However, this issue breaks core functionality that the development team relies on for the collection of anonymized, consent-based telemetry on Ubuntu Desktop. Thus, though Questing is an interim release, an SRU is justified.
* Related upload for Resolute (26.04): https:/
* GitHub repository: https:/
Related branches
- Nick Rosbrook (community): Approve
- git-ubuntu import: Pending requested
-
Diff: 138 lines (+99/-2)4 files modifiedautostart/systemd/ubuntu-insights-upload.service (+1/-1)
debian/changelog (+7/-0)
internal/cmdutils/cmd.go (+1/-1)
internal/cmdutils/cmd_unix_test.go (+90/-0)
| description: | updated |
| description: | updated |
| summary: |
- [SRU]: Broken collection in certain localization environments and broken - upload unit + [SRU]: Broken collection in certain localization environments |

These changes are already included in resolute, so marking the bug task accordingly.