Uh oh!
There was an error while loading. Please reload this page.
HDDS-5161. Fix the regex for key name validation - #5200
Conversation
umamaheswararao
commented
Aug 21, 2023
@SaketaChalamchala could you also please take a look at it? |
Uh oh!
There was an error while loading. Please reload this page.
SaketaChalamchala
commented
Aug 25, 2023
LGTM |
siddhantsangwan
left a comment
There was a problem hiding this comment.
@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.
siddhantsangwan
commented
Aug 28, 2023
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.
LGTM. I think we can go forward with the new key name validation. Existing keys will not be affected.
Tejaskriya
commented
Aug 29, 2023
Thanks for the review! I added cases in the unit test for verifying valid names now. Could you take a look it again? |
siddhantsangwan
commented
Aug 29, 2023
About the repeated test failure in CI (filesystem) (pull_request): https://issues.apache.org/jira/browse/HDDS-9041. |
siddhantsangwan
commented
Aug 30, 2023
We've had 3 different CI runs and all the tests in |
siddhantsangwan
commented
Aug 30, 2023
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