Skip to content

Internal error due to entering SSH key through browser flow #867

@gitblit

Description

@gitblit

Originally reported on Google Code with ID 571

What steps will reproduce the problem?
1. generate public key with Git Bash for windows
2. cut and paste ssh key from Git Bash for windows to gitblit site 'add ssh key' from
browser.
3. select 'add'.

What is the expected output? What do you see instead?
Should accept but throws an internal error.  To resolve, I delete the generated key
on the server under <gitblit install>/data/ssh/<ownername>.keys

NOTE: Once you get into this state (internal error when trying to get to the 'my profile'
page), there is no way to get into the 'my profile' page.  It always throws an internal
error.

As a workaround, the user can remove spurious newlines from the cut-n-paste operation.
 A colleague had a similar problem on the linux flow with no obvious workaround as
in the above windows flow.

Seems like a more robust scrubbing of the input text would resolve issue like removing
all newlines and reduce whitespace to single whitespace before processing input.

What version of the product are you using? On what operating system?

gitblit 1.6.2 / windows

Please provide any additional information below.

Gitblit is awesome.  Fantastic work! 

Thank you!

Reported by mark.n.pettigrew on 2015-03-07 03:12:40

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions