-
Notifications
You must be signed in to change notification settings - Fork 505
Closed
Description
when i restore the object with versionId
error occurred
ErrorResponse(code = InvalidObjectState, message = The operation is not valid for the current state of the object., bucketName = test345, objectName = api.json, resource = /test345/api.json, requestId = 172CA0632DFABBAE, hostId = fa9a8aed-9b2b-4877-825f-96aad54412d5)
request={method=POST, url=http://10.48.112.48:9000/test345/api.json?restore=, headers=Host: 10.48.112.48:9000
Accept-Encoding: identity
User-Agent: MinIO (Windows 10; amd64) minio-java/8.4.6
Content-MD5: 6yMa6JNiigv6FFV20x2o7g==
x-amz-content-sha256: 5a7025d938f0be807f7acd5d21378779b7269ca93d589f0dd98c5dd39d34cdf1
x-amz-date: 20221201T091214Z
Authorization: ██
}
response={code=403, headers=Accept-Ranges: bytes
Content-Length: 348
Content-Security-Policy: block-all-mixed-content
Content-Type: application/xml
Server: MinIO
Strict-Transport-Security: max-age=31536000; includeSubDomains
Vary: Origin
Vary: Accept-Encoding
X-Amz-Request-Id: 172CA0632DFABBAE
X-Content-Type-Options: nosniff
X-Xss-Protection: 1; mode=block
Date: Thu, 01 Dec 2022 09:11:49 GMT
}
this is code from restoreObject example:
this is bucket policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:GetObject",
"s3:PutObject"
],
"Resource": [
"arn:aws:s3:::test345/*"
]
},
{
"Effect": "Allow",
"Principal": {
"AWS": [
"*"
]
},
"Action": [
"s3:RestoreObject"
],
"Resource": [
"arn:aws:s3:::test345/*"
]
}
]
}
Thank you for your answer!
Metadata
Metadata
Assignees
Labels
No labels