Skip to content
This repository has been archived by the owner on Jan 27, 2021. It is now read-only.

Query with file system modules #46

Open
benweaver opened this issue Sep 13, 2018 · 0 comments
Open

Query with file system modules #46

benweaver opened this issue Sep 13, 2018 · 0 comments

Comments

@benweaver
Copy link

There appears to be no way to query MarkLogic specifying the file system as modules database, and if a ML app-server is configured with "(file system)" as the modules database, there is no way to query it with a user that doesn't have the xdmp-eval-modules-change permission.

Both would be solved by, e.g. interpreting "modules_database: 0" (or some other defined string) as a request to use the file system (i.e. create the option without calling through the xdmp:database function).

It might also be possible to remove the default "Modules", so that specifying "modules_database: null" will ensure the request uses whatever modules database is defined on the app-server. This doesn't allow users to choose the file system, but does allow all users to defer responsibility for choosing a modules db, which would be enough in some cases (and, as it happens, for me).

Happy to raise a PR, just wanted to get your opinion, in case if there are other concerns I'm not aware of.

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

No branches or pull requests

1 participant