hashicorp / hashicorp/nomad

Nomad-UI: &reg is replaced by ® in logs

Open
#14,467 1 comment 0 reactions 0 assignees View on GitHub
theme/ui type/bug
Dominant language
Go
Stars
17k
Forks
2.1k
Avg merge
1d 9h
Merged PRs (30d)
105

Description

### Nomad version
1.3.5

### Operating system and Environment details
Linux, Fedora release 29

### Issue
When viewed in nomad-ui, the string `®` is being replaced by ® character in allocation logs.

### Reproduction steps
Run the job file included below. In nomad-ui navigate to allocation logs and inspect them. You'll see this:

![obraz](https://user-images.githubusercontent.com/15679217/188601612-0f38add8-f7a6-4dee-adfe-32fbf431082f.png)

#### Expected Result
The log content should be rendered literally. `®` should display as `®`.

#### Actual Result
`®` is being replaced by ® character.

### Job file (if appropriate)

```
job "test" {
group "test" {
task "test" {
driver = "docker"
config {
image = "alpine"
command = "echo"
args = [
"blabla®ion=us",
]
}
}
}
}
```

### Notes

Issue reproduced on both chrome and firefox.

`nomad alloc logs` works fine.

Contributor guide

No contributing guide indexed for this repository

Research direction

Start in the Nomad-UI allocation logs view and reproduce the issue with the provided job file in Chrome or Firefox. Trace how the log content is rendered, then verify that the literal string ® remains ® in the browser while nomad alloc logs continues to work as expected.

Written by the indexing model from the issue text.

Assessment

Domain
frontend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.