Skip to content

Commit

Permalink
Merge pull request #391 from sxci/v7.2.18
Browse files Browse the repository at this point in the history
v7.2.18
  • Loading branch information
sxci authored Dec 17, 2018
2 parents 737d106 + cb4414e commit 599e741
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 25 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
# Changelog

## 7.2.18 (2018-12-17)
## 修正
* 分片上传重试添加 crc32 校验
* pili stream 管理,参数 json 格式

## 7.2.15 (2018-09-10)
## 移除内部鉴权打印

Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/qiniu/common/Constants.java
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ public final class Constants {
/**
* 版本号
*/
public static final String VERSION = "7.2.17";
public static final String VERSION = "7.2.18";
/**
* 块大小,不能改变
*/
Expand Down
3 changes: 3 additions & 0 deletions src/main/java/com/qiniu/common/QiniuException.java
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ public final class QiniuException extends IOException {
public QiniuException(Response response) {
super(response != null ? response.getInfo() : null);
this.response = response;
if (response != null) {
response.close();
}
}

public QiniuException(Exception e) {
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/qiniu/storage/BucketManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
import com.qiniu.http.Response;
import com.qiniu.storage.model.*;
import com.qiniu.util.*;

import java.util.*;

/**
Expand Down Expand Up @@ -326,7 +327,7 @@ public Response changeType(String bucket, String key, StorageType type)
*
* @param bucket 空间名称
* @param key 文件名称
* @param status 0表示启用;1表示禁用。
* @param status 0表示启用;1表示禁用。
* @throws QiniuException
*/
public Response changeStatus(String bucket, String key, int status)
Expand Down
3 changes: 2 additions & 1 deletion src/main/java/com/qiniu/streaming/StreamingManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,8 @@ public String saveAs(String streamKey, String fileName, long start, long end) th
* @param end 录制结束的时间戳,单位秒
* @param other 文档中指定的其它参数
*/
public String saveAs(String streamKey, String fileName, long start, long end, StringMap other) throws QiniuException {
public String saveAs(String streamKey, String fileName, long start, long end, StringMap other)
throws QiniuException {
String path = encodeKey(streamKey) + "/saveas";
StringMap param = other != null ? other : new StringMap();
param.putNotEmpty("fname", fileName).put("start", start).put("end", end);
Expand Down
13 changes: 1 addition & 12 deletions src/test/java/test/com/qiniu/rtc/RtcTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -10,18 +10,7 @@


public class RtcTest {
private String ak = "DXFtikq1YuD"; //AccessKey you get from qiniu
private String sk = "F397hz"; //SecretKey you get from qiniu
private Auth auth = null;

{
try {
auth = Auth.create(ak, sk);
} catch (Exception e) {
auth = TestConfig.testAuth;
}
}

private Auth auth = TestConfig.testAuth;
private RtcAppManager manager = new RtcAppManager(auth);
private RtcRoomManager rmanager = new RtcRoomManager(auth);

Expand Down
2 changes: 1 addition & 1 deletion src/test/java/test/com/qiniu/storage/BucketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ public class BucketTest {
};

@Before
protected void setUp() throws Exception {
public void setUp() throws Exception {
//default config
Configuration cfg = new Configuration();
cfg.useHttpsDomains = false;
Expand Down
10 changes: 1 addition & 9 deletions src/test/java/test/com/qiniu/streaming/StreamingTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,7 @@
* Created by bailong on 16/9/22
*/
public class StreamingTest {
private Auth auth = null;

{
try {
auth = Auth.create(System.getenv("ak"), System.getenv("sk"));
} catch (Exception e) {
auth = TestConfig.testAuth;
}
}
private Auth auth = TestConfig.testAuth;

private String hub = "pilisdktest";
private String streamKeyPrefix = "pilijava" + System.currentTimeMillis();
Expand Down

0 comments on commit 599e741

Please sign in to comment.