cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject git commit: [FEDIZ-83] - wfreshparser incorrectly treats a freshness of 0 as negative
Date Wed, 21 May 2014 13:03:30 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/master e88aabbcd -> 2f433d1e7


[FEDIZ-83] - wfreshparser incorrectly treats a freshness of 0 as negative


Project: http://git-wip-us.apache.org/repos/asf/cxf-fediz/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf-fediz/commit/2f433d1e
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/2f433d1e
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/2f433d1e

Branch: refs/heads/master
Commit: 2f433d1e7da2e5ed153026df5ce8a9701b5268cf
Parents: e88aabb
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Wed May 21 14:03:09 2014 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Wed May 21 14:03:09 2014 +0100

----------------------------------------------------------------------
 .../org/apache/cxf/fediz/service/idp/beans/WfreshParser.java     | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/2f433d1e/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/WfreshParser.java
----------------------------------------------------------------------
diff --git a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/WfreshParser.java
b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/WfreshParser.java
index 0d68206..cc2ef2f 100644
--- a/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/WfreshParser.java
+++ b/services/idp/src/main/java/org/apache/cxf/fediz/service/idp/beans/WfreshParser.java
@@ -56,7 +56,9 @@ public class WfreshParser {
             LOG.info("wfresh value '" + wfresh + "' is invalid.");
             return false;
         }
-        if (ttl > 0) {
+        if (ttl == 0) {
+            return true;
+        } else if (ttl > 0) {
 
             Date createdDate = idpToken.getCreated();
             if (createdDate != null) {


Mime
View raw message