Problem/Motivation

It seems that not only $resource can be missing in RemoteEntityAPIDefaultMetadataController::entityPropertyInfo() but it seems to happen that the connection also is missing.

Proposed resolution

Check if we could fetch the connection and bail if not - same behaviour as when $resource is missing.

Remaining tasks

Reviews needed.

User interface changes

None.

API changes

None.

Comments

das-peter’s picture

Status: Active » Needs review

Oh, reviews would be nice :)

das-peter’s picture

StatusFileSize
new915 bytes
new1.73 KB

Looks like there are cases in which an instance of ClientsHandlerEntityBroken is returned.
So we should also check if the connection actually implements ClientsRemoteEntityInterface.
Patch updated.