ssh keys are not linked if the key doesn't have a comment
Bug #540195 reported by
Stuart Colville
This bug report is a duplicate of:
Bug #60601: Add an ssh key should allow adding a key without comments.
Edit
Remove
This bug affects 3 people
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Launchpad itself |
Triaged
|
Low
|
Unassigned |
Bug Description
Launchpad allows users to add SSH keys without the optional comment. The only problem with this is that launchpad uses the comment as the basis of creating a link to the key on the user page under SSH keys e.g: https:/
Without the comment there's no visible link to the key even when the key is present and functions correctly. Having added a comment into the key and re-submitting it appears correctly.
affects: | launchpad → launchpad-registry |
Changed in launchpad-registry: | |
importance: | Undecided → Low |
status: | New → Triaged |
To post a comment you must log in.
The problem code is this
try:
kind, keytext, comment = sshkey.split(' ', 2)
except ValueError:
raise SSHKeyAdditionError
if not (kind and keytext and comment):
raise SSHKeyAdditionError
The error could be explicit and state what parts are missing that are required.