ozone icon indicating copy to clipboard operation
ozone copied to clipboard

HDDS-13444. Unify isValidKeyPath implementation

Open rich7420 opened this issue 1 month ago • 0 comments

What changes were proposed in this pull request?

This PR unified the duplicated isValidKeyPath validation logic between OzoneFSUtils and OMClientRequest by extracting the common path validation into a shared private method validateKeyPathComponents, and made OMClientRequest.isValidKeyPath delegate to OzoneFSUtils.isValidKeyPath to remove code duplication.

What is the link to the Apache JIRA

HDDS-13444

How was this patch tested?

https://github.com/rich7420/ozone/actions/runs/20323872107

rich7420 avatar Dec 18 '25 02:12 rich7420