You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@ofbiz.apache.org by "Attila Magyar (Jira)" <ji...@apache.org> on 2024/02/19 09:06:00 UTC
[jira] [Created] (OFBIZ-12906) Make http client cookie spec configurable
Attila Magyar created OFBIZ-12906:
-------------------------------------
Summary: Make http client cookie spec configurable
Key: OFBIZ-12906
URL: https://issues.apache.org/jira/browse/OFBIZ-12906
Project: OFBiz
Issue Type: Bug
Reporter: Attila Magyar
The apache http client rejects cookies if the expiration date doesn't have the expected format (EEE, dd-MMM-yy HH:mm:ss z).
{code}
2023-11-20 17:58:51,189 XXX WARN protocol.ResponseProcessCookies (ResponseProcessCookies.java:processCookies(130)) - Invalid cookie header: "Set-Cookie: sessionid=XXX; expires=Mon, 20 Nov 2023 23:03:51 GMT; HttpOnly; Max-Age=300; Path=/; SameSite=Lax; Secure". Invalid 'expires' attribute: Mon, 20 Nov 2023 23:03:51 GMT
{code}
This can be reconfigured by setting different cookiespec types:
https://hc.apache.org/httpcomponents-client-4.5.x/current/httpclient/apidocs/org/apache/http/client/config/CookieSpecs.html
--
This message was sent by Atlassian Jira
(v8.20.10#820010)