ozone
ozone copied to clipboard
HDDS-13444. Unify isValidKeyPath implementation
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
How was this patch tested?
https://github.com/rich7420/ozone/actions/runs/20323872107