Improve description of the auth.gitBasicAuth parameter

This parameter affects all HTTP traffic. Clarify that this is not only
about git over HTTP but also about accessing the REST API.

Change-Id: I15e7dd0489ad8befd079a277dc9578c1d62cb836
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Add guide for project owners

Being a project owner in Gerrit provides many possibilities to
customize the workflow for that project. Unfortunately many project
owners are not aware of it. This new guide should help them to discover
the relevant Gerrit features. The Gerrit documentation already
describes many of the features but it's all spread in different places
and difficult for project owners to find.

So far the project owner guide describes topics around access control.
But this is only a first step and further topics should be added
later.

Change-Id: I4b801a05cc0e986cf4c3192add6bdaad560d9f28
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Add guide for project owners" into stable-2.9
ProjectInfoScreen: Display submit type and content merge next to each other

The submit type and the content merge option (aka automatically
resolve conflicts) are related and should be displayed next to each
other.

Change-Id: I72df09eda85c080b033b2c38683d006ac4d81dbe
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Rename 'Change Submit Action' in documentation to 'Submit Type'

Most places in the documentation speak about 'submit type'. It is
confusing if in a few places another name is used.

Change-Id: I326775044bfbfb0b17badb11b37c4c66cac91aaa
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Make singleusergroup a core plugin

This plugin might be useful for a lot of users.  Make it a core plugin
so it gets included in the distributed war file and offered to the user
during installation.

Change-Id: Ic69e01018d11b1989b36150584b104a98d48ea99
Improve documentation about project creation

The documentation wasn't mentioning that projects can be created in
the Gerrit WebUI and via the REST API.

Change-Id: I79c1892969bd73a8dddc2c506b43a252bd4810bb
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Improve description of the auth.gitBasicAuth parameter" into stable-2.9
Allow service users to access REST API if auth.gitBasicAuth = true

If auth.gitBasicAuth is set to true in the gerrit.config file all HTTP
traffic is authenticated using standard BasicAuth and the credentials
are validated using the same auth method as configured for the Gerrit
Web UI. E.g. for LDAP this means that users must use their LDAP
password for Git over HTTP and for accessing the REST API.

Service users are technical users that were created by the
create-account SSH command. These users only exist in Gerrit and hence
they do not have any LDAP password. This is why at the moment service
users are not able to make use of the REST API if auth.gitBasicAuth is
set to true.

With this change users that exist only in Gerrit but not in LDAP are
authenticated with their HTTP password from the Gerrit database if
auth.gitBasicAuth is set to true.

Change-Id: I030c8810807ba678c148f7785a64cc5ff25308b8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge "Allow service users to access REST API if auth.gitBasicAuth = true" into stable-2.9
Merge "Improve documentation about project creation" into stable-2.9
Document project options

Change-Id: Id1f4172d8e6f7182c4eb5f0e90913553e6ca1dce
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
rest-api-groups.txt: Correct input examples to use [] for lists

Change-Id: I109bced2f9309dd20a7962d5fdbcd999fa6f87ff
(cherry picked from commit a2bf824fa154b7cb51e8f89df8321d02c25f3425)
Fix REST example for removing included groups from a group

Change-Id: I8047fa702c12150232ebf62bcd16a27eb638c5e8
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Fix: Wrong exception mapping in ReceiveCommmits

When IOException is thrown in insertPatchSet() or
insertChange(), e.g. ClosedByInterruptException thrown
from AutoCommitWriter.manualFlush(), it will be
mapped to OrmException with error message
"Error updating database" by ORM_EXCEPTION, this becomes
misleading when the administrator analyzes the error log.

Fixed. Replaced the ORM_EXCEPTION with INSERT_EXCEPTION.

Change-Id: I49a6dfea7e49df72db775989a3a0501f60db76d2
Add a section about the submit type to the project owner guide

This section provides some help to choose the right submit type.

Change-Id: Iee1d883563fa91f2c1a4de3b00da5c53b847f008
Signed-off-by: Edwin Kempin <edwin.kempin@sap.com>
Merge changes Iee1d8835,Id1f4172d into stable-2.9

* changes:
  Add a section about the submit type to the project owner guide
  Document project options
Merge branch 'stable-2.8' into stable-2.9

* stable-2.8:
  Fix: Wrong exception mapping in ReceiveCommmits
  Fix REST example for removing included groups from a group
  rest-api-groups.txt: Correct input examples to use [] for lists

Change-Id: I36518fec208e4ab101192118aebeb6c5e0d7e34c
More improvements in the change info block UI

On the project settings icon's tooltip, instead of saying "Go to
project", which is a bit ambiguous, say "Go to project settings".

Instead of linking the project name to the project's default dashboard,
link to a project query.

Add a new dashboard icon (from [1]) that links to the dashboard.

[1] https://www.iconfinder.com/icons/169906/chart_dashboard_graph_icon

Change-Id: If3792fc9f42e2dd75b65a5d40a7974556de56df0
Bump Jcraft SSH library to 0.1.51

ChangeLog claims that new release fixes sporadic "verify: false" failures.

Change-Id: I1deba0b20dd713c0a9d2ed53b1751dbd078094ab