-
Notifications
You must be signed in to change notification settings - Fork 20
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
repository-services getEntityDetail is ignoring MetadataCollectionId part of GUID #557
Comments
Good catch. The connector should only respond with the instances that are known to the specific metadata collection it represents. It makes sense to check metadata collection id because it is part of the instance identity (guid), when this part of the id does not match then from egeria perspective it is different instance. In this case we should respond with 'EntityNotKnownException' allowing federation/enterprise layer to find the matching instance comming from the correct metadata collection origin. This also makes sense from purely REST API perspective and it should apply for all get instance by guid methods, based on the usage in the code I see the follwing:
|
Yikes, can't believe we haven't spotted this earlier! I'll have a deeper look -- should hopefully be pretty simple & straightforward to fix. |
Signed-off-by: Christopher Grote <chris@thegrotes.net>
Fixes #557 to only retrieve homed metadata instances
The guid path parameter is formatted like: [ IGCType ]@[ MetadataCollectionId ]:[IGC-RID]
getEntityDetail is ignoring MetadataCollectionId.
If there are 2 or more IGC proxies in the cohort, having entities with the same RID each, the first one getting the request from enterprise, will respond with the entity, but different GUID than the one from request.
This behaviour makes OMRS to provide a different entity than the one requested, and the entity from the second IGC proxy unreachable from enterprise layer.
I think connector should validate toe MetadataCollectionId part from the GUID.
The text was updated successfully, but these errors were encountered: