-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-5161. Fix the regex for key name validation #5200
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
@SaketaChalamchala could you also please take a look at it? |
hadoop-hdds/common/src/main/java/org/apache/hadoop/ozone/OzoneConsts.java
Outdated
Show resolved
Hide resolved
|
LGTM |
siddhantsangwan
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@Tejaskriya thanks for working on this. The regex logic looks good to me. It would be great to have a unit test that confirms ( and ) are accepted now.
|
I have some thoughts on compatibility between different versions of ozone. With this change we won't allow quotation marks, so clients that are writing keys with quotes will start failing. Annotations defined under Considering all this, I think this change is fine and the target version for this jira can be |
errose28
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. I think we can go forward with the new key name validation. Existing keys will not be affected.
Thanks for the review! I added cases in the unit test for verifying valid names now. Could you take a look it again? |
This reverts commit a32f494.
|
About the repeated test failure in CI (filesystem) (pull_request): https://issues.apache.org/jira/browse/HDDS-9041. |
|
We've had 3 different CI runs and all the tests in |
|
The failures are being fixed here - #5217. |
What changes were proposed in this pull request?
Changing the regex for KEYNAME_ILLEGAL_CHARACTER_CHECK_REGEX to allow "(" and ")"
What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-5161
How was this patch tested?
Added few cases in existing tests. Also tested manually using Docker after setting ozone.om.keyname.character.check.enabled to true in ozone_deafult.xml