<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>52404</bug_id>
          
          <creation_ts>2024-12-11 16:51:03 +0300</creation_ts>
          <short_desc>400 Bad Request: The CSRF token is missing</short_desc>
          <delta_ts>2024-12-11 16:52:37 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>pgadmin4</component>
          <version>unstable</version>
          <rep_platform>x86_64</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugzilla.altlinux.org/show_bug.cgi?id=52403</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P5</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Alexander Makeenkov">amakeenk</reporter>
          <assigned_to name="majioa@altlinux.org">majioa</assigned_to>
          <cc>majioa</cc>
    
    <cc>pav</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>255909</commentid>
    <comment_count>0</comment_count>
    <who name="Alexander Makeenkov">amakeenk</who>
    <bug_when>2024-12-11 16:51:03 +0300</bug_when>
    <thetext>Версия пакета: pgadmin4-8.3-alt2

Шаги воспроизведения: авторизоваться в web интерфейсе, затем проверить логи сервиса pgadmin4.

Получаемый результат: в момент входа в логах была ошибка:

pgadmin4[12774]: Traceback (most recent call last):
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask_wtf/csrf.py&quot;, line 261, in protect
pgadmin4[12774]:     validate_csrf(self._get_csrf_token())
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask_wtf/csrf.py&quot;, line 100, in validate_csrf
pgadmin4[12774]:     raise ValidationError(&quot;The CSRF token is missing.&quot;)
pgadmin4[12774]: wtforms.validators.ValidationError: The CSRF token is missing.
pgadmin4[12774]: During handling of the above exception, another exception occurred:
pgadmin4[12774]: Traceback (most recent call last):
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, line 878, in full_dispatch_request
pgadmin4[12774]:     rv = self.preprocess_request()
pgadmin4[12774]:          ^^^^^^^^^^^^^^^^^^^^^^^^^
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask/app.py&quot;, line 1253, in preprocess_request
pgadmin4[12774]:     rv = self.ensure_sync(before_func)()
pgadmin4[12774]:          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask_wtf/csrf.py&quot;, line 229, in csrf_protect
pgadmin4[12774]:     self.protect()
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask_wtf/csrf.py&quot;, line 264, in protect
pgadmin4[12774]:     self._error_response(e.args[0])
pgadmin4[12774]:   File &quot;/usr/lib/python3/site-packages/flask_wtf/csrf.py&quot;, line 307, in _error_response
pgadmin4[12774]:     raise CSRFError(reason)
pgadmin4[12774]: flask_wtf.csrf.CSRFError: 400 Bad Request: The CSRF token is missing.

Вход в интерфейс при этом выполняется успешно.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>