java-client-api
java-client-api copied to clipboard
Getting "Internal Server Error" while trying to load the index options to an existing database.
So we can address your issue, please include the following:
Version of MarkLogic Java Client API
Version of MarkLogic Server - 9.0-6.2
Java version
Run java -version
OS and version
For MAC, run sw_vers
.
For Windows, run systeminfo | findstr /B /C:"OS Name" /C:"OS Version"
For Linux, run cat /etc/os-release
and uname -r
Input:
curl --anyauth --user admin:admin -X PUT -d@"../database-config.json" -i -H "Content-type: application/json" "http://localhost:8002/manage/v2/databases/top-songs-content/properties"
Actual output:
Expected output: Index options loaded successfully
Alternatives: What else have you tried, actual/expected?
Is this a regression? As I see "field.included-elements.included-element" node expects localname as a string and also expects attribute-localname & attribute-value fields. Ref: admin:database-included-element
I found this while trying to duplicate a different Java Api issue. It is a regression in the product but it is not a test regression.
Added changes to the payload. database-config.pdf
I did a re-test of this - I created a database with the given config, an no error occurred. My guess is that the database that this was run against had something like a field or some other config that depended on an index that was removed from the given config file. Additionally, this is not a Java Client issue but would be a Manage API error if it were in fact reproducible.