apache / gravitino

World's most powerful open data catalog for building a high-performance, geo-distributed and federated metadata lake.
https://gravitino.apache.org
Apache License 2.0
1.09k stars 343 forks source link

[Bug report] Missing `jdbc-driver`, `jdbc-user`, and `jdbc-password` parameters in catalog creation request payload causes 400 error #5440

Open niyushabaghayi opened 2 weeks ago

niyushabaghayi commented 2 weeks ago

Version

main branch

Describe what's wrong

When creating a catalog with type: relational and provider: Apache Iceberg, the Gravitino UI fails to include the jdbc-driver, jdbc-user, and jdbc-password parameters in the request payload. As a result, the backend returns a 400 error, indicating that jdbc-driver is null and invalid.

Error message and/or stacktrace

The error message displayed in the UI is as follows:

Screenshot from 2024-11-04 16-35-38

How to reproduce

  1. Go to the Gravitino UI and open the "Create Catalog" dialog.

  2. Set the following values:

    • Name: [whatever you want]
    • Type: relational
    • Provider: Apache Iceberg
  3. Under the "Properties" section, set the following:

    • catalog-backend: jdbc
    • uri: jdbc:postgresql://[host]:[port]/[db]
    • warehouse: s3://[bucket]/[prefix]
    • jdbc-driver: org.postgresql.Driver
    • jdbc-user: [username]
    • jdbc-password: [password]
  4. Click on "Create."

  5. Observe the 400 error in the console or the UI error message: - null in jdbc-driver is invalid. The value can't be blank

Screenshot from 2024-11-04 16-35-14

Additional context

No response

LauraXia123 commented 2 weeks ago

dup with https://github.com/apache/gravitino/issues/5328