<feed xmlns='http://www.w3.org/2005/Atom'>
<title>delta/gitlab/gitlab-ce.git/spec/controllers/blob_controller_spec.rb, branch patch-6</title>
<subtitle>gitlab.com: gitlab-org/gitlab-ce.git
</subtitle>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/'/>
<entry>
<title>Fix Error 500 when viewing a blob with binary characters after the 1024-byte mark</title>
<updated>2016-06-12T14:36:25+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2016-05-24T05:59:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=0fdfd2dd6e01648f4daf6853f11a3ffc9a678a55'/>
<id>0fdfd2dd6e01648f4daf6853f11a3ffc9a678a55</id>
<content type='text'>
Here was the problem:

1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file.
2. If the blob is text, GitLab will attempt to display it.
3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters.
4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT.

To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires
an update to gitlab_git: gitlab-org/gitlab_git!86

Closes #13826
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Here was the problem:

1. When determining whether a given blob is viewable text, gitlab_git reads the first 1024 bytes and checks with Linguist whether it is a text or binary file.
2. If the blob is text, GitLab will attempt to display it.
3. However, if the text has binary characters after the first 1024 bytes, then GitLab will attempt to load the entire contents, but the encoding will be ASCII-8BIT since there are binary characters.
4. The Error 500 results when GitLab attempts to display a mix UTF-8 and ASCII-8BIT.

To fix this, we load as much data as we are willing to display so that the detection will work properly. Requires
an update to gitlab_git: gitlab-org/gitlab_git!86

Closes #13826
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix Style/AlignHash cop violations</title>
<updated>2015-06-23T05:24:39+00:00</updated>
<author>
<name>Stan Hu</name>
<email>stanhu@gmail.com</email>
</author>
<published>2015-06-23T05:24:39+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=359ed48638a7442f36b271f283d6a7b8d31225c4'/>
<id>359ed48638a7442f36b271f283d6a7b8d31225c4</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Upgrade to Rails 4.1.9</title>
<updated>2015-02-14T18:09:23+00:00</updated>
<author>
<name>Vinnie Okada</name>
<email>vokada@mrvinn.com</email>
</author>
<published>2015-01-24T18:02:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=76aad9b76ed756ca9ba2cbcdb399c815e542b3ae'/>
<id>76aad9b76ed756ca9ba2cbcdb399c815e542b3ae</id>
<content type='text'>
Make the following changes to deal with new behavior in Rails 4.1.2:

* Use nested resources to avoid slashes in arguments to path helpers.
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Make the following changes to deal with new behavior in Rails 4.1.2:

* Use nested resources to avoid slashes in arguments to path helpers.
</pre>
</div>
</content>
</entry>
<entry>
<title>Even more hound fixes</title>
<updated>2015-02-12T20:00:55+00:00</updated>
<author>
<name>Jeroen van Baarsen</name>
<email>jeroenvanbaarsen@gmail.com</email>
</author>
<published>2015-02-12T18:53:23+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=026e988544f282c87afec9a85ff21a23877f6226'/>
<id>026e988544f282c87afec9a85ff21a23877f6226</id>
<content type='text'>
Signed-off-by: Jeroen van Baarsen &lt;jeroenvanbaarsen@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jeroen van Baarsen &lt;jeroenvanbaarsen@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fixed hound warnings</title>
<updated>2015-02-12T18:32:58+00:00</updated>
<author>
<name>Jeroen van Baarsen</name>
<email>jeroenvanbaarsen@gmail.com</email>
</author>
<published>2015-02-12T18:32:58+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=940a402b6e015cde1b3513808cb9ac7f0a3bec8c'/>
<id>940a402b6e015cde1b3513808cb9ac7f0a3bec8c</id>
<content type='text'>
Signed-off-by: Jeroen van Baarsen &lt;jeroenvanbaarsen@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jeroen van Baarsen &lt;jeroenvanbaarsen@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Updated rspec to rspec 3.x syntax</title>
<updated>2015-02-12T18:17:35+00:00</updated>
<author>
<name>Jeroen van Baarsen</name>
<email>jeroenvanbaarsen@gmail.com</email>
</author>
<published>2015-02-12T18:17:35+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=0c4a70a306b871899bf87ce4673918abfee4d95f'/>
<id>0c4a70a306b871899bf87ce4673918abfee4d95f</id>
<content type='text'>
Signed-off-by: Jeroen van Baarsen &lt;jeroenvanbaarsen@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Jeroen van Baarsen &lt;jeroenvanbaarsen@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Fix tests</title>
<updated>2014-08-07T17:46:17+00:00</updated>
<author>
<name>Dmitriy Zaporozhets</name>
<email>dmitriy.zaporozhets@gmail.com</email>
</author>
<published>2014-08-07T17:46:17+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=a0755d2f051c5a9cd31721333adee22cb40b1008'/>
<id>a0755d2f051c5a9cd31721333adee22cb40b1008</id>
<content type='text'>
Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Add tests for redirects.</title>
<updated>2014-07-08T18:25:25+00:00</updated>
<author>
<name>Marin Jankovski</name>
<email>marin@gitlab.com</email>
</author>
<published>2014-07-08T18:25:25+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=e87f2380779871a64742acdd9dd0358aac7eafce'/>
<id>e87f2380779871a64742acdd9dd0358aac7eafce</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
<entry>
<title>Make changes to tests</title>
<updated>2014-01-22T19:03:52+00:00</updated>
<author>
<name>Dmitriy Zaporozhets</name>
<email>dmitriy.zaporozhets@gmail.com</email>
</author>
<published>2014-01-22T19:03:52+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=c227aa44f9c54dd88f2ac8de7a3463a23f516dff'/>
<id>c227aa44f9c54dd88f2ac8de7a3463a23f516dff</id>
<content type='text'>
* project_with_code -&gt; project
* project -&gt; ermpty_project

Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
* project_with_code -&gt; project
* project -&gt; ermpty_project

Signed-off-by: Dmitriy Zaporozhets &lt;dmitriy.zaporozhets@gmail.com&gt;
</pre>
</div>
</content>
</entry>
<entry>
<title>Drop support of root namespace in routing</title>
<updated>2013-09-12T22:00:24+00:00</updated>
<author>
<name>Hiroyuki Sato</name>
<email>sathiroyuki@gmail.com</email>
</author>
<published>2013-09-05T11:46:34+00:00</published>
<link rel='alternate' type='text/html' href='http://git.baserock.org/cgit/delta/gitlab/gitlab-ce.git/commit/?id=df9cbbc924466d2343f399adde0cea7cf2553fdb'/>
<id>df9cbbc924466d2343f399adde0cea7cf2553fdb</id>
<content type='text'>
</content>
<content type='xhtml'>
<div xmlns='http://www.w3.org/1999/xhtml'>
<pre>
</pre>
</div>
</content>
</entry>
</feed>
