Open cskeefer opened 6 years ago
The problem is the following execute privileges in ml-config/security/roles/data-explorer-ext-amp-role.json are new in ML9 (so not available in ML8):
{
"privilege-name": "cts:term-query",
"action": "http://marklogic.com/xdmp/privileges/term-query",
"kind": "execute"
}
{
"privilege-name" : "admin-database",
"action" : "http://marklogic.com/xdmp/privileges/admin/database",
"kind" : "execute"
}
The first allows access to cts:term-query which is used to get the list of root elements in the database. That is used when creating a query based on documents in the database.
The second is used to get range indexes that help in figuring out type info for a search field.
Unless anyone has another suggestion, I'll make similarly named execute privileges that will mirror these two and work in both ML8 and ML9.
Rather than solution described above, added a gradle-ml8.properties file to handle it. See the associated pull request #175
When deploying the application to a MarkLogic 8 instance (8.0-6.7) I am receiving the following error when the role defined in ml-config/security/roles/data-explorer-ext-amp-role.json is attempted to be created:
ML8 doesn't seem to know about the privilege term-query.
Note: I upgraded to MarkLogic 8.0-8.1 and see the same issue