Skip to content

Conversation

@Shallwewu
Copy link
Collaborator

support user-assigned cmk id header & get vod playlist & sign-v2 & head object api & download\upload crc64

@CLAassistant
Copy link

CLAassistant commented Nov 27, 2018

CLA assistant check
Thank you for your submission, we really appreciate it. Like many open source projects, we ask that you all sign our Contributor License Agreement before we can accept your contribution.
1 out of 3 committers have signed the CLA.

✅ Shallwewu
❌ 彧贤
❌ shallwewoo


彧贤 seems not to be a GitHub user. You need a GitHub account to be able to sign the CLA. If you have already a GitHub account, please add the email address used for this commit to your account.
You have signed the CLA already but the status is still pending? Let us recheck it.

if (request.getExpiration() == null) {
throw new IllegalArgumentException(OSS_RESOURCE_MANAGER.getString("MustSetExpiration"));
}
String url;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 建议在声明的地方初始化。

/**
* Gets the user agent string.
*
*
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • ClientConfiguration.java中包括其它地方,代码格式化作为单独的提交,不要和功能修改混在一起;

* bucket name and object key, and some constraint information can be set.
* @return The {@link ObjectMetadata} instance.
*/
public ObjectMetadata headObject(HeadObjectRequest headObjectRequest) throws OSSException, ClientException;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 为什么要加headobject,感觉没有必要

* @throws ClientException
* OSS Client side exception.
*/
public OSSObject getVodPlaylist(String bucketName, String liveChannelName, long startTime,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • OSSObject getVodPlaylist中long startTime long endTime为什么不是Date

return sb.toString();
}

private static TreeSet<String> buildSortedAdditionalHeaderNames(Set<String> headerNames, Set<String> additionalHeaderNames) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • buildSortedAdditionalHeaderNames 的返回值 Set<String> 即可。

* @param signatureVersion
* the signature version to switch to。
*/
public void switchSignatureVersion(String signatureVersion);
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • switchSignatureVersion的参数枚举类型为最好,防止用户填错。

public class SignTest {

@Test
public void testSignV2() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • V2的测试强度不够,每个API都需要在V2下跑一次。

}

@Test
public void testGenerateSignedV2URL() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

  • 这个测试不足,用户指定headers,paramters的情况,callback的情况,以及getObject(URL signedUrl, Map<String, String> requestHeaders)/PutObjectResult putObject(URL signedUrl, String filePath, Map<String, String> requestHeaders)的应用等等。

@Shallwewu Shallwewu merged commit 3e14639 into aliyun:master Dec 13, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants