gaoyan1998 opened a new pull request, #17176:
URL: https://github.com/apache/dolphinscheduler/pull/17176

   
   
   
   ```
   
       private CosStorageProperties getCosStorageProperties() {
          // Here we get the configuration based on the 
TENCENT_CLOUD_COS_PROPERTY_PREFIX prefix, but the RESOURCE_UPLOAD_PATH below is 
not this prefix, which causes the basic path configuration to fail to take 
effect, and it is always /dolphinscheduler
           Map<String, String> cosPropertiesMap =
                   
PropertyUtils.getByPrefix(CosStorageConstants.TENCENT_CLOUD_COS_PROPERTY_PREFIX);
   
           return CosStorageProperties.builder()
                   
.region(cosPropertiesMap.get(CosStorageConstants.TENCENT_CLOUD_COS_REGION))
                   
.accessKeyId(cosPropertiesMap.get(CosStorageConstants.TENCENT_CLOUD_ACCESS_KEY_ID))
                   
.accessKeySecret(cosPropertiesMap.get(CosStorageConstants.TENCENT_CLOUD_ACCESS_KEY_SECRET))
                   
.bucketName(cosPropertiesMap.get(CosStorageConstants.TENCENT_CLOUD_COS_BUCKET_NAME))
                   .resourceUploadPath(
                           
cosPropertiesMap.getOrDefault(StorageConstants.RESOURCE_UPLOAD_PATH,
                                   
CosStorageConstants.DEFAULT_COS_RESOURCE_UPLOAD_PATH))
                   .build();
       }
   ```


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to