Internal Server Error when adding invalid SSH keys

Bug #1298788 reported by Julian Edwards
6
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/prefs/sshkey/add/ results in an internal server
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’.

Tags: netcraft

Related branches

Revision history for this message
Raphaël Badin (rvb) wrote :

I can't reproduce that. I think this is a duplicate of bug 1298788 and it's been already fixed.
However, while fiddling with wrongly formatted ssh keys, I found that submitting 'ssh-r' triggers an error (http://paste.ubuntu.com/7168866/).

Raphaël Badin (rvb)
Changed in maas:
assignee: nobody → Raphaël Badin (rvb)
status: Triaged → In Progress
Raphaël Badin (rvb)
Changed in maas:
status: In Progress → Fix Committed
Changed in maas:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.