Comment 0 for bug 2064920

Revision history for this message
DB (dbxyz) wrote :

# Bug summary

When adding an SSH Pubkey in the web UI (at `.../r/account/prefs/ssh-keys`) the comment of the Pubkey is only shown in the UI, when it does not contain spaces. Otherwise the first few characters of the key material are shown. The first few characters are often the same between different keys, making it impossible to distinguish them in the web UI. The last bit is related to: #1994943.

# 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 to 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 AAAAC3NzaC1lZDI1NTE5AAAAIM8lzUoxsq0Vlg1YBryNMPT0o9QwD9/LhvP9+zPOgK29 test_nospace
$ cat ~/.ssh/test2.pub
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAICCM6h+Y4UU/c8Qr3auS6tLFNsVMMe/+hJMDdn44HknI test with space
```