• 
      

    Fix a crash when localizing an authentication error for GitLab.

    Review Request #12678 — Created Oct. 10, 2022 and submitted — Latest diff uploaded

    Information

    Review Board
    release-5.0.x

    Reviewers

    When attempting to provide an error message for failed authentication for
    HTTP HEAD requests, ugettext() was used to localize the string. The
    module had been updated to import gettext instead of ugettext, causing
    this to crash.

    This change updates the call to use gettext() instead.

    Added a unit test, which I verified failed before this fix and passed
    after.

    Commits

    Files