Browse Source

REPORT-110235 fix: 漏提交代码

release/11.0
Afly 1 year ago
parent
commit
347f02c22b
  1. 2
      plugin.xml
  2. 5
      src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java

2
plugin.xml

@ -5,7 +5,7 @@
<main-package>com.fanruan.fs</main-package>
<active>yes</active>
<hidden>no</hidden>
<version>1.4.1</version>
<version>1.4.2</version>
<env-version>11.0~11.0</env-version>
<jartime>2023-03-14</jartime>
<vendor>richie</vendor>

5
src/main/java/com/fanruan/fs/s3/repository/core/S3ResourceRepository.java

@ -57,6 +57,8 @@ public class S3ResourceRepository extends BaseResourceRepository {
public static final String HTTP = "http:";
private final boolean preserveMetadata;
private final AmazonS3 s3;
private final String bucket;
@ -83,6 +85,7 @@ public class S3ResourceRepository extends BaseResourceRepository {
amazonS3ClientBuilder = amazonS3ClientBuilder.withClientConfiguration(clientConfiguration);
this.s3 = amazonS3ClientBuilder.build();
this.bucket = config.getBucket();
this.preserveMetadata = config.isPreserveMetadata();
}
@Override
@ -271,7 +274,7 @@ public class S3ResourceRepository extends BaseResourceRepository {
try {
s3.putObject(req);
} catch (Exception e) {
LogKit.error("[S3] Failed to create parent path {}", path);
LogKit.error("[S3] Failed to create path {}", path);
return false;
}
return true;

Loading…
Cancel
Save