跳转到主内容

S3操作GetBucketAcl未返回所有属性

Views:
12
Visibility:
Public
Votes:
0
Category:
ontap-9
Specialty:
core
Last Updated:

适用场景

  • ONTAP 9.8及更高版本
  • ONTAP S3
  • AWS命令行界面
  • Apache德里德

问题描述

  • 当S3客户端  向ONTAP发送GetBucketAcl 请求时、ONTAP将返回一个未填充"grantee"属性的XML
  • S3客户端错误示例:
    • Apache德里德
      • java.lang.RuntimeException: com.amazonaws.SdkClientException: Failed to parse XML document with handler class com.amazonaws.services.s3.model.transform.XmlResponsesSaxParser$AccessControlListHandler

        Caused by: java.lang.NullPointerException: Cannot invoke "com.amazonaws.services.s3.model.Grantee.setIdentifier(String)" because "this.currentGrantee" is null

    • AWS命令行界面 
      • # aws --endpoint-url http://192.168.x.x s3api get-bucket-acl --bucket bkt1 --profile user1 { "Owner": { "DisplayName": "", "ID": "" }, "Grants": [ { "Permission": "FULL_CONTROL", "Grantee": { "DisplayName": "", "ID": "" } } ] }

Sign in to view the entire content of this KB article.

New to NetApp?

Learn more about our award-winning Support

NetApp provides no representations or warranties regarding the accuracy or reliability or serviceability of any information or recommendations provided in this publication or with respect to any results that may be obtained by the use of the information or observance of any recommendations provided herein. The information in this document is distributed AS IS and the use of this information or the implementation of any recommendations or techniques herein is a customer's responsibility and depends on the customer's ability to evaluate and integrate them into the customer's operational environment. This document and the information contained herein may be used solely in connection with the NetApp products discussed in this document.