This is an automated email from the ASF dual-hosted git repository.
coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git
The following commit(s) were added to refs/heads/master by this push:
new 84b4638 CXF-7500 - AbstractSSOSpHandler throws
IllegalArgumentException when creating a cookie
84b4638 is described below
commit 84b46383b287a088fc373f089970832d68a22f8b
Author: Colm O hEigeartaigh <[email protected]>
AuthorDate: Mon Sep 11 17:24:49 2017 +0100
CXF-7500 - AbstractSSOSpHandler throws IllegalArgumentException when
creating a cookie
---
.../org/apache/cxf/rs/security/saml/sso/AbstractSSOSpHandler.java | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git
a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractSSOSpHandler.java
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractSSOSpHandler.java
index 6f07a0e..ab53076 100644
---
a/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractSSOSpHandler.java
+++
b/rt/rs/security/sso/saml/src/main/java/org/apache/cxf/rs/security/saml/sso/AbstractSSOSpHandler.java
@@ -19,6 +19,7 @@
package org.apache.cxf.rs.security.saml.sso;
import java.io.IOException;
+import java.sql.Date;
import java.time.Instant;
import java.time.ZoneOffset;
import java.util.Properties;
@@ -127,7 +128,8 @@ public class AbstractSSOSpHandler {
// supported better than 'max-age' property by different browsers
// (Firefox, IE, etc)
Instant expires = Instant.ofEpochMilli(System.currentTimeMillis() +
stateTimeToLive);
- String cookieExpires =
HttpUtils.getHttpDateFormat().format(expires.atZone(ZoneOffset.UTC));
+ String cookieExpires =
+
HttpUtils.getHttpDateFormat().format(Date.from(expires.atZone(ZoneOffset.UTC).toInstant()));
contextCookie += ";Expires=" + cookieExpires;
//TODO: Consider adding an 'HttpOnly' attribute
--
To stop receiving notification emails like this one, please contact
['"[email protected]" <[email protected]>'].