You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Sep 25, 2026. It is now read-only.
MatchPrefix and MatchSuffix properties created from the UI, are not reflecting in the LifecycleCondition #1715
For the Bucket just created Add a LifeCyle Rule with Condition: MatchPrefix and Match Suffix. Save the Configuration.
Using Google Cloud API, create a Bucket Object for the bucket created from the step 1.
sysout the LifeCyleCondition, correct behaviour is for the LifecycleRule. getCondition.getMatchesPrefix() & LifecycleRule. getCondition.getMatchesSuffix() return the values set using step 3.
But the values are shown as null, even though the values are populated from the Console UI
The reason for this behaviour:
While the API is able to bring the MatchPrefix and Matchsuffix, the same is not used in the Builder.
LifecycleRule fromPb(Rule rule) method, while building the LifeCyleRuleCondition, doesnt populate the matchPrefix and matchsuffix values.
Following these steps guarantees the quickest resolution possible.
Activity
BenWhitehead commentedon Oct 18, 2022
Thanks for reporting @sundarrajanraman, I'll investigate and see what can be done to fix this.
sundarrajanraman commentedon Oct 18, 2022
@BenWhitehead Created the PR to fix the issue. Please review. Thanks