IdOnly seems to be broken
When executing a query using the IdOnly
flag the result set is empty although the number of results seems to be evaluated correctly.
E.g., Entity/?IdOnly&query=SELECT ID FROM RECORD sample
returns
<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="https://localhost:10443/webinterface/1634568740/webcaosdb.xsl" ?>
<Response username="admin" realm="PAM" srid="eb017141-9840-4c30-a086-b6c0a10262b0" timestamp="1634629758162" baseuri="https://localhost:10443" count="10001">
<noscript>
<h1>Please enable JavaScript!</h1>
</noscript>
<UserInfo username="admin" realm="PAM">
<Roles>
<Role>administration</Role>
</Roles>
</UserInfo>
<Query string="SELECT ID FROM RECORD sample" results="10001" cached="true" etag="4af0a738-f440-4c38-b469-40fa2fd07016">
<ParseTree>(cq SELECT (prop_sel (prop_subsel (selector_txt I D ))) FROM (role RECORD ) (entity sample) <EOF>)</ParseTree>
<Role>RECORD</Role>
<Entity>sample</Entity>
<Selection>
<Selector name="ID" />
</Selection>
</Query>
</Response>
Also, the integration test seems strange and doesn't actually test the result set.
Edited by Florian Spreckelsen