Loading dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java +1 −1 Original line number Diff line number Diff line Loading @@ -210,7 +210,6 @@ public class ResourcesService extends BaseService { } Resource resource = resourcesMapper.selectById(resourceId); String originResourceName = resource.getAlias(); if (resource == null) { putMsg(result, Status.RESOURCE_NOT_EXIST); return result; Loading @@ -236,6 +235,7 @@ public class ResourcesService extends BaseService { } //get the file suffix String originResourceName = resource.getAlias(); String suffix = originResourceName.substring(originResourceName.lastIndexOf(".")); //if the name without suffix then add it ,else use the origin name Loading Loading
dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java +1 −1 Original line number Diff line number Diff line Loading @@ -210,7 +210,6 @@ public class ResourcesService extends BaseService { } Resource resource = resourcesMapper.selectById(resourceId); String originResourceName = resource.getAlias(); if (resource == null) { putMsg(result, Status.RESOURCE_NOT_EXIST); return result; Loading @@ -236,6 +235,7 @@ public class ResourcesService extends BaseService { } //get the file suffix String originResourceName = resource.getAlias(); String suffix = originResourceName.substring(originResourceName.lastIndexOf(".")); //if the name without suffix then add it ,else use the origin name Loading