You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
NPE in ServiceEntityResource.unmask when PUT service request has no connection field #29494
PUT /api/v1/services/databaseServices (and other service types) throws a NullPointerException when the request body has no connection field:
Cannot invoke "ServiceConnectionEntityInterface.getConfig()" because
the return value of "ServiceEntityInterface.getConnection()" is null
Root cause
ServiceEntityResource.unmask() checks originalService.getConnection() != null (the existing DB record) but does not check service.getConnection() != null (the incoming request) before calling service.getConnection().getConfig().
Steps to reproduce
Create a database service without a connection field:
PUT /api/v1/services/databaseServices
{"name": "my-service", "serviceType": "Hive"}
Call the same endpoint again (update) with the same body — server returns 400 with the NPE message
Expected behavior
PUT with no connection field is treated as an idempotent upsert — the existing connection is preserved and no error is thrown.
Activity
Fixes open-metadata#29494: NPE in ServiceEntityResource.unmask when r…
Fixes #29494: NPE in ServiceEntityResource.unmask when request has no…
chore(release): merge main into 2.1 for 2.1.0-rc2 (#37530)
fix: keep a service's connection on a PUT that omits it; unblock the …
Fix every integration-test failure on main: 14 stale/broken tests, th…
Fix the integration tests failing on 2.1 and the service-connection w…