Skip to content

Object Storage S3: Object Lock retention displays "1 an" instead of "7 jours" #22840

@hyvs

Description

@hyvs

Have you already contacted our help centre?

  • Yes, I have contacted the help centre.

Is there an existing issue for this?

  • I have checked the existing issues

Describe the bug

Description

The Object Storage S3 bucket detail page in the Control Panel incorrectly
displays "1 an" for an Object Lock retention period configured at 7 days.
Other values (e.g. 8 days) display correctly.

Actual behavior

Retention period displays "1 an".

Note: a bucket configured with 8 days correctly displays "8 jours".

Proof

API returns the correct value:

{
  "ObjectLockConfiguration": {
    "ObjectLockEnabled": "Enabled",
    "Rule": {
      "DefaultRetention": {
        "Mode": "COMPLIANCE",
        "Days": 7
      }
    }
  }
}

Steps To Reproduce

  1. Create an S3 bucket with Object Lock enabled, COMPLIANCE mode, 7 days retention
  2. Navigate to the bucket dashboard in the Control Panel (https://manager.eu.ovhcloud.com/#/public-cloud/pci/projects/${PROJECT_ID}/storages/objects/s3/EU-WEST-PAR/${BUCKET}/dashboard/)

Environment

  • Region: eu-west-par
  • Bucket type: S3, 3-AZ

Expected Behavior

Retention period displays "7 jours".

What browsers are you using?

Firefox

Which devices are used?

Desktop

Additional information to add?

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions