Skip to content
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

Error deploying a database XML file with CMA #702

Open
rjrudin opened this issue Dec 16, 2019 · 2 comments
Open

Error deploying a database XML file with CMA #702

rjrudin opened this issue Dec 16, 2019 · 2 comments
Assignees

Comments

@rjrudin
Copy link
Contributor

rjrudin commented Dec 16, 2019

Copied from #525 . Something in the set of Database Java classes isn't happy about that XML, need to figure out the issue and hopefully it's just a simple tweak to those classes so that the XML is unmarshalled correctly.

@rjrudin
Copy link
Contributor Author

rjrudin commented Dec 29, 2019

Turns out this is an issue in the Manage API - when multiple values exist for a localname, the JSON representation expects an array of strings, while the XML representation expects a single string. Will file a bug with ML.

In the meantime, the workaround is to not use CMA when deploying databases via XML files that have such elements in them.

@rjrudin rjrudin reopened this Dec 29, 2019
rjrudin referenced this issue in marklogic/ml-app-deployer Dec 29, 2019
This reverts commit 59cd068

Turns out this is an issue in the Manage API - when multiple values exist for a localname, the JSON representation expects an array of strings, while the XML representation expects a single string. Will file a bug with ML.
@rjrudin rjrudin transferred this issue from marklogic/ml-app-deployer Aug 21, 2024
@rjrudin
Copy link
Contributor Author

rjrudin commented Aug 21, 2024

Verified that this is still an issue with 11.2.0. There's a lot of complexity with maintaining a set of Java classes to allow for XML to be converted into JSON, and I'm thinking the best bet here is to say "Don't use XML files when using CMA" until we can fully support that. And we'll likely never support a mix of JSON/XML files when using CMA due to the complexity of trying to normalize those files to either JSON or XML.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant