This is an automated email from the ASF dual-hosted git repository.
peacewong pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/linkis.git
The following commit(s) were added to refs/heads/master by this push:
new 4b51070ee [issue-4725]update schema check (#4726)
4b51070ee is described below
commit 4b51070ee5075f1c5ac0c7b4015131964c988df1
Author: aiceflower <[email protected]>
AuthorDate: Sat Jul 1 22:31:31 2023 +0800
[issue-4725]update schema check (#4726)
* update schema check
* update schema check
* update schema check
---
.../org/apache/linkis/filesystem/validator/PathValidator.scala | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git
a/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-server/src/main/scala/org/apache/linkis/filesystem/validator/PathValidator.scala
b/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-server/src/main/scala/org/apache/linkis/filesystem/validator/PathValidator.scala
index 6bdc48620..b2d5db4fe 100644
---
a/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-server/src/main/scala/org/apache/linkis/filesystem/validator/PathValidator.scala
+++
b/linkis-public-enhancements/linkis-script-dev/linkis-storage-script-dev-server/src/main/scala/org/apache/linkis/filesystem/validator/PathValidator.scala
@@ -85,9 +85,14 @@ class PathValidator extends Logging {
}
def checkPath(path: String, username: String): Unit = {
- if (path.contains(StorageUtils.HDFS_SCHEMA)) {
+ // unchecked hdfs,oss,s3
+ if (
+ (path.contains(StorageUtils.HDFS_SCHEMA)) || (path
+ .contains(StorageUtils.OSS_SCHEMA)) ||
(path.contains(StorageUtils.S3_SCHEMA))
+ ) {
return
}
+
// 校验path的逻辑
val userLocalRootPath: String =
WorkspaceUtil.suffixTuning(LOCAL_USER_ROOT_PATH.getValue) +
username
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]