Bad error handling for ill-formatted platforms
Metadata
Current evaluation
Crash with AttributeError when platforms is declared as a list instead of a dict in snapcraft.yaml. Triaged, with a developer interested in fixing it.
Suggested action: keep open
Reason: Valid, triaged bug with a clear reproducer (platforms as a list causes AttributeError in _vectorise_platforms at craft_application/services/project.py:227). A developer (navyabijoy) has expressed interest in working on it. The fix is straightforward: add type validation in _preprocess_platforms to check that platforms is a dict and raise a helpful CraftValidationError instead of letting the AttributeError propagate.
Evaluated by: mr-cal-bot
Issue body
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| qwen/qwen3.6-35b-a3b |
Impact:
30
Quick Win:
22
Complexity:
10
Confidence:
80
Actionability:
80
|
keep open | Crash with AttributeError when platforms is declared as a list instead of a dict in snapcraft.yaml. Triaged, with a developer interested in fixing it. | |
| qwen/qwen3.6-35b-a3b |
Impact:
30
Quick Win:
20
Complexity:
15
Confidence:
90
Actionability:
80
|
keep open | Crash with AttributeError when platforms is declared as a list instead of a mapping; needs a user-friendly error message instead of a traceback. |
Update history
| Date | Change |
|---|---|
| updated | |
| updated | |
| updated | |
| created |
Related work
-
Duplicate Of:
snapcraft#6484
(confidence 90%)
Identical issue reported in snapcraft repo; craft-application is the correct location since the stack trace originates there.
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #6484 Bad error handling for ill-formatted platforms | snapcraft | open | Crash when platforms is incorrectly specified as a list instead of a mapping; requests a user-friendly error message instead of an AttributeError traceback. |