@@ -593,7 +593,8 @@ func (c *RealClient) CreatePAR(ctx context.Context, cred Credentials, region, bu
|
||||
if in.ObjectName != "" {
|
||||
details.ObjectName = &in.ObjectName
|
||||
}
|
||||
if in.AccessType == "AnyObjectReadWrite" || in.AccessType == "AnyObjectWrite" {
|
||||
// 桶级 PAR(AnyObject*)必须显式桶列举动作,缺省会被 OCI 拒绝;一律放开列举便于收件人浏览
|
||||
if strings.HasPrefix(in.AccessType, "AnyObject") {
|
||||
details.BucketListingAction = objectstorage.PreauthenticatedRequestBucketListingActionListobjects
|
||||
}
|
||||
resp, err := oc.CreatePreauthenticatedRequest(ctx, objectstorage.CreatePreauthenticatedRequestRequest{
|
||||
|
||||
Reference in New Issue
Block a user