Merge lp:~maxiberta/launchpad/sshkeyadditionerror-msg-format into lp:launchpad
Proposed by
Maximiliano Bertacchini
Status: | Merged |
---|---|
Merged at revision: | 18689 |
Proposed branch: | lp:~maxiberta/launchpad/sshkeyadditionerror-msg-format |
Merge into: | lp:launchpad |
Diff against target: |
112 lines (+38/-8) 4 files modified
lib/lp/registry/interfaces/ssh.py (+25/-1) lib/lp/registry/model/person.py (+4/-6) lib/lp/registry/tests/test_ssh.py (+7/-0) lib/lp/testing/__init__.py (+2/-1) |
To merge this branch: | bzr merge lp:~maxiberta/launchpad/sshkeyadditionerror-msg-format |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Colin Watson (community) | code | Approve | |
Review via email: mp+348230@code.launchpad.net |
Commit message
Fix crash while adding an ssh key with unknown type.
Description of the change
Fix encoding crash while adding an ssh key with unknown type. E.g. on an attempt to add this key in SSO /ssh-keys:
ssh-rsa asdfasdf comment
LP raises an encoding error and crashes. See https:/
Also, add a warning to try to prevent a mismatch with SSO regex matching.
To post a comment you must log in.