jerryshao opened a new pull request, #14881:
URL: https://github.com/apache/gravitino/pull/14881

   ### What changes were proposed in this pull request?
   
   Add `DomainNormalizeDispatcher` to validate new names when creating a domain 
or subdomain and when renaming a domain.
   
   ### Why are the changes needed?
   
   HTTP clients and proxies can normalize `.` and `..` in request paths, making 
a domain created with either name unreliable to address.
   
   Fixes #14880
   
   ### Does this PR introduce _any_ user-facing change?
   
   The server rejects blank names and the exact names `.` and `..` on creation 
and rename. Names such as `Finance/Trading. APAC` remain valid.
   
   ### How was this patch tested?
   
   Ran `TestDomainNormalizeDispatcher` and 
`TestGravitinoEnvMetadataComponents`. All 12 tests passed, including validation 
with a mutation check installed.
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to