UI does not show SSH Pubkey Comment with Spaces
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Triaged
|
Medium
|
Unassigned | ||
maas-ui |
Fix Committed
|
Medium
|
Peter Makowski |
Bug Description
# Bug summary
When adding an SSH Pubkey in the web UI (at `.../r/
# Version and build
3.4.1
# Interface used
Web interface.
# What happened
When a key is added with no spaces in the comment, the UI works as expected. When the comment contains a space, the comment is not shown, instead the start of the key material is shown. See screenshot for an example of both behaviors.
# Steps to reproduce
I added the following two newly generated keys using the "Source: Upload" in the web interface:
```
$ ssh-keygen -t ed25519 -f ~/.ssh/test1 -C "test_nospace"
$ ssh-keygen -t ed25519 -f ~/.ssh/test2 -C "test with space"
$ cat ~/.ssh/test1.pub
ssh-ed25519 AAAAC3NzaC1lZDI
$ cat ~/.ssh/test2.pub
ssh-ed25519 AAAAC3NzaC1lZDI
```
Changed in maas-ui: | |
milestone: | none → 3.6.0 |
Changed in maas-ui: | |
assignee: | nobody → Peter Makowski (petermakowski) |
status: | Triaged → In Progress |
Changed in maas-ui: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
milestone: | 3.6.0 → 3.6.x |
Hi dbxyz and thanks for reporting this bug.
Confirmed in 3.5 RC3 as well