4038: Getting ascii-codec-cant-decode-byte- ... on diff viewer and also on GitLab repository config


What version are you running?


What's the URL of the page containing the problem?

intratnet site - On Show difference and On Git repository edit page

What steps will reproduce the problem?

  1. Upgrade from 2.2 to 2.5
  2. Go to old reviews - click on View Diff
  3. Got Admin - config repositories and then edit a GitLab repository

What is the expected output? What do you see instead?

Difference between master and new change should be displayed. Seeting ascii-codec-cant-decode-byte- .. error

What operating system are you using? What browser?

Using Ubuntu and Chrome

Please provide any additional information below.

#1 mcs

It looks like we have the same problem when we upgraded our host from Ubuntu 10.10 to 16.04. It looks like there is an encoding/decoding issue when base64 encoding the key string and it's only seend when running using Python 2.7.
We are kind of blocked from upgrading our host until we've found a fix for this bug.

The error message we get is this
" 'ascii' codec can't decode byte 0xaa in position 0: ordinal not in range(128) "

our GITLAB config
Hosting Service: GitLab
Repository type: Git
Repository Plan Group