Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 29 Jul 2023 12:16:16 +0000
From:      bugzilla-noreply@freebsd.org
To:        ports-bugs@FreeBSD.org
Subject:   [Bug 272794] finance/odoo: Breakage caused by Werkzeug 2.3.x
Message-ID:  <bug-272794-7788@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D272794

            Bug ID: 272794
           Summary: finance/odoo: Breakage caused by Werkzeug 2.3.x
           Product: Ports & Packages
           Version: Latest
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: Individual Port(s)
          Assignee: acm@FreeBSD.org
          Reporter: yzrh@noema.org
             Flags: maintainer-feedback?(acm@FreeBSD.org)
          Assignee: acm@FreeBSD.org

Created attachment 243686
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D243686&action=
=3Dedit
Fix FutureResponse

Werkzeug 2.3.x has been in quarterly for quite some time now.
Installing odoo from quarterly works, but when visited with a web
browser, 500 is always returned.

ERROR odoo odoo.http: Exception during request handling.
Traceback (most recent call last):
  File ".../odoo/http.py", line 1993, in __call__
    response =3D request._serve_db()
  File ".../odoo/http.py", line 1578, in _serve_db
    return service_model.retrying(self._serve_ir_http, self.env)
  File ".../odoo/service/model.py", line 134, in retrying
    result =3D func()
  File ".../odoo/http.py", line 1608, in _serve_ir_http
    ir_http._post_dispatch(response)
  File ".../odoo/addons/base/models/ir_http.py", line 147, in _post_dispatch
    request.dispatcher.post_dispatch(response)
  File ".../odoo/http.py", line 1676, in post_dispatch
    self.request._save_session()
  File ".../odoo/http.py", line 1506, in _save_session
    self.future_response.set_cookie('session_id', sess.sid,
max_age=3DSESSION_LIFETIME, httponly=3DTrue)
  File ".../odoo/http.py", line 1124, in set_cookie
    werkzeug.Response.set_cookie(self, key, value=3Dvalue, max_age=3Dmax_ag=
e,
expires=3Dexpires, path=3Dpath, domain=3Ddomain, secure=3Dsecure, httponly=
=3Dhttponly,
samesite=3Dsamesite)
  File ".../werkzeug/sansio/response.py", line 258, in set_cookie
    charset =3D self._charset if self._charset !=3D "utf-8" else None
AttributeError: 'FutureResponse' object has no attribute '_charset'

The fix is trivial.

--=20
You are receiving this mail because:
You are the assignee for the bug.=



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-272794-7788>