knox-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From su...@apache.org
Subject knox git commit: KNOX-626 Minor fix to namespace parsing
Date Tue, 08 Dec 2015 16:09:47 GMT
Repository: knox
Updated Branches:
  refs/heads/master 0a919c0b1 -> 3607f38fc


KNOX-626 Minor fix to namespace parsing


Project: http://git-wip-us.apache.org/repos/asf/knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/knox/commit/3607f38f
Tree: http://git-wip-us.apache.org/repos/asf/knox/tree/3607f38f
Diff: http://git-wip-us.apache.org/repos/asf/knox/diff/3607f38f

Branch: refs/heads/master
Commit: 3607f38fcf1b499579da7b11c1992484197d9a56
Parents: 0a919c0
Author: Sumit Gupta <sumit@apache.org>
Authored: Tue Dec 8 11:09:29 2015 -0500
Committer: Sumit Gupta <sumit@apache.org>
Committed: Tue Dec 8 11:09:44 2015 -0500

----------------------------------------------------------------------
 .../gateway/filter/rewrite/impl/html/HtmlFilterReaderBase.java    | 3 +--
 .../src/main/java/org/apache/hadoop/gateway/GatewayServer.java    | 2 --
 2 files changed, 1 insertion(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/knox/blob/3607f38f/gateway-provider-rewrite/src/main/java/org/apache/hadoop/gateway/filter/rewrite/impl/html/HtmlFilterReaderBase.java
----------------------------------------------------------------------
diff --git a/gateway-provider-rewrite/src/main/java/org/apache/hadoop/gateway/filter/rewrite/impl/html/HtmlFilterReaderBase.java
b/gateway-provider-rewrite/src/main/java/org/apache/hadoop/gateway/filter/rewrite/impl/html/HtmlFilterReaderBase.java
index f4f2e0a..ee34530 100644
--- a/gateway-provider-rewrite/src/main/java/org/apache/hadoop/gateway/filter/rewrite/impl/html/HtmlFilterReaderBase.java
+++ b/gateway-provider-rewrite/src/main/java/org/apache/hadoop/gateway/filter/rewrite/impl/html/HtmlFilterReaderBase.java
@@ -24,7 +24,6 @@ import net.htmlparser.jericho.Segment;
 import net.htmlparser.jericho.StartTag;
 import net.htmlparser.jericho.StreamedSource;
 import net.htmlparser.jericho.Tag;
-
 import org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteFilterContentDescriptor;
 import org.apache.hadoop.gateway.filter.rewrite.api.UrlRewriteFilterPathDescriptor;
 import org.apache.hadoop.gateway.filter.rewrite.i18n.UrlRewriteMessages;
@@ -294,7 +293,7 @@ public abstract class HtmlFilterReaderBase extends Reader implements UrlRewriteF
           if( name.toLowerCase().startsWith( "xmlns" ) ) {
             int colon = name.indexOf( ":", 5 );
             String prefix;
-            if( colon == 0 ) {
+            if( colon <= 0 ) {
               prefix = "";
             } else {
               prefix = name.substring( colon );

http://git-wip-us.apache.org/repos/asf/knox/blob/3607f38f/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
----------------------------------------------------------------------
diff --git a/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java b/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
index 9074a90..c191324 100644
--- a/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
+++ b/gateway-server/src/main/java/org/apache/hadoop/gateway/GatewayServer.java
@@ -34,7 +34,6 @@ import org.apache.hadoop.gateway.filter.CorrelationHandler;
 import org.apache.hadoop.gateway.i18n.messages.MessagesFactory;
 import org.apache.hadoop.gateway.i18n.resources.ResourcesFactory;
 import org.apache.hadoop.gateway.services.GatewayServices;
-import org.apache.hadoop.gateway.services.ServiceLifecycleException;
 import org.apache.hadoop.gateway.services.registry.ServiceRegistry;
 import org.apache.hadoop.gateway.services.security.SSLService;
 import org.apache.hadoop.gateway.services.topology.TopologyService;
@@ -67,7 +66,6 @@ import java.net.InetSocketAddress;
 import java.net.ServerSocket;
 import java.net.URI;
 import java.net.URISyntaxException;
-import java.net.UnknownHostException;
 import java.security.ProviderException;
 import java.util.HashMap;
 import java.util.Iterator;


Mime
View raw message