Details
-
Bug
-
Status: Closed
-
Resolution: Fixed
-
Master
-
7.3.x, 7.2.x, 7.1.x
-
Committed
-
3
Description
Executing the query displayPageTemplates returns an error instead of a valid response.
query {
admin {
displayPageTemplates(siteKey: "20124") {
items {
title
}
}
}
}
The problem seems to be that the GraphQLServletExtender assumes that every ResourceImpl implements the EntityModelResource interface and DisplayPateTemplateResourceImpl doesn't, so the following code in the GraphQLServletExtender class breaks:
private EntityModel _getEntityModel( Object resource, Map<String, String[]> parameterMap) throws Exception { EntityModelResource entityModelResource = (EntityModelResource)resource; return entityModelResource.getEntityModel( ContextProviderUtil.getMultivaluedHashMap(parameterMap)); }