Skip to content
This repository was archived by the owner on Sep 16, 2024. It is now read-only.

Commit d780caa

Browse files
committed
#412 No longer trying to update query rolesets
1 parent 5efa5f5 commit d780caa

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

gradle/wrapper/gradle-wrapper.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-5.4.1-bin.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-6.5.1-bin.zip

src/main/java/com/marklogic/mgmt/resource/security/QueryRolesetManager.java

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,13 @@ public class QueryRolesetManager extends AbstractResourceManager {
1010

1111
public QueryRolesetManager(ManageClient client) {
1212
super(client);
13+
14+
/**
15+
* See https://github.com/marklogic-community/ml-app-deployer/issues/412 - ML 10.0-4 no longer supports a PUT
16+
* on a query roleset, and before it, it did not do anything. This is consistent with the ML Admin UI too,
17+
* where a user can only create and delete query rolesets.
18+
*/
19+
setUpdateAllowed(false);
1320
}
1421

1522
@Override
@@ -37,7 +44,7 @@ public String getResourcePath(String resourceNameOrId, String... resourceUrlPara
3744
if (isRoleId(resourceNameOrId)) {
3845
return super.getResourcePath(resourceNameOrId, resourceUrlParams);
3946
}
40-
47+
4148
String id = getIdForRoleNames(resourceNameOrId, getAsXml());
4249
if (id == null) {
4350
throw new RuntimeException("Could not find a query-roleset with roles: " + resourceNameOrId);

0 commit comments

Comments
 (0)