Internal Server Error when adding invalid SSH keys
Bug #1298788 reported by
Julian Edwards
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
MAAS |
Fix Released
|
High
|
Raphaël Badin |
Bug Description
Adding an invalid SSH key using /MAAS/account/
error when the submitted key is short and contains a single quote. For example ssh-rsa ‘. Attempting
to add the same key using the API causes the error message ‘unpack requires a string argument
of length 4’.
Related branches
lp:~rvb/maas/wrong-key-bug-1298788
- Jeroen T. Vermeulen (community): Approve
-
Diff: 82 lines (+22/-8)2 files modifiedsrc/maasserver/models/sshkey.py (+13/-8)
src/maasserver/models/tests/test_sshkey.py (+9/-0)
Changed in maas: | |
assignee: | nobody → Raphaël Badin (rvb) |
status: | Triaged → In Progress |
Changed in maas: | |
status: | In Progress → Fix Committed |
Changed in maas: | |
status: | Fix Committed → Fix Released |
To post a comment you must log in.
I can't reproduce that. I think this is a duplicate of bug 1298788 and it's been already fixed. paste.ubuntu. com/7168866/).
However, while fiddling with wrongly formatted ssh keys, I found that submitting 'ssh-r' triggers an error (http://