-
Notifications
You must be signed in to change notification settings - Fork 72
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
REGR:NullPointerException thrown while doing eval() with client object created with incorrect credentials #582
Comments
srinathgit
changed the title
NullPointerException thrown while doing eval() with client object created with incorrect credentials
REGR:NullPointerException thrown while doing eval() with client object created with incorrect credentials
Dec 6, 2016
sammefford
added a commit
that referenced
this issue
Dec 6, 2016
Please test the fix on branch issue582 |
Issue is fixed on branch issue582 |
I'll move the fix to develop once I get review and approval |
sammefford
added a commit
that referenced
this issue
Dec 8, 2016
Ok, the change is now in develop |
Test runs fine in develop branch |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
A. The following test which used to succeed , now throws NullPointerException at line "client.newServerEval().xquery(insertJSON).eval();".
B. Looking further, the client object is created with Authentication set to "BASIC" though server authentication is set to "DIGEST". It is now throwing a 401 UnAuthorized . Has there been any changes in server code that caused this ?
client = DatabaseClientFactory.newClient("localhost", restPort, dbName,"rest-admin","x",Authentication.BASIC);
C. On changing the Authentication to DIGEST, I get "com.marklogic.client.FailedRequestException: Local message: failed to apply resource at eval: Internal Server Error. Server Message: SEC-PRIV: Need privilege: http://marklogic.com/xdmp/privileges/xdmp-eval-in . See the MarkLogic server error log for further detail."
client = DatabaseClientFactory.newClient("localhost", restPort, dbName,"rest-admin","x",Authentication.DIGEST);
D. Nevertheless, using client object created with incorrect credentials to perform eval() causes NPE.
The text was updated successfully, but these errors were encountered: