Gracefully avoid replacing existing patch set

If the client requests replacing the current patch set of a change
with the exact same SHA-1 as the current patch set, just do nothing.
This avoids a spurious error message "commit already exists" when
using %base to update an existing change.

Change-Id: I36d9189eea03cd61ed28a9bd3b53864edeb68fee
TrivialRebase: Fix custom categories

local var was replaced with a member, adapt

Change-Id: Ie1a8a1f899fc54f8c8422a612e17d990bc544788
Include site header, footer and CSS on OpenID login form

Bug: issue 1879
Change-Id: I1c583e01433d09627ac845288cd67db35029ae58
Fix login redirect loop when auth.type = HTTP

In commit eb81d926 I modified the HttpAuthFilter to verify not
only the Gerrit session cookie was valid, but also to confirm the
session matches the username supplied by the container or reverse
proxy web server.

This check fails on Apache servers that use the recommended setting
of required user only on <Location /login/>. Browsers will not send
the Authorization header to /, so the remote user is null and Gerrit
thinks the session was not valid.

Commit eb81d926 added this check to handle SSO cases where every
request is authenticated and the user has performed some SSO action
to switch user identities as described in issue 1822.

Handle both cases more gracefully by only checking the username if
the container is supplying one.

Bug: issue 1862
Change-Id: Iad020049d7ba8a19d6f9c627ecf0d9df62aafafc
Remove resizing search box and fix width at 70

Many Gerrit users have been complaining to me about the automatically
resizing search box. They find the UI confusing and unwanted. Remove
the resizing feature and fix the width at the full size, aka 70
columns wide.

Change-Id: I40b6d8060bc6c2258a00db177bff82f176edff39
Allow InternalUser (aka plugins) to see any internal group

Permit plugins using the InternalUser as their current context user
to parse any group they know the name of. This will eventually allow
replication plugin to resolve authGroups from replication.config.

Bug: issue 1827
Change-Id: Ia9681b4e39a47ff1052225258e07f59435bc09cf
Replace Hashtable with ConcurrentMap

Hashtable is an ancient class that should never be used in modern Java
code.  ConcurrentMap or a synchronizedMap() are the correct ways to
create a thread-safe Map structure.

Change-Id: Iaa50cde3112c1b9f5063df9fecac646d0eb707da
Merge "TrivialRebase: Fix custom categories" into stable-2.6
Distinguish between error and timeout in intraline diff error message

When the intraline diff fails, the error message simply says that
there was a server error.  It could be that the reason for failure
is a timeout, but it's not possible to know this from the error
message.

Add a new error message that is displayed when the intraline diff
fails due to timeout.

Also update the documentation to mention that an error message is
displayed if the intraline diff times out.

Change-Id: I93410d853aadc7ed1f6e4324d0578c4bcbe4e195
Update documentation to clarify how to set Global Capabilities

The documentation does not clearly state that the Global Capabilities
are set via the access rights of the root project (All-Projects).

Also the section in which the Global Capabilities are documented is
named "System Capabilities" which makes it harder to find by searching.

Change the name of the section, and add a clarification paragraph.

Change-Id: I46eaf1e81dfc4962f482571fe25b6a6a10e17b45
Remove unnecessary @SuppressWarnings annotations in ChangeControl

Change-Id: Icd07239b76e170a82e2722087838769953db1d2c
Show mini avatar for all account links

This adds a tiny avatar image for change owners, committers, authors and
group members.

Change-Id: Ib99ee384e93249f54a9b6a2917289a78cb87d610
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Remove resizing search box and fix width at 70"
Merge "Replace Hashtable with ConcurrentMap" into stable-2.6
Merge "Fix login redirect loop when auth.type = HTTP" into stable-2.6
Merge "Distinguish between error and timeout in intraline diff error message" into stable-2.6
Merge "Update documentation to clarify how to set Global Capabilities" into stable-2.6
Merge "Remove unnecessary @SuppressWarnings annotations in ChangeControl" into stable-2.6
Make unified diffs of images show the images again

Since 6963c5fc64bdec4253a08b43e9e0cfc5e67f8f0b, the image showing
block was wrapped in a guard against binary patches. So images were no
longer shown. We move the guard against binary patches to the part
that renders the text diff, and thereby allow to show images again.

Change-Id: Ib09aa6a694f42cb789a4e499f90a1d5430b4fd60
Refactor type dependent unified diff displaying into separate functions

Thereby we can better see the overall flow of control.

Change-Id: I7c49da641cca2b5ec1fd85026f7e9df5a87ba32d