blob: 88288e2a905e6396a68402440615c7ed05c0bba9 [file] [log] [blame]
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -07001= Release notes for Gerrit 2.1.5
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -07002
3Gerrit 2.1.5 is now available:
4
Shawn Pearce6d7ebc62015-06-12 16:34:42 -07005link:https://www.gerritcodereview.com/download/gerrit-2.1.5.war[https://www.gerritcodereview.com/download/gerrit-2.1.5.war]
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -07006
David Pursehouse4d7ac772013-06-25 17:14:30 +09007This is primarily a bug fix release to 2.1.4, but some additional
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -07008new features were included so its named 2.1.5 rather than 2.1.4.1.
9
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070010== Upgrade Instructions
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070011
Shawn O. Pearce04bbac52010-08-23 09:31:29 -070012If upgrading from version 2.1.4, simply replace the WAR file in
13`'site_path'/bin/gerrit.war` and restart Gerrit.
14
15If upgrading from version 2.1.3 or earlier, stop Gerrit, use
16`java -jar gerrit.war init -d 'site_path'` to upgrade the schema,
17and restart Gerrit.
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070018
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070019== New Features
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070020
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070021=== Web UI
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070022* issue 361 Enable commenting on commit messages
23+
24The commit message of a change can now be commented on inline, and
25even compared between patch sets, just like any other file contents.
26The message is presented as a magical file called 'Commit Message',
27in the first row of every change.
28
29* issue 312 Implement 'Restore Change' to undo 'Abandon Change'
30+
31Any user who can abandon a change (the change owner, project owner,
32or any site administrator) can now restore the change from Abandoned
33status back to Review in Progress.
34
35* issue 583 Enable/disable download protocols
36+
37The new download section in `gerrit.config` controls how the patch
38set download links are presented in the web UI. Administrators
39can use this section to enable `repo download`, `git://`, or to
40disable `http://` style URLs. This section replaces the older
41repo.showDownloadCommand.
42
43* issue 499 Display the size of a patch (lines added/removed)
44+
45A 'diffstat' is shown for each file, summarizing the size of the
46change on that file in terms of number of lines added or deleted.
47
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070048=== Email Notifications
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070049* issue 452 Include a quick summary of the size of a change in email
50+
51After the file listing, a summary totaling the number of files
52changed, lines added, and lines removed is displayed. This may
53help reviewers to get a quick estimation on the time required for
54them to review the change.
55
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070056== Bug Fixes
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070057
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070058=== Web UI
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070059* issue 639 Fix keyboard shortcuts under Chrome/Safari
60+
61Keyboard shortcuts didn't work properly on modern WebKit browsers
62like Chrome and Safari. We kept trying to blame this on the browser,
63but it was Gerrit Code Review at fault. The UI was using the wrong
64listener type to receive keyboard events in comment editors. Fixed.
65
66* Make 'u' go up to the last change listing
67+
68Previously the 'u' key on a change page was hardcoded to take
69the user to their own dashboard. However, if they arrived at the
70change through a query such as `is:starred status:open`, this was
71quite annoying, as the query had to be started over again to move
72to the next matching change. Now the 'u' key goes back to the
73query results.
74
75* issue 671 Honor user's syntax coloring preference in unified view
76+
77The user's syntax coloring preference was always ignored in the
78unified view, even though the side-by-side view honored it. Fixed.
79
80* issue 651 Display stars in dependency tables
81+
82The 'Depends On' and 'Needed By' tables on a change page did not
83show the current user's star settings, even though the star icon
84is present and will toggle the user's starred flag for that change.
85Fixed.
86
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -070087=== Access Control
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -070088* issue 672 Fix branch owner adding exclusive ACL
89+
90Branch owners could not add exclusive ACLs within their branch
91namespace. This was caused by the server trying to match the leading
92`-` entered by the branch administrator against patterns that did
93not contain `-`, and therefore always failed. Fixed by removing
94the magical `-` from the proposed new specification before testing
95the access rights.
96
97* '@' in ref specs shouldn't be magical.
98+
99The dk.brics.automaton package that is used to handle regular
100expressions on branch access patterns supports '@' to mean
101"any string". We don't want that behavior. Fixed by disabling
102the optional features of dk.brics.automaton, thereby making '@'
103mean a literal '@' sign as expected.
104
105* issue 668 Fix inherited Read Access +2 not inheriting
106+
107Upload access (aka Read +2) did not inherit properly from the parent
108project (e.g. '\-- All Projects \--') if there was any branch level
109Read access control within the local project. This was a coding
110bug which failed to consider the project inheritance if any branch
111(not just the one being uploaded to) denied upload access.
112
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -0700113=== Misc.
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -0700114* issue 641 Don't pass null arguments to hooks
115+
116Some hooks crashed inside of the server during invocation because the
117`gerrit.canonicalWebUrl` variable wasn't configured, and the hook
118was started out of an SSH or background thread context, so the URL
119couldn't be assumed from the current request. The bug was worked
120around by not passing the `\--change-url` flag in these cases.
121Administrators whose hooks always need the flag should configure
122`gerrit.canonicalWebUrl`.
123
124* issue 652 Fix NPE during merge failure on new branch
125+
126Submitting a change with a missing dependency to a new branch
127resulted in a NullPointerException in the server, because the server
128tried to create the branch anyway, even though there was no commit
129ready because one or more dependencies were missing. Fixed.
130
131* Fix NPE while matching `file:^` pattern on deleted files
132+
133Sending email notifications crashed with NullPointerException if the
134change contained a deleted file and one or more users had a project
135watch on that project using a `file:^` pattern in their filter.
136Fixed.
137
138* issue 658 Allow to use refspec shortcuts for push replication
139+
140A push refspec of `refs/heads/\*` in replication.config is now
141supported as a shorthand notation for `refs/heads/\*:refs/heads/\*`.
142
143* issue 676 Fix clearing of topic during replace
144+
145The topic was cleared if a replacement patch set was uploaded without
146the topic name. The topic is now left as-is during replacement
147if no new topic was supplied. If a new topic is supplied, it is
148changed to match the new topic given.
149
David Pursehouse4d7ac772013-06-25 17:14:30 +0900150* Allow ; and & to separate parameters in gitweb
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -0700151+
152gitweb.cgi accepts either ';' or '&' between parameters, but
153Gerrit Code Review was only accepting the ';' syntax. Fixed
154to support both.
155
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -0700156=== Documentation
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -0700157* Fixed example for gerrit create-account.
158* gerrit.sh: Correct /etc/default path in error message
159
Yuxuan 'fishy' Wang4f5ad9d2016-05-03 16:18:58 -0700160== Version
Shawn O. Pearcebaf6e3a2010-08-23 08:34:03 -0700161
1622765ff9e5f821100e9ca671f4d502b5c938457a5