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
Describe the bug
There are several issues with the DataPlatformInstance API provided by DataHub:
HEAD Request Issue: The HEAD /v3/entity/dataplatforminstance/{urn} API returns a 404 Not Found response when checking the existence of a DataPlatformInstance that does exist.
GET Request Generates Incorrect Data: The GET /v3/entity/dataplatforminstance/{urn} API generates fabricated data when a non-existent urn is specified, instead of returning an error.
Empty Response for Scroll/List API: The GET /v3/entity/dataplatforminstance API with scroll or list parameters returns an empty response, despite having existing platform instances in the system.
To Reproduce
Steps to reproduce the behavior:
HEAD Request Issue:
Make a HEAD request to https://datahub.example.io/openapi/v3/entity/dataplatforminstance/{urn} with a valid urn such as urn:li:dataPlatformInstance:(urn:li:dataPlatform:mysql,some-existing-platform-instance).
Error: 404 Not Found is returned, but the instance does exist.
GET Request Generates Incorrect Data:
Make a GET request to the same endpoint but use a slightly altered urn that does not exist, such as urn:li:dataPlatformInstance:(urn:li:dataPlatform:mysql,example_instance_wrong).
Error: The response mimics a valid structure even though the data does not exist.
Describe the bug
There are several issues with the
DataPlatformInstance
API provided by DataHub:HEAD /v3/entity/dataplatforminstance/{urn}
API returns a404 Not Found
response when checking the existence of a DataPlatformInstance that does exist.GET /v3/entity/dataplatforminstance/{urn}
API generates fabricated data when a non-existenturn
is specified, instead of returning an error.GET /v3/entity/dataplatforminstance
API with scroll or list parameters returns an empty response, despite having existing platform instances in the system.To Reproduce
Steps to reproduce the behavior:
HEAD Request Issue:
HEAD
request tohttps://datahub.example.io/openapi/v3/entity/dataplatforminstance/{urn}
with a validurn
such asurn:li:dataPlatformInstance:(urn:li:dataPlatform:mysql,some-existing-platform-instance)
.404 Not Found
is returned, but the instance does exist.GET Request Generates Incorrect Data:
GET
request to the same endpoint but use a slightly alteredurn
that does not exist, such asurn:li:dataPlatformInstance:(urn:li:dataPlatform:mysql,example_instance_wrong)
.Example incorrect response:
Empty Response for Scroll/List API:
GET
request tohttps://datahub.example.io/openapi/v3/entity/dataplatforminstance
with scroll or list parameters.Expected behavior
200 OK
for existing instances and404 Not Found
only for non-existent ones.urn
is specified, rather than generating fabricated data.Screenshots
N/A (No UI involved, API behavior only)
Desktop (please complete the following information):
Additional context
v0.13.3
Could you please investigate these issues or provide guidance on resolving them? Any help would be greatly appreciated.
The text was updated successfully, but these errors were encountered: