cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jbernha...@apache.org
Subject [2/4] cxf-fediz git commit: [FEDIZ-118] Do allow empty servlet context name for fediz context - else fediz-spring fails when the protected application is hosted in the root context.
Date Tue, 05 May 2015 14:26:44 GMT
[FEDIZ-118] Do allow empty servlet context name for fediz context - else fediz-spring fails
when the protected application is hosted in the root context.

This is due to  servletContext.getContextPath() returning the empty string in this case, not
a forward slash.


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

Branch: refs/heads/master
Commit: 98dfb010418cf6b0aa9ae223dfcfe800add55c65
Parents: e9dd161
Author: Andreas Vallen <andreas.vallen@gmail.com>
Authored: Sun May 3 16:21:57 2015 +0200
Committer: Jan Bernhardt <jbernhardt@talend.com>
Committed: Tue May 5 15:02:58 2015 +0200

----------------------------------------------------------------------
 .../java/org/apache/cxf/fediz/core/config/FedizConfigurator.java   | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf-fediz/blob/98dfb010/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizConfigurator.java
----------------------------------------------------------------------
diff --git a/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizConfigurator.java
b/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizConfigurator.java
index f8b0844..7d3666a 100644
--- a/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizConfigurator.java
+++ b/plugins/core/src/main/java/org/apache/cxf/fediz/core/config/FedizConfigurator.java
@@ -80,7 +80,7 @@ public class FedizConfigurator {
     }
     
     public FedizContext getFedizContext(String contextName) {
-        if (contextName == null || contextName.isEmpty()) {
+        if (contextName == null) {
             throw new IllegalArgumentException("Invalid Context Name '" + contextName + "'");
         }
         if (rootConfig == null) {


Mime
View raw message