commit | 7059cbd8da17eb4c6864329ab9e1965a221a421f | [log] [tgz] |
---|---|---|
author | Jan Kundrát <jkt@flaska.net> | Fri Jan 20 13:09:51 2017 +0100 |
committer | Jan Kundrát <jkt@flaska.net> | Thu Jan 26 11:46:32 2017 +0000 |
tree | 44301bcbda68af6fc94da233ae9bbe3dcb21b860 | |
parent | 04c96a8ab9417ea2792371474d3684b752f7a42a [diff] |
Fix garbled text with Unicode display names obtained from HTTP headers This is evil -- the semantic of non-ASCII data in header fields got changed several times, and RFC 7230 from June 2014 says this [1]: Historically, HTTP has allowed field content with text in the ISO-8859-1 charset [ISO-8859-1], supporting other charsets only through use of [RFC2047] encoding. In practice, most HTTP header field values use only a subset of the US-ASCII charset [USASCII]. Newly defined header fields SHOULD limit their field values to US-ASCII octets. A recipient SHOULD treat other octets in field content (obs-text) as opaque data. ...which means that there's no universal standard for using Unicode characters in HTTP headers. In presence of this voidness, we can get creative and support arguably broken schemes. Our SSO solution (Shibboleth/SAML with eduid.cz) appears to work with UTF-8. UTF-8 is certainly no worse than ISO-8859-1, and I'm a supporter of a view which says that decoding ASCII as UTF-8 is reasonable approach in these not-so-well-defined cases. This at least prevents the mojibake of showing an ISO-8859-1 rendering of some UTF-8 octets. [1] https://tools.ietf.org/html/rfc7230#section-3.2.4 Change-Id: I8b674550e34b0c6fed4cc0af2f069aaeadbae6cc
Gerrit is a code review and project management tool for Git based projects.
Gerrit makes reviews easier by showing changes in a side-by-side display, and allowing inline comments to be added by any reviewer.
Gerrit simplifies Git based project maintainership by permitting any authorized user to submit changes to the master Git repository, rather than requiring all approved changes to be merged in by hand by the project maintainer.
For information about how to install and use Gerrit, refer to the documentation.
Our canonical Git repository is located on googlesource.com. There is a mirror of the repository on Github.
Please report bugs on the issue tracker.
Gerrit is the work of hundreds of contributors. We appreciate your help!
Please read the contribution guidelines.
Note that we do not accept Pull Requests via the Github mirror.
The IRC channel on freenode is #gerrit. An archive is available at: echelog.com.
The Developer Mailing list is repo-discuss on Google Groups.
Gerrit is provided under the Apache License 2.0.
Install Buck and run the following:
git clone --recursive https://gerrit.googlesource.com/gerrit cd gerrit && buck build release
The instruction how to configure GerritForge/BinTray repositories is here
On Debian/Ubuntu run:
apt-get update & apt-get install gerrit=<version>-<release>
NOTE: release is a counter that starts with 1 and indicates the number of packages that have been released with the same version of the software.
On CentOS/RedHat run:
yum clean all && yum install gerrit-<version>[-<release>]
NOTE: release is optional. Last released package of the version is installed if the release number is omitted.