Skip to content

Commit b8e6d0b

Browse files
committed
由春长发起的BATCHCOMPUTE SDK自动发布, BUILD_ID=306, 版本号:5.3.1
发布日志: 1, Repair ststoken support.
1 parent d477e14 commit b8e6d0b

File tree

4 files changed

+16
-3
lines changed

4 files changed

+16
-3
lines changed

aliyun-java-sdk-batchcompute/ChangeLog.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
2018-02-24 Version: 5.3.1
2+
1, Repair ststoken support.
3+
14
2018-02-13 Version: 5.3.0
25
1, Fix SecurityToken supported, and upgrade version of aliyun-java-sdk-core to 3.5.1.
36

aliyun-java-sdk-batchcompute/Readme.md

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ Batchcompute SDK For Java
2020
<dependency>
2121
<groupId>com.aliyun</groupId>
2222
<artifactId>aliyun-java-sdk-batchcompute</artifactId>
23-
<version>5.3.0</version>
23+
<version>5.3.1</version>
2424
</dependency>
2525
```
2626

@@ -109,13 +109,17 @@ try {
109109

110110
### 5. release note
111111

112+
5.3.1
113+
```
114+
1. 修复SecurityToken支持。
115+
```
116+
112117
5.3.0
113118

114119
```
115120
1. 修复SecurityToken支持。升级依赖core版本到3.5.1.
116121
```
117122

118-
119123
5.2.0
120124
```
121125
1. 创建集群时增加ScheduleType支持。

aliyun-java-sdk-batchcompute/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<groupId>com.aliyun</groupId>
44
<artifactId>aliyun-java-sdk-batchcompute</artifactId>
55
<packaging>jar</packaging>
6-
<version>5.3.0</version>
6+
<version>5.3.1</version>
77
<name>aliyun-java-sdk-batchcompute</name>
88
<url>http://www.aliyun.com</url>
99
<description>Aliyun Open API SDK for Java

aliyun-java-sdk-batchcompute/src/main/java/com/aliyuncs/batchcompute/main/v20151111/BatchComputeClient.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@
4646
public class BatchComputeClient implements BatchCompute {
4747

4848
private IAcsClient client;
49+
private String accessKeyId;
4950

5051
private final static String PRODUCT_CODE = "BatchCompute";
5152

@@ -64,13 +65,15 @@ public BatchComputeClient(String regionId, String accessKeyId, String accessKeyS
6465
if(regionMap.get(regionId)==null){
6566
BatchComputeClient.addEndpoint(regionId, "batchcompute."+regionId+".aliyuncs.com");
6667
}
68+
this.accessKeyId = accessKeyId;
6769
this.client = new DefaultAcsClient(DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret));
6870
}
6971

7072
public BatchComputeClient(String regionId, String accessKeyId, String accessKeySecret, String stsToken) {
7173
if(regionMap.get(regionId)==null){
7274
BatchComputeClient.addEndpoint(regionId, "batchcompute."+regionId+".aliyuncs.com");
7375
}
76+
this.accessKeyId = accessKeyId;
7477
this.client = new DefaultAcsClient(DefaultProfile.getProfile(regionId, accessKeyId, accessKeySecret, stsToken));
7578
}
7679

@@ -129,6 +132,9 @@ public static void addRequestHeader(String key, String value) {
129132

130133
//hack一下,处理 ErrorCode 的兼容
131134
private <T extends AcsResponse> T getAcsResponse(AcsRequest<T> request) throws ClientException {
135+
136+
request.putHeaderParameter("x-acs-access-key-id", this.accessKeyId);
137+
132138
if (verbose) {
133139
Map<String, String> reqHeaders = request.getHeaders();
134140

0 commit comments

Comments
 (0)