czcorpus / kontext

An advanced, extensible web front-end for the Manatee-open corpus search engine
GNU General Public License v2.0
60 stars 22 forks source link

Cookie-related deprecation warnings from Sanic #6126

Closed tomachalek closed 4 months ago

tomachalek commented 6 months ago

:one: DeprecationWarning: [DEPRECATION v24.3] You are accessing cookie key 'kontext_jwt', which is currently , which is currently in compat mode returning a single cookie value. Starting in v24.3 accessing a cookie value like this will return a list of values. To avoid this behavior and continue accessing a single value, please upgrade from request.cookies['kontext_jwt'] to request.cookies.get('kontext_jwt'). See more details: https://sanic.dev/en/guide/release-notes/v23.3.html#request-cookies

2️⃣ Setting cookie values using the dict pattern has been deprecated. You should instead use the cookies.add_cookie method. To learn more, please see https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies

3️⃣ Accessing cookies from the CookieJar by dict key is deprecated. You should instead use the cookies.get_cookie method. To learn more, please see: https://sanic.dev/en/guide/release-notes/v23.3.html#response-cookies

4️⃣ Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties cookie.httponly=...

5️⃣ Setting values on a Cookie object as a dict has been deprecated. This feature will be removed in v24.3. You should instead set values on cookies as object properties cookie.secure=...

tomachalek commented 4 months ago

Fixed with merge 6056d163c2ccf668c13