Fix login servlets when canonicalWebUrl is not set
Each login servlet knows enough about the incoming request to be able
to not need the canonical web address for redirection purposes. In
the case gerrit.canonicalWebUrl is not set, use the incoming request
to build up the URL.
This solution is a work-around for the fact that somewhere before 2.5
Colby broke the HttpServletRequest scope based version of the
@CanonicalWebUrl provider. Because Guice cannot supply the request in
some contexts we pass the request into the provider as an argument.
Long term all of these authentication methods will be ejected into
their own plugins and it will be possible to revisit how this
configuration is handled.
Change-Id: I0e00b89020860a02b5d6ea77da5c784f5f0bb1b8
6 files changed