This is an automated email from the ASF dual-hosted git repository.

leonbao pushed a commit to branch 1.3.0-release
in repository https://gitbox.apache.org/repos/asf/incubator-dolphinscheduler.git

commit fe92bb9f0eed97f8c57160f4a17d6443f785a96c
Author: lgcareer <[email protected]>
AuthorDate: Wed Jun 17 12:04:34 2020 +0800

    fix download resource file that under the directory error (#3007)
    
    * add mybatis-3 notice in the top-level notice
    
    * fix download resource file that under the directory error
---
 .../java/org/apache/dolphinscheduler/api/service/ResourcesService.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
index 173856b..15b106f 100644
--- 
a/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
+++ 
b/dolphinscheduler-api/src/main/java/org/apache/dolphinscheduler/api/service/ResourcesService.java
@@ -1021,7 +1021,7 @@ public class ResourcesService extends BaseService {
 
         String tenantCode = tenant.getTenantCode();
 
-        String hdfsFileName = HadoopUtils.getHdfsFileName(resource.getType(), 
tenantCode, resource.getAlias());
+        String hdfsFileName = HadoopUtils.getHdfsFileName(resource.getType(), 
tenantCode, resource.getFullName());
 
         String localFileName = 
FileUtils.getDownloadFilename(resource.getAlias());
         logger.info("resource hdfs path is {} ", hdfsFileName);

Reply via email to