Uploaded image for project: 'Project Quay'
  1. Project Quay
  2. PROJQUAY-917

Incorrect encoding of CSRF token in UI

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • Major
    • 2020.08.20, quay-v3.4.0
    • quay-v3.4.0
    • quay
    • None
    • 0

    Description

      After changing to Python 3, it appears that we are not properly converting our CSRF from bytes to a string. The following error occurs on any form submissions in the UI, such as attempting to create a User or create an Organization.

      gunicorn-web stdout | 2020-07-30 15:58:00,731 [291] [ERROR] [endpoints.csrf] CSRF Failure. Session token (_csrf_token) was b'5NM4vJMeQaTPeXRAdXDognhzIvh/v5rISZCwqVzjM9G6KCXh5qwQF0NchGm8YlKb' and request token (_csrf_token) was b'5NM4vJMeQaTPeXRAdXDognhzIvh/v5rISZCwqVzjM9G6KCXh5qwQF0NchGm8YlKb'

      Attachments

        Activity

          People

            kmullins@redhat.com Kurtis Mullins (Inactive)
            kmullins@redhat.com Kurtis Mullins (Inactive)
            Dongbo Yan Dongbo Yan
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: