[MI 4.2.0] Management API does not validate query configuration in a Data Service.
SameeraSI opened this issue · comments
Sameera Senarathna commented
Description
When nested queries are used in a data service without the 'element' attribute in the first query, the data service can be deployed in MI without any issues. However, the content of the data service cannot be retrieved using Management APIs.
Steps to Reproduce
- Create a data service using following structure.
.
.
.
<query id="GetQuery" useConfig="datasource">
<sql>
[query]
</sql>
[parameters]
<result rowName="value" element="value">
<element name="validityChecks">
<call-query href="GetQuery2" requiredRoles="">
[parameters]
</call-query>
</element>
</result>
</query>
<query id="GetQuery2" useConfig="datasource">
<sql>
[query]
</sql>
[parameters]
<result rowName="excludedFunctions">
[elements]
</result>
</query>
.
.
.
-
Invoke the management API with an access token.
https://localhost:9164/management/data-services?dataServiceName=[ServiceName]
-
You will receive a response with an empty body and a 200 status code as follows:
Affected Component
MI
Version
4.2.0
Environment Details (with versions)
No response
Relevant Log Output
No response
Related Issues
No response
Suggested Labels
No response