Details
-
Bug
-
Resolution: Unresolved
-
High
-
None
-
4.4.1, 3.3.32
-
None
Description
if the imageasset filedtype is used in a contenttype, it cannot be queried via graphql if the asset attribute is not empty. an error message is displayed.
the imageasset attribute is always "null".
query arrticle
{ content { article (id:123) { _location { id } title imageAsset { id uri } } } }
response:
{ "errors": [ { "message": "Internal server Error", "extensions": { "category": "internal" }, "locations": [ { "line": 36, "column": 5 } ], "path": [ "content", "article", "imageAsset" ] } ], "data": { "content": { "article": { "_location": { "id": 130 }, "title": "Neuer Artikel 22", "imageAsset": null } } } }
this error is written to the logfile
app.CRITICAL: [GraphQL] eZ\Publish\API\Repository\Exceptions\PropertyNotFoundException: Property 'source' not found on class 'eZ\Publish\Core\FieldType\ImageAsset\Value'[0] (caught throwable) at /ibexa_website/vendor/ezsystems/ezplatform-kernel/eZ/Publish/API/Repository/Values/ValueObject.php line 99. {"exception":"[object] (eZ\\Publish\\API\\Repository\\Exceptions
PropertyNotFoundException(code: 0): Property 'source' not found on class 'eZ\\Publish\\Core\\FieldType\\ImageAsset
Value' at /ibexa_website/vendor/ezsystems/ezplatform-kernel/eZ/Publish/API/Repository/Values/ValueObject.php:99)","throwable":"[object] (eZ\\Publish\\API\\Repository\\Exceptions
PropertyNotFoundException(code: 0): Property 'source' not found on class 'eZ\\Publish\\Core\\FieldType\\ImageAsset
Value' at /ibexa_website/vendor/ezsystems/ezplatform-kernel/eZ/Publish/API/Repository/Values/ValueObject.php:99)"}