{"action":"opened","issue":{"url":"https://api.github.com/repos/paxtonhare/MarkLogic-Sublime/issues/46","repository_url":"https://api.github.com/repos/paxtonhare/MarkLogic-Sublime","labels_url":"https://api.github.com/repos/paxtonhare/MarkLogic-Sublime/issues/46/labels{/name}","comments_url":"https://api.github.com/repos/paxtonhare/MarkLogic-Sublime/issues/46/comments","events_url":"https://api.github.com/repos/paxtonhare/MarkLogic-Sublime/issues/46/events","html_url":"https://github.com/paxtonhare/MarkLogic-Sublime/issues/46","id":359977334,"node_id":"MDU6SXNzdWUzNTk5NzczMzQ=","number":46,"title":"Query with file system modules","user":{"login":"benweaver","id":2932479,"node_id":"MDQ6VXNlcjI5MzI0Nzk=","avatar_url":"https://avatars2.githubusercontent.com/u/2932479?v=4","gravatar_id":"","url":"https://api.github.com/users/benweaver","html_url":"https://github.com/benweaver","followers_url":"https://api.github.com/users/benweaver/followers","following_url":"https://api.github.com/users/benweaver/following{/other_user}","gists_url":"https://api.github.com/users/benweaver/gists{/gist_id}","starred_url":"https://api.github.com/users/benweaver/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/benweaver/subscriptions","organizations_url":"https://api.github.com/users/benweaver/orgs","repos_url":"https://api.github.com/users/benweaver/repos","events_url":"https://api.github.com/users/benweaver/events{/privacy}","received_events_url":"https://api.github.com/users/benweaver/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-09-13T16:45:39Z","updated_at":"2018-09-13T16:45:39Z","closed_at":null,"author_association":"NONE","body":"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.\r\n\r\nBoth 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 <modules> option without calling through the xdmp:database function).\r\n\r\nIt 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).\r\n\r\nHappy to raise a PR, just wanted to get your opinion, in case if there are other concerns I'm not aware of."}}
{"actor":{"display_login":"benweaver"}}