Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -205,7 +205,8 @@ object StorageUtils extends Logging {
*/
def getFsPath(path: String): FsPath = {
if (
path.startsWith(FILE_SCHEMA) || path.startsWith(HDFS_SCHEMA) || path.startsWith(BLOB_SCHEMA)
path.startsWith(FILE_SCHEMA) || path
.startsWith(HDFS_SCHEMA) || path.startsWith(BLOB_SCHEMA) || path.startsWith(S3_SCHEMA)
) new FsPath(path)
else {
new FsPath(FILE_SCHEMA + path)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,10 @@ class PathValidator extends Logging {
var userHdfsRootPath: String =
WorkspaceUtil.suffixTuning(HDFS_USER_ROOT_PATH_PREFIX.getValue) +
username + HDFS_USER_ROOT_PATH_SUFFIX.getValue
if (!(path.contains(StorageUtils.FILE_SCHEMA)) && !(path.contains(StorageUtils.HDFS_SCHEMA))) {
if (
!(path.contains(StorageUtils.FILE_SCHEMA)) && !(path
.contains(StorageUtils.HDFS_SCHEMA)) && !(path.contains(StorageUtils.S3_SCHEMA))
) {
throw new WorkSpaceException(80025, "the path should contain schema")
}
userHdfsRootPath = StringUtils.trimTrailingCharacter(userHdfsRootPath, File.separatorChar)
Expand Down
Loading