falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From shweth...@apache.org
Subject git commit: FALCON-426 Prism unable to connect to falcon server if falcon endpoint URL ends with '/' character. Contributed by Satish Mittal
Date Fri, 02 May 2014 10:56:17 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master f17ed681b -> 40a24c434


FALCON-426 Prism unable to connect to falcon server if falcon endpoint URL ends with '/' character.
Contributed by Satish Mittal


Project: http://git-wip-us.apache.org/repos/asf/incubator-falcon/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-falcon/commit/40a24c43
Tree: http://git-wip-us.apache.org/repos/asf/incubator-falcon/tree/40a24c43
Diff: http://git-wip-us.apache.org/repos/asf/incubator-falcon/diff/40a24c43

Branch: refs/heads/master
Commit: 40a24c43457b723ac38c93e60cc239a4b16cd7df
Parents: f17ed68
Author: Shwetha GS <shwethags@gmail.com>
Authored: Fri May 2 16:26:08 2014 +0530
Committer: Shwetha GS <shwethags@gmail.com>
Committed: Fri May 2 16:26:08 2014 +0530

----------------------------------------------------------------------
 CHANGES.txt                                                       | 3 +++
 .../main/java/org/apache/falcon/resource/channel/HTTPChannel.java | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/40a24c43/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 9c403ad..dbb7455 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -122,6 +122,9 @@ Trunk (Unreleased)
     FALCON-123 Improve build speeds in falcon. (Srikanth Sundarrajan via Shwetha GS)
 
   BUG FIXES
+    FALCON-426 Prism unable to connect to falcon server if falcon endpoint URL ends with

+    '/' character. (Satish Mittal via Shwetha GS)
+
     FALCON-401 replicate hcat table to two targets can fail with export dir
     exists on source (Sowmya Ramesh via Venkatesh Seetharam)
 

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/40a24c43/prism/src/main/java/org/apache/falcon/resource/channel/HTTPChannel.java
----------------------------------------------------------------------
diff --git a/prism/src/main/java/org/apache/falcon/resource/channel/HTTPChannel.java b/prism/src/main/java/org/apache/falcon/resource/channel/HTTPChannel.java
index db46d94..f2b8874 100644
--- a/prism/src/main/java/org/apache/falcon/resource/channel/HTTPChannel.java
+++ b/prism/src/main/java/org/apache/falcon/resource/channel/HTTPChannel.java
@@ -88,7 +88,7 @@ public class HTTPChannel extends AbstractChannel {
             String user = CurrentUser.getUser();
 
             ClientResponse response = getClient()
-                    .resource(UriBuilder.fromUri(url).build())
+                    .resource(UriBuilder.fromUri(url).build().normalize())
                     .queryParam("user.name", user)
                     .accept(accept).type(mimeType)
                     .method(httpMethod, ClientResponse.class,


Mime
View raw message