Skip to content

Commit 3d82787

Browse files
committed
Fixed content XCC URL for sample-project, corb task works now
1 parent 423f9a1 commit 3d82787

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

examples/sample-project/build.gradle

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,10 +113,8 @@ ext {
113113
// build/mlRestApi/(name of dependency)/ml-config/databases directory.
114114
configDir.contentDatabaseFiles.add(new File("src/main/ml-config/databases/more-content-database-config.json"))
115115

116-
// For the tasks below that depend on XCC - such as for running corb or creating triggers - the following URL
117-
// will be used. In this sample project, the sample-project-rest-admin user has the privileges necessary to
118-
// create triggers, so we use that user.
119-
contentXccUrl = "xcc://${mlRestAdminUsername}:${mlRestAdminPassword}@${mlHost}:8000/${mlAppConfig.contentDatabaseName}"
116+
// XCC URL for running corb task below and for creating triggers on pre-8.0-4 builds of MarkLogic
117+
contentXccUrl = "xcc://${mlRestAdminUsername}:${mlRestAdminPassword}@${mlHost}:${mlRestPort}"
120118
}
121119
}
122120

examples/sample-project/src/main/ml-config/security/roles/sample-project-rest-admin.xml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@
2121
</privilege>
2222
<!-- End privileges -->
2323

24+
<!-- Privileges for running corb -->
25+
<privilege>
26+
<privilege-name>xdbc:invoke</privilege-name>
27+
<action>http://marklogic.com/xdmp/privileges/xdbc-invoke</action>
28+
<kind>execute</kind>
29+
</privilege>
30+
2431
<!-- Privileges for creating triggers -->
2532
<privilege>
2633
<privilege-name>create-trigger</privilege-name>

0 commit comments

Comments
 (0)