文档

0020-00000035

更新时间:

问题描述

PutBucketInventory请求中包含了SSE-OSS加密方式下不需要的KeyId参数。

问题原因

PutBucketInventory请求中使用了SSE-OSS加密,该加密方式下不需要通过KeyId参数指定密钥ID。

问题示例

以下请求中使用了SSE-OSS的加密方式,但是指定了仅在SSE-KMS加密方式下才需要的KeyId参数。

 PUT /?inventory&inventoryId=report1 HTTP/1.1
 Host: BucketName.oss.aliyuncs.com
 Date: Mon, 31 Oct 2016 12:00:00 GMT
 Authorization: authorization string
 Content-Length: length
 <?xml version="1.0" encoding="UTF-8"?>
 <InventoryConfiguration>
 	<Id>report1</Id>
  <IsEnabled>true</IsEnabled>
  <Filter>
  	<Prefix>filterPrefix/</Prefix>
    <LastModifyBeginTimeStamp>1637883649</LastModifyBeginTimeStamp>
    <LastModifyEndTimeStamp>1638347592</LastModifyEndTimeStamp>
    <LowerSizeBound>1024</LowerSizeBound>
    <UpperSizeBound>2048</UpperSizeBound>
    <StorageClass>Standard,IA</StorageClass>
   </Filter>
   <Destination>
   		<OSSBucketDestination>
      	<Format>CSV</Format>
        <AccountId>1000000000000000</AccountId>
        <RoleArn>acs:ram::1000000000000000:role/AliyunOSSRole</RoleArn>
        <Bucket>acs:oss:::destination-bucket</Bucket>
       	<Prefix>prefix1</Prefix>
        <Encryption>
              <SSE-OSS>
                 <KeyId>keyId</KeyId>
              </SSE-OSS>
           </Encryption>
      </OSSBucketDestination>
    </Destination>
    <Schedule>
    	<Frequency>Daily</Frequency>
    </Schedule>
    <IncludedObjectVersions>All</IncludedObjectVersions>
    <OptionalFields>
    	<Field>Size</Field>
      <Field>LastModifiedDate</Field>
      <Field>ETag</Field>
      <Field>StorageClass</Field>
      <Field>IsMultipartUploaded</Field>
    </OptionalFields>
 </InventoryConfiguration>

解决方案

将上述Encryption请求节点下SSE-OSS替换为SSE-KMS,并正确填写该请求下的其他所有字段。

相关文档

PutBucketInventory

  • 本页导读 (1)
文档反馈