You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@systemml.apache.org by mb...@apache.org on 2017/06/05 15:56:49 UTC

incubator-systemml git commit: [HOTFIX][SYSTEMML-1664] Fix scala dl-utils access to removed internals

Repository: incubator-systemml
Updated Branches:
  refs/heads/master 557aae0ff -> 7c2494813


[HOTFIX][SYSTEMML-1664] Fix scala dl-utils access to removed internals

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

Branch: refs/heads/master
Commit: 7c24948130c552f06fb34e3614945a2b60ebde1f
Parents: 557aae0
Author: Matthias Boehm <mb...@gmail.com>
Authored: Mon Jun 5 08:56:32 2017 -0700
Committer: Matthias Boehm <mb...@gmail.com>
Committed: Mon Jun 5 08:56:32 2017 -0700

----------------------------------------------------------------------
 src/main/scala/org/apache/sysml/api/dl/Utils.scala | 4 ----
 1 file changed, 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-systemml/blob/7c249481/src/main/scala/org/apache/sysml/api/dl/Utils.scala
----------------------------------------------------------------------
diff --git a/src/main/scala/org/apache/sysml/api/dl/Utils.scala b/src/main/scala/org/apache/sysml/api/dl/Utils.scala
index 5c7222c..d6af22c 100644
--- a/src/main/scala/org/apache/sysml/api/dl/Utils.scala
+++ b/src/main/scala/org/apache/sysml/api/dl/Utils.scala
@@ -237,14 +237,10 @@ object Utils {
 		if(filePath == null)
 			throw new LanguageException("file path was not specified!");
 		if(filePath.startsWith("hdfs:")  || filePath.startsWith("gpfs:")) { 
-			if( !LocalFileUtils.validateExternalFilename(filePath, true) )
-				throw new LanguageException("Invalid (non-trustworthy) hdfs filename.");
 			val fs = FileSystem.get(ConfigurationManager.getCachedJobConf());
 			return new InputStreamReader(fs.open(new Path(filePath)));
 		}
 		else { 
-			if( !LocalFileUtils.validateExternalFilename(filePath, false) )
-				throw new LanguageException("Invalid (non-trustworthy) local filename.");
 			return new InputStreamReader(new FileInputStream(new File(filePath)), "ASCII");
 		}
 	}