Attila Magyar created KNOX-3007: ----------------------------------- Summary: Make http client cookie spec parameter configurable Key: KNOX-3007 URL: https://issues.apache.org/jira/browse/KNOX-3007 Project: Apache Knox Issue Type: Improvement Reporter: Attila Magyar Assignee: 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)