gerrit/gerrit-server
Owen Li 27e3f374ee Fix invalid operator invalidating web session
So far, enforcing authentication for query operators which require it
was done by matching an error message. Problem with this approach is,
if the query operator is invalid (as, for example, "has:starss") this
invalidates the web session for the logged in user.

Create a new exception QueryRequiresAuthException to explicitly handle
the case where an operator requires authentication and throw this when
needed instead of the generic QueryParseException.

Bug: issue 6657
Change-Id: I93096ec3b0918f8238cf2eeef96cf2cf42410e72
2017-10-04 05:23:33 -04:00
..
src Fix invalid operator invalidating web session 2017-10-04 05:23:33 -04:00
BUILD Don't ship bouncycastle libraries in plugin API 2017-04-07 07:38:04 +02:00