Skip to content

fix(pci-object-storage): display Object Lock retention weeks as days#22870

Open
lionel95200x wants to merge 1 commit into
masterfrom
fix/pci-object-storage-objectlock-retention-weeks
Open

fix(pci-object-storage): display Object Lock retention weeks as days#22870
lionel95200x wants to merge 1 commit into
masterfrom
fix/pci-object-storage-objectlock-retention-weeks

Conversation

@lionel95200x
Copy link
Copy Markdown
Contributor

The Object Lock retention period was parsed with a regex accepting only D/M/Y units. A 7-day retention is serialized by the API as the ISO 8601 week form 'P1W', which did not match and fell back to the default '1 year' value, displaying "1 an" instead of "7 jours".

Parse the week unit and normalize it to days (1W = 7D), and accept it in the validator. Add unit tests covering the regression.

Closes #22840

Description

Ticket Reference: #...

Additional Information

The Object Lock retention period was parsed with a regex accepting only
D/M/Y units. A 7-day retention is serialized by the API as the ISO 8601
week form 'P1W', which did not match and fell back to the default
'1 year' value, displaying "1 an" instead of "7 jours".

Parse the week unit and normalize it to days (1W = 7D), and accept it in
the validator. Add unit tests covering the regression.

Closes #22840
@lionel95200x lionel95200x requested a review from a team as a code owner June 3, 2026 08:28
@github-actions github-actions Bot added universe-public-cloud bug Something isn't working labels Jun 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working universe-public-cloud

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant