Encoding issues with the metadata output
Metadata
Current evaluation
Closed without a documented fix after CRAFT-3023 was created; no linked PR, commit, or maintainer explanation accompanied the closure.
Resolution: closed stale
Reason: The only recorded follow-up was the automated creation of CRAFT-3023 in June 2024. After roughly two years without activity, the issue was closed with no resolving PR, commit, or maintainer rationale.
Evaluated by: mr-cal-bot
No scores available.
Issue body
### Bug Description
In the metadata retrieved via the API, we see output like `\u003c` instead of `<`.
For example, see the build at https://qastaging.launchpad.net/~ines-almeida/+snap/sleepy-test-fetch-service/+build/2298615
In order to rule out an issue with Launchpad, we directly ran e.g.
```
curl -X GET -v http://localhost:9999/session/7e01f77195764ab9ac7e738b907b3c88
```
and got the same output, see https://pastebin.canonical.com/p/WD9TmxPsny/.
This is especially common in email addresses, e.g. `author-email":"Ubuntu Kernel Team \u003ckernel-team@lists.ubuntu.com\u003e`.
### To Reproduce
- run a build where email addresses are involved
- check output
### Relevant log output
```shell
https://pastebin.canonical.com/p/WD9TmxPsny/
```
Evaluation history
| Date | Model | Scores | Action | Summary |
|---|---|---|---|---|
| stealth/space-bunny-alpha | — | closed stale | Closed without a documented fix after CRAFT-3023 was created; no linked PR, commit, or maintainer explanation accompanied the closure. | |
| stealth/space-bunny-alpha | — | closed resolved | Fixed by merged PR #167, which disabled JSON HTML escaping so metadata contains literal < and > characters. | |
| stealth/space-bunny-alpha | — | closed stale | Closed with no documented code fix, linked PR, or maintainer rationale. CRAFT-3023 was created in June 2024, followed by roughly two years without activity. | |
| qwen/qwen3.6-35b-a3b | — | — | Closed without a fix. The report was redirected to an internal Jira ticket via a bot comment, indicating the encoding bug in metadata output was abandoned or deferred to internal tracking. |
Update history
| Date | Change |
|---|---|
| created |
Related issues
| Issue | Project | State | Summary | Similarity |
|---|---|---|---|---|
| #507 Permissions owner and group not applied | craft-parts | closed | Closed with no documented fix; CRAFT-2949 was created, but no resolving PR or commit is identified. | |
| #1656 Add more charmhub related metadata to init templates | charmcraft | closed | Closed without a recorded fix or resolving PR; the only comment was an automated sync to internal ticket CRAFT-2823. | |
| #459 internal error for "charmcraft revisions" | charmcraft | closed | Closed with no documented fix, closing comment, or linked PR or commit; no repository change could be reliably tied to the closure. |