-
Notifications
You must be signed in to change notification settings - Fork 74
MLE-31877 revert xdmp-login changes #1966
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: develop
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -18,13 +18,23 @@ | |
| "kind": "execute" | ||
| }, | ||
| { | ||
| "privilege-name": "xdmp-login", | ||
| "action": "http://marklogic.com/xdmp/privileges/xdmp-login", | ||
| "privilege-name": "xdmp:invoke", | ||
| "action": "http://marklogic.com/xdmp/privileges/xdmp-invoke", | ||
| "kind": "execute" | ||
| }, | ||
| { | ||
| "privilege-name": "xdmp:invoke", | ||
| "action": "http://marklogic.com/xdmp/privileges/xdmp-invoke", | ||
| "privilege-name": "xdmp:xslt-invoke", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Same for these privileges - I would do a follow up PR where I remove these and see what breaks.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. With the removal of xdmp:xslt-invoke, xdmp:xslt-eval, and xdmp:value the 3 test failures from the first Jenkins run are shown: https://ml-clt-jenkins.progress.com/blue/organizations/jenkins/devexp%2FJava-Client%2Fjava-client-api/detail/PR-1966/1/tests xsltTransformWithoutParam() – com.marklogic.client.test.rows.TransformDocTest
xsltTransformWithParam() – com.marklogic.client.test.rows.TransformDocTest
testUsingFromParamAndSchematron() – com.marklogic.client.test.rows.ValidateDocTest
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
| "action": "http://marklogic.com/xdmp/privileges/xslt-invoke", | ||
| "kind": "execute" | ||
| }, | ||
| { | ||
| "privilege-name": "xdmp:xslt-eval", | ||
| "action": "http://marklogic.com/xdmp/privileges/xslt-eval", | ||
| "kind": "execute" | ||
| }, | ||
| { | ||
| "privilege-name": "xdmp:value", | ||
| "action": "http://marklogic.com/xdmp/privileges/xdmp-value", | ||
| "kind": "execute" | ||
| }, | ||
| { | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "user-name": "rest-admin", | ||
| "description": "rest-admin user", | ||
| "role": ["rest-admin", "java-test-delete-temporal", "java-test-xdmp-login"], | ||
| "role": ["rest-admin", "java-test-delete-temporal"], | ||
| "password": "x" | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "user-name": "rest-evaluator", | ||
| "description": "Test user for the java-client-api-project", | ||
| "role": ["java-test-evaluator", "java-test-xdmp-login"], | ||
| "role": ["java-test-evaluator"], | ||
| "password": "x" | ||
| } |
This file was deleted.
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,6 @@ | ||
| { | ||
| "user-name": "rest-writer", | ||
| "description": "rest-writer user", | ||
| "role": ["rest-writer", "java-test-delete-graph", "java-test-xdmp-login"], | ||
| "role": ["rest-writer", "java-test-delete-graph"], | ||
| "password": "x" | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This is fine for this PR, but I think it'd be good to next try a PR where this is removed from this role and see what fails. And then create an additional role - e.g. "test-invoke" - that only grants this privilege and give it a user that is only used for tests where we know this privilege is required. It should be granted for a "rest writer" who typically does not need invoke (or eval) privileges.