Skip to content

[Bug report] web-v2: Editing a catalog removes hidden properties (e.g. warehouse), causing 400 error #10837

@bharos

Description

@bharos

Version

main branch

Describe what's wrong

In the web-v2 UI, editing a catalog that has optional (non-required) properties like warehouse causes those properties to be silently removed. This results in a 400 error from the backend when warehouse is required for the catalog to function correctly.

The root cause is in CreateCatalogDialog.js. During edit mode, the isHidden() function's default case hides all non-required properties that aren't region or location. The getSubmitData() function then filters out hidden props via .filter(item => !isHidden(item)), so they are excluded from the submitted data. When genUpdates() compares the original catalog properties against the submitted properties, it generates a removeProperty("warehouse") update, which the backend rejects with a 400 error.

Error message and/or stacktrace

Backend returns HTTP 400 when attempting to save the edited catalog. The warehouse property is removed from the update payload even though the user did not change or remove it.

How to reproduce

How to reproduce:

Start Gravitino server and web-v2 UI on main branch
Create a lakehouse-iceberg catalog with hive backend, setting uri and warehouse properties
Click edit on the catalog
Change only the comment field (or any visible field)
Click submit
Observe 400 error — the warehouse property was removed from the update request

Additional context

Screen.Recording.2026-04-21.at.3.56.28.PM.mov

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions