-
Notifications
You must be signed in to change notification settings - Fork 260
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
[BUG] no matching server end point for Asset manager omas create schema attribute #7140
Comments
The reason that schemaTypeBuilder is null is because line 1318 in SchemaExchangeHandler, schemaAttributeProperties.getSchemaType() is null so it does not think there is a schemaType to setup |
If I supply the SchemaTypeProperties in the schemaAttributeProperties I supply then schemaAttributeProperties.getSchemaType() is not null and it does not null pointer. @mandy-chessell this seems unintuitive - I would have expected it to have been able to work out the schema type from the schematype guid. |
I was expecting the createSchemaAttribute to create the schema to attribute relationship. This is not occurring. |
There are two "schema types" associated with the schema attribute and I am having difficulty in following your notes as it is not clear which you mean. The schemaElementGUID is the parent GUID. This should be linked to the new schema attribute with either the AttributeForSchema or the NestedSchemaAttribute relationship. The second schema type is the one that describes the type of the attribute. This is the one that is specified in the SchemaTypeProperties embedded in the SchemaAttributesProperties. The contents are stored in the TypeEmbeddedAttribute classification. The schema type of the schema attribute does not have to be (in fact is unlikely to be) the same type as the parent schema GUID so it is not possible to derive one from the other. Asset Manager OMAS does not support the old style of schema construction (it can read it but not create/edit it. Therefore is never creates the SchemaAttributeType (there is not such relationship as SchemaToAttribute so I am guessing this is what you mean). The NPE is not good and the client should validate that the schemaTypeProperties are not null at the top of the createSchemaTypeAttributes() method. |
Hi Mandy, that really helps. I was using the wrong schematype in the attribute properties. I will change the to the appropriate schema type in the integration connector code. There currently is no AttributeForSchema or the NestedSchemaAttribute relationship being created for me. So the EventType is not related to the EventSchemaAttribute in any way. I am continuing to investigate. |
Is there an existing issue for this?
Current Behavior
In SchemaExchange Resource. the spring end point is defined as
@PostMapping(path = "/schema-elements/{schemaElementGUID}/schema-attribute")
The client is SchemaExchangeClientBase in createSchemaAttribute uses
final String urlTemplate = serverPlatformURLRoot + urlTemplatePrefix + "/schema-elements/{2}/schema-attributes?assetManagerIsHome={3}&forLineage={4}&forDuplicateProcessing={5}";
All the client and server calls should use
schema-attributes
notschema-attribute
Expected Behavior
Expect the client calls to match the server endpoint names
Steps To Reproduce
issue createschemaelement . \This would found while developing the lineage event sample
Environment
Any Further Information?
No response
The text was updated successfully, but these errors were encountered: