Issue 306: Gerrit requires deleting and re-adding same key to authenticate
Status:  CannotReproduce
Owner: ----
Closed:  Oct 2009
Cc:
Project Member Reported by m.bn...@gmail.com, Oct 20, 2009
Affected Version: 2.0.23
Environment: Linux, Jetty

What steps will reproduce the problem?
1. User has entered a key via the website
2. User attempts to sync, receives "Permission Denied"
3. User deletes and re-adds the *same* key to Gerrit and permission is granted.

What is the expected output? What do you see instead?
The original key should work

Please provide any additional information below.
I've saved a copy of our database when this was broken for a user.
Oct 29, 2009
#1 sop+code@google.com
I can't believe this is true.  I suspect something else was wrong, something that
can be explained by user error.

During a key delete or a key add Gerrit flushes the ssh key cache for that username, 
to ensure their key changes are respected.

I double checked the code for both .23 and .24, we do perform a cache flush after any 
of the following occurs:

* SSH Username is set or modified
* SSH key is added
* SSH key is removed
Status: CannotReproduce
Oct 29, 2009
Project Member #2 m.bn...@gmail.com
This has happened for a *lot* of people here. I will dig up the database backup from
when a user had a problem versus their current information and email it to you, if
that's alright with you.
Oct 29, 2009
#3 sop+code@google.com
Yea, send details by private email if you have something that might help me understand 
might be broken here.