PyKMIP icon indicating copy to clipboard operation
PyKMIP copied to clipboard

It is not possible to get all attributes for managed object

Open dmrlx opened this issue 6 years ago • 1 comments

It is not possible to get all attributes for managed object due to it isn't possible to handle "Original Creation Date" attribute during parsing of KMIP response.

When I try to get all attributes for managed object, I get next error message: Unrecognized attribute type: AttributeType.ORIGINAL_CREATION_DATE

However, if I add next piece of code to attribute_values.py -> AttributeValueFactory class -> create_attribute_value function

        elif name is enums.AttributeType.ORIGINAL_CREATION_DATE:
            return primitives.DateTime(value, enums.Tags.ORIGINAL_CREATION_DATE)

everything is OK

dmrlx avatar Jul 14 '20 10:07 dmrlx

Hi @dmrlx, thanks for filing this issue and my apologies for the delay in addressing it. You've pretty much posted the exact fix in this case (minus some additional testing and corner case handling), so hopefully you aren't still hitting any error cases for this item.

I'll try and get official Original Creation Date support added in so that is resolved and available upstream. For now I'll add it to the backlog and will triage it with our other short term work items.

PeterHamilton avatar Aug 31 '20 21:08 PeterHamilton