Skip to content

Provide clear createTDF error when using unknown attributes #175

@ttschampel

Description

@ttschampel

Repro:

call the createTDF method with attribute values that do not exist.

Result:

Caused by: java.util.concurrent.ExecutionException: io.grpc.StatusRuntimeException: NOT_FOUND: resource not found
	at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:592)
	at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:571)
	at io.opentdf.platform.sdk.Autoconfigure.newGranterFromService(Autoconfigure.java:690)
	at io.opentdf.platform.sdk.TDF.createTDF(TDF.java:387)

It is unclear that this error occurs b/c the attribute does not exist in the target platform.

Recommendation: update to provide a more meaningful error. The current error appears to point to a connectivity or platform proto mismatch vs the actual error..resulting in a lot of wasted time debugging

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions