kit-data-manager / metastore2

General purpose metadata repository and schema registry service.
Apache License 2.0
6 stars 10 forks source link

CamelCase Schema Identifier causes issues #547

Closed ThomasJejkal closed 2 months ago

ThomasJejkal commented 3 months ago

Describe the bug While it is possible to provide a schema with a CamelCase schema id and the correct schema id is stored in the database, listing schemas returns all schema ids in lowercase, such that using a schema id obtained via listing to obtain a single schema will fail.

To Reproduce Steps to reproduce the behavior:

  1. Create a schema with id 'MyTest'
  2. List all schemas (will contain one schema with id 'mytest'
  3. Use 'mytest' to obtain the single schema
  4. HTTP 404 is returned

Expected behavior Handling schema ids should be consistent, i.e., either accept CamelCase and return schema ids unchanged in the listing or forbidding CamelCase schema ids.

github-actions[bot] commented 3 months ago

Branch issue-547-CamelCase_Schema_Identifier_causes_issues created!