gerrit/gerrit-server
Luca Milanesio 7dadcbf091 Fixes NPE when username not found and matches by external ID
In Ia6561200 we changed to look up users in the cache by the username
from both the "gerrit:" and "user:" schemes. However, the username
cache only contains keys for the "user:" scheme, so we need to
double-check that there is actually a corresponding external ID in the
cached AccountState for the actual ID we're looking up. This was not
the case in e.g. LuceneQueryChangesTest, causing an NPE.

If the requested key does not match exactly, we fall back to fetching
the external ID directly from the database.

Change-Id: Id3b1b9b76d6ba415abee2051409ff0843caf1c85
2015-09-29 10:59:04 -04:00
..
src Fixes NPE when username not found and matches by external ID 2015-09-29 10:59:04 -04:00
BUCK Expose acceptance test framework as new plugin artifact 2015-09-25 14:46:10 -04:00