Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mc ilm --expired-object-delete-marker translated to DeleteMarker insted of ExpiredObjectDeleteMarker #4230

Closed
LadMartin opened this issue Sep 1, 2022 · 0 comments · Fixed by minio/minio-go#1692 or #4235
Assignees

Comments

@LadMartin
Copy link

Expected behavior

"ExpiredObjectDeleteMarker": true
$ aws --region us-east-1 s3api get-bucket-lifecycle-configuration --bucket foo
{
    "Rules": [
        {
            "Expiration": {
                "Days": 300
            },
            "ID": "...",
            "Filter": {
                "Prefix": ""
            },
            "Status": "Enabled",
            "NoncurrentVersionExpiration": {
                "NoncurrentDays": 100
            }
        },
        {
            "Expiration": {
                "Days": 300
            },
            "ID": "...",
            "Filter": {
                "Prefix": ""
            },
            "Status": "Enabled",
            "NoncurrentVersionExpiration": {
                "NoncurrentDays": 100
            }
        },
        {
            "Expiration": {
                "ExpiredObjectDeleteMarker": true
            },
            "ID": "...",
            "Filter": {
                "Prefix": ""
            },
            "Status": "Enabled"
        }
    ]
}

Actual behavior

"DeleteMarker":true
$ mc ilm export s3/mlad-test
{"Rules":[{"Expiration":{"Days":300,"DeleteMarker":false},"ID":"...","NoncurrentVersionExpiration":{"NoncurrentDays":100,"NewerNoncurrentVersions":0},"Status":"Enabled"},{"Expiration":{"Days":300,"DeleteMarker":false},"ID":"...","NoncurrentVersionExpiration":{"NoncurrentDays":100,"NewerNoncurrentVersions":0},"Status":"Enabled"},{"Expiration":{"DeleteMarker":true},"ID":"...","Status":"Enabled"}]}

Steps to reproduce the behavior

$ mc ilm add s3/foo --expired-object-delete-marker

mc --version

$ mc --version
mc version RELEASE.2022-08-28T20-08-11Z (commit-id=a64491e101feeaf68735a20c204d06993ba531e5)
Runtime: go1.18.5 linux/amd64
Copyright (c) 2015-2022 MinIO, Inc.
License GNU AGPLv3 <https://www.gnu.org/licenses/agpl-3.0.html>

System information

used AWS and dockerized MC client

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
2 participants