Issue 2404: Gerrit doesn't parse single-purpose ssh public keys properly via web settings
Status:  New
Owner: ----
Reported by flub...@gmail.com, Jan 16, 2014
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version:

What steps will reproduce the problem?
1. Generate an SSH public key with a command prefix (e.g. command="/sbin/nologin",no-port-forwarding,no-X11-forwarding,no-agent-forwarding,no-pty ssh-rsa ... )
2. Try attaching key to account via Gerrit settings on web

What is the expected output? What do you see instead?

Expected: Key attaches to account.
Actual: Gerrit returns error stating 'invalid public key'.

Please provide any additional information below.
Reproduced on Gerrit 2.6.1