Skip to content
This repository has been archived by the owner on Nov 9, 2022. It is now read-only.

setup.xqy fails to validate field range index config (most likely other range-indexes as well) #492

Closed
joemfb opened this issue Jul 8, 2015 · 6 comments

Comments

@joemfb
Copy link
Contributor

joemfb commented Jul 8, 2015

Since setup.xqy uses the XML snippets from ml-config.xml directly, without validating their contents, it's possible to end up with a schema-invalid databases.xml configuration. Once that happens the REST Management API throws errors for database updates.

Specifically, I had a database with a range-field-index element containing a namespace-uri element (from the dmlc-healthcare project). This bootstraps (and works) without issue via Roxy. When I try to configure a database using the REST Management API (using ml-gradle and OBI), the PUT to /manage/v2/databases/obi-ui-content/properties fails with a 400 error.

This may properly be a bug of the Admin API not validating it's parameters. I'm not sure what an appropriate resolution would be, but wanted to capture the problem here.

@grtjn
Copy link
Contributor

grtjn commented Jul 8, 2015

I thought we fixed most of these cases. Which version of Roxy?

@joemfb
Copy link
Contributor Author

joemfb commented Jul 8, 2015

This was on v1.7.1, but the implementation is the same on current master: https://github.com/marklogic/roxy/blob/master/deploy/lib/xquery/setup.xqy#L2447

@grtjn
Copy link
Contributor

grtjn commented Jul 8, 2015

Ah yes, from the looks we forgot to fix path-index, and field-index. Will look asap..

@grtjn
Copy link
Contributor

grtjn commented Sep 22, 2015

Still applies..

@joemfb joemfb changed the title setup.xqy fails to valid field range index config (most likely other range-indexes as well) setup.xqy fails to validate field range index config (most likely other range-indexes as well) Feb 12, 2016
@grtjn
Copy link
Contributor

grtjn commented Mar 11, 2016

#499/#501 is related, but didn't fix this. Pushing away to allow release of 1.7.3 though..

@RobertSzkutak
Copy link
Contributor

Pushing off to the next release...

@RobertSzkutak RobertSzkutak modified the milestones: 1.7.5, 1.7.4 Oct 25, 2016
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
dmcassel added a commit to dmcassel/roxy that referenced this issue Jan 17, 2017
RobertSzkutak added a commit that referenced this issue Jan 30, 2017
#492 verify parameters during setup
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants