java-client-api icon indicating copy to clipboard operation
java-client-api copied to clipboard

Getting "Internal Server Error" while trying to load the index options to an existing database.

Open anu3990 opened this issue 6 years ago • 3 comments

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:

image

db-config.pdf

Expected output: Index options loaded successfully

Alternatives: What else have you tried, actual/expected?

anu3990 avatar Sep 26 '18 00:09 anu3990

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

asaratik avatar Sep 26 '18 05:09 asaratik

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.

anu3990 avatar Sep 26 '18 16:09 anu3990

Added changes to the payload. database-config.pdf

anu3990 avatar Sep 26 '18 19:09 anu3990

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.

rjrudin avatar Nov 17 '22 15:11 rjrudin