- Affected version
- 2.2.7 Patch 1
If the
This happens because of this code;
The line
c.nodes
query parameter has the value c[nodes][10]=1&c[nodes][11]=2
, and XFES is installed, elasticsearch can throw something like "Elasticsearch error: [terms] query does not support [0] within lookup element".This happens because of this code;
PHP:
$nodeIds = $request->filter('c.nodes', 'array-uint');
$nodeIds = array_unique($nodeIds);
if ($nodeIds && reset($nodeIds))
{
if ($request->filter('c.child_nodes', 'bool'))
{
...
}
else
{
unset($urlConstraints['child_nodes']);
}
$query->withMetadata('node', $nodeIds);
}
$nodeIds = array_unique($nodeIds);
should be $nodeIds = array_unique(array_values($nodeIds));
or similar.