Skip to content

fix(rest): validate namespace identifier components - #1614

Open
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/rest-validate-namespace-components
Open

fix(rest): validate namespace identifier components#1614
fallintoplace wants to merge 1 commit into
apache:mainfrom
fallintoplace:fix/rest-validate-namespace-components

Conversation

@fallintoplace

Copy link
Copy Markdown
Contributor

What changed

Add shared namespace identifier validation in the catalog package and use it at REST namespace boundaries. Namespace components now follow the same rules as table, view, and function identifier components.

Why

REST namespace operations previously checked only that an identifier had at least one component. Empty components, path separators, dot components, and control characters were accepted even though object identifiers inside those namespaces reject them.

Testing

  • Added valid single-level and nested namespace cases
  • Added invalid empty, dot, path separator, and control-character cases
  • go test ./catalog ./catalog/rest

Signed-off-by: Minh Vu <vuhoangminh97@gmail.com>
@fallintoplace
fallintoplace requested a review from zeroshade as a code owner July 30, 2026 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant