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:07:59 GMT
Repository: cxf-fediz
Updated Branches:
  refs/heads/1.1.x-fixes 6b8a72adc -> 5d3b28669


[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/5d3b2866
Tree: http://git-wip-us.apache.org/repos/asf/cxf-fediz/tree/5d3b2866
Diff: http://git-wip-us.apache.org/repos/asf/cxf-fediz/diff/5d3b2866

Branch: refs/heads/1.1.x-fixes
Commit: 5d3b28669e80b77740794c554115d790093e3fc3
Parents: 6b8a72a
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:04:08 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/5d3b2866/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