falcon-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From venkat...@apache.org
Subject git commit: FALCON-702 JailedFileSystem does not work for relative paths. Contributed by Sowmya Ramesh
Date Wed, 10 Sep 2014 18:18:52 GMT
Repository: incubator-falcon
Updated Branches:
  refs/heads/master 4bdfac484 -> e82042def


FALCON-702 JailedFileSystem does not work for relative paths. Contributed by Sowmya Ramesh


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

Branch: refs/heads/master
Commit: e82042defc42c164fd279817c0013b0d530497f6
Parents: 4bdfac4
Author: Venkatesh Seetharam <venkatesh@apache.org>
Authored: Wed Sep 10 11:18:49 2014 -0700
Committer: Venkatesh Seetharam <venkatesh@apache.org>
Committed: Wed Sep 10 11:18:49 2014 -0700

----------------------------------------------------------------------
 CHANGES.txt                                                       | 3 +++
 .../src/main/java/org/apache/falcon/hadoop/JailedFileSystem.java  | 3 +++
 2 files changed, 6 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/e82042de/CHANGES.txt
----------------------------------------------------------------------
diff --git a/CHANGES.txt b/CHANGES.txt
index 483dee2..149f4e6 100755
--- a/CHANGES.txt
+++ b/CHANGES.txt
@@ -77,6 +77,9 @@ Trunk (Unreleased)
   OPTIMIZATIONS
 
   BUG FIXES
+   FALCON-702 JailedFileSystem does not work for relative paths
+   (Sowmya Ramesh via Venkatesh Seetharam)
+
    FALCON-677 Feed data and stats path defaults to /tmp/. (Suhas Vasu via Shwetha GS)
 
    FALCON-590 Update to ACLs added to process is not handled

http://git-wip-us.apache.org/repos/asf/incubator-falcon/blob/e82042de/hadoop-dependencies/src/main/java/org/apache/falcon/hadoop/JailedFileSystem.java
----------------------------------------------------------------------
diff --git a/hadoop-dependencies/src/main/java/org/apache/falcon/hadoop/JailedFileSystem.java
b/hadoop-dependencies/src/main/java/org/apache/falcon/hadoop/JailedFileSystem.java
index 107ad13..584929f 100644
--- a/hadoop-dependencies/src/main/java/org/apache/falcon/hadoop/JailedFileSystem.java
+++ b/hadoop-dependencies/src/main/java/org/apache/falcon/hadoop/JailedFileSystem.java
@@ -69,6 +69,9 @@ public class JailedFileSystem extends FileSystem {
     }
 
     private Path toLocalPath(Path f) {
+        if (!f.isAbsolute()) {
+            f = new Path(getWorkingDirectory(), f);
+        }
         return new Path(basePath + f.toUri().getPath());
     }
 


Mime
View raw message