The app crashes when loading YAML files that are not UTF-8 encoded.
Metadata
Current evaluation
Fixed by merged PR #1125 (commit 043bc646): safe_yaml_load() now converts non-UTF-8 decode failures into a clear YamlError instead of a raw UnicodeDecodeError traceback; regression test added.
Resolution: closed resolved
Reason: Merged PR canonical/craft-application#1125 (commit 043bc646, "fix: raise a clear error for non-UTF-8 project files") added an `except UnicodeDecodeError` branch in craft_application/util/yaml.py::safe_yaml_load that raises errors.YamlError with "file is not valid UTF-8" and the resolution "Ensure <file> is encoded in UTF-8", plus a UTF-32 regression test.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #1125 (commit 043bc646): safe_yaml_load() now converts non-UTF-8 decode failures into a clear YamlError instead of a raw UnicodeDecodeError traceback; regression test added. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed in merged PR #1125 (commit 043bc646): safe_yaml_load now converts UnicodeDecodeError into a clear UTF-8 error and includes a regression test. | |
| qwen/qwen3.6-35b-a3b | — | — | Fixed in PR #1125 by catching UnicodeDecodeError in safe_yaml_load and raising a standard YamlError with a clear resolution message. Includes a regression test for non-UTF-8 YAML files. | |
| qwen/qwen3.6-35b-a3b |
Staleness:
10
Complexity:
20
Confidence:
95
Support Request:
0
|
keep open | App crashes with UnicodeDecodeError when loading non-UTF-8 YAML files. Triaged bug with an active fix PR (#1125) recently opened to catch the exception and provide a proper error message. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
5
Complexity:
15
Confidence:
90
Support Request:
0
|
keep open | App crashes on non-UTF-8 YAML files due to unhandled UnicodeDecodeError. Issue is triaged and a fix is currently in progress via PR #1125. | |
| qwen3.6-35b-a3b-mtp-q6 |
Staleness:
85
Complexity:
20
Confidence:
80
Support Request:
0
|
keep open | App crashes with UnicodeDecodeError when loading non-UTF-8 YAML files. Triaged bug with no maintainer response or fix in over eight months. |
Update history
| Date | Change |
|---|---|
| closed |
Related work
-
Likely Fixed By:
canonical/craft-application#1125
(confidence 99%)
Merged PR that implements the fix; commit 043bc646 is the only recent change to craft_application/util/yaml.py.
-
Related To:
canonical/craft-application#427
(confidence 40%)
Earlier PR that wrapped YAML errors via errors.YamlError.from_yaml_error, the pattern the new UnicodeDecodeError handler follows.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #1125 fix: raise a clear error for non-UTF-8 project files | craft-application | merged | PR #1125 (vismaytiwari) merged as commit 043bc646: safe_yaml_load() now catches UnicodeDecodeError from UTF-16/32 project files and raises a clear YamlError; adds UTF-32 regression test and7.2.0 changelog entry. Fixes #940. |