Merge branch 'stable-2.6' into stable-2.7

* stable-2.6:
  Say in gsql documentation that 'Access Database' capability is required
  Release notes for Gerrit 2.6.2
  Fix NullPointerException when comparing AccessSections
This commit is contained in:
Shawn Pearce 2013-08-06 11:33:27 -07:00
commit 28d5fe0209
5 changed files with 51 additions and 5 deletions

View File

@ -32,7 +32,9 @@ OPTIONS
ACCESS ACCESS
------ ------
Caller must be a member of the privileged 'Administrators' group. Caller must have been granted the
link:access-control.html#capability_accessDatabase[Access Database]
global capability.
SCRIPTING SCRIPTING
--------- ---------

View File

@ -0,0 +1,43 @@
Release notes for Gerrit 2.6.2
==============================
Gerrit 2.6.2 is now available:
link:https://gerrit-releases.storage.googleapis.com/gerrit-2.6.2.war[
https://gerrit-releases.storage.googleapis.com/gerrit-2.6.2.war]
There are no schema changes from 2.6.1.
However, if upgrading from a version older than 2.6, follow the upgrade
procedure in the 2.6 link:ReleaseNotes-2.6.html[Release Notes].
Bug Fixes
---------
* Fix null-pointer exception when dashboard title is not specified.
+
If the title is not specified, the path of the dashboard config file
is used as title.
* link:https://code.google.com/p/gerrit/issues/detail?id=2010[Issue 2010]:
Fix null-pointer exception when searching for changes with the query
`owner:self`.
* Properly handle double-click on external group in GroupTable.
+
Double-clicking on an external group opens the group's URL (if it
is provided).
* link:https://code.google.com/p/gerrit/issues/detail?id=1872[Issue 1872]:
Fix tab expansion in diff screens when syntax coloring is on.
* link:https://code.google.com/p/gerrit/issues/detail?id=1904[Issue 1904]:
Fix diff screens for files with CRLF line endings.
* Allow label values to be configured with no text.
No other changes since 2.6.1.

View File

@ -9,6 +9,7 @@ Version 2.7.x
[[2_6]] [[2_6]]
Version 2.6.x Version 2.6.x
------------- -------------
* link:ReleaseNotes-2.6.2.html[2.6.2]
* link:ReleaseNotes-2.6.html[2.6] * link:ReleaseNotes-2.6.html[2.6]
[[2_5]] [[2_5]]

View File

@ -124,7 +124,7 @@ public class AccessSection extends RefConfigSection implements
if (!super.equals(obj) || !(obj instanceof AccessSection)) { if (!super.equals(obj) || !(obj instanceof AccessSection)) {
return false; return false;
} }
return new HashSet<Permission>(permissions).equals(new HashSet<Permission>( return new HashSet<Permission>(getPermissions()).equals(new HashSet<Permission>(
((AccessSection) obj).permissions)); ((AccessSection) obj).getPermissions()));
} }
} }

View File

@ -241,8 +241,8 @@ public class Permission implements Comparable<Permission> {
if (!name.equals(other.name) || exclusiveGroup != other.exclusiveGroup) { if (!name.equals(other.name) || exclusiveGroup != other.exclusiveGroup) {
return false; return false;
} }
return new HashSet<PermissionRule>(rules) return new HashSet<PermissionRule>(getRules())
.equals(new HashSet<PermissionRule>(other.rules)); .equals(new HashSet<PermissionRule>(other.getRules()));
} }
@Override @Override