gerrit/gerrit-acceptance-framework
Dave Borowitz 2afe3e308d ChangeUtil: Fix findChanges for anonymous users
In I7710befa I didn't realize the user provider was a
Provider<IdentifiedUser>, which caused a ProvisionException when
anonymous users tried to use the REST API to look up changes by
something other than a number. This wasn't noticed sooner because it
didn't affect the web UI, which exclusively uses change numbers.

Change to Provider<CurrentUser> and use asIdentifiedUser only at the
sites where an IdentifiedUser is needed. This will throw a different
unchecked exception type on failure (UnsupportedOperationException
instead of ProvisionException), but callers aren't depending on that.

Add a test, during which I also discovered a bug in the implementation
of AbstractDaemonTest#setApiUserAnonymous. That wasn't already causing
failures because the only user was using it to avoid some side effects
that "may" have happened.

Change-Id: Idbad114d6f5a61167d6fda32ee0093558491cf8e
2015-12-08 09:14:24 -05:00
..
src/test/java/com/google/gerrit/acceptance ChangeUtil: Fix findChanges for anonymous users 2015-12-08 09:14:24 -05:00
BUCK Add deps to gerrit-acceptance-framework to support httpd plugin IT tests 2015-11-24 14:07:27 -05:00
pom.xml Set version to 2.13-SNAPSHOT 2015-11-09 21:44:27 +00:00