Skip to content

[Bug report] In the Web UI if a catalog has no schemas API calls are made with null in them #1001

@justinmclean

Description

@justinmclean

Describe what's wrong

The web UI tried to make these calls which fail:
http://localhost:3000/api/metalakes/metalake/catalogs/null
http://localhost:3000/api/metalakes/metalake/catalogs/null/schemas

There errors are hidden and only show up in teh developer console.

(Note also that null coudl be a valid but poor choice of a name for a schema)

Error message and/or stacktrace

 {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}
 M {message: 'Request failed with status code 404', name: 'AxiosError', code: 'ERR_BAD_REQUEST', config: {…}, request: XMLHttpRequest, …}

How to reproduce

Create a metalake and a catalog:
curl -X POST -H "Content-Type: application/json" -d '{"name":"metalake","comment":"Test metalake"}' http://localhost:8090/api/metalakes
curl -X POST -H "Content-Type: application/json" -d '{"name":"test","comment":"Test catalog","type":"RELATIONAL", "provider":"hive","properties":{"metastore.uris":"thrift://0.0.0.0:9083"}}' http://localhost:8090/api/metalakes/metalake/catalogs

View the catalog in the UI.

Additional context

No response

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions