Until there is a good reason (and there doesn't seem to be one here), I am
certainly not granting access to a database to anyone.

-- 
Florent Georges
H2O Consulting
http://h2o.consulting/


On 29 June 2017 at 17:35, Yother, Michael B wrote:

> I’m inquiring about access to ML server and/or cluster you are using.
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:general-bounces@
> developer.marklogic.com] *On Behalf Of *Florent Georges
> *Sent:* Thursday, June 29, 2017 11:23 AM
>
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Management API: remove modules db
> from server, to use filesystem instead
>
>
>
> Hi,
>
>
>
> Not sure you're replying to the right email?  If you are, then I am not
> sure what your question is.  Jim's suggestion indeed solves my issue.
>
>
>
> Regards,
>
>
>
> --
>
> Florent Georges
>
> H2O Consulting
> http://h2o.consulting/
>
>
>
>
>
> On 29 June 2017 at 17:18, Yother, Michael B wrote:
>
> Do we have a Linux Marklogic sandbox stood up that I can access? Is it a
> cluster?
>
>
>
> Thanks,
>
> Mike
>
>
>
> *From:* general-boun...@developer.marklogic.com [mailto:general-bounces@
> developer.marklogic.com] *On Behalf Of *Florent Georges
> *Sent:* Thursday, June 29, 2017 7:49 AM
> *To:* MarkLogic Developer Discussion
> *Subject:* Re: [MarkLogic Dev General] Management API: remove modules db
> from server, to use filesystem instead
>
>
>
> Hi,
>
>
>
> Ah, right, the internal ID for "no database".  Didn't think about that.
> Good enough for me (and yes, I confirm it does work) :-)
>
>
>
> Thank you, Jim!  Regards,
>
>
>
> --
>
> Florent Georges
>
> H2O Consulting
> http://h2o.consulting/
>
>
>
>
>
> On 29 June 2017 at 13:03, Jim Fuller wrote:
>
> yes I believe we already have a bug already tracking usage of null in this
> scenario, in this case the workaround is to set value to 0
>
>
>
> ex.
>
>
>
> curl --anyauth --user admin:admin -X PUT -H 'Content-type:
> application/json' -d'{"modules-database":0}' http://node1:8002/manage/v2/
> servers/test1/properties\?group-id\=Default\&format\=json
>
>
>
> hth,J
>
>
> ------------------------------
>
> *From:* general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of Florent Georges [
> li...@fgeorges.org]
> *Sent:* 29 June 2017 12:36
> *To:* MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] Management API: remove modules db from
> server, to use filesystem instead
>
> Hi,
>
>
>
> I have an application server, with a modules database configured. Using
> the Management API, I'd like to "remove" it, so it will use the filesystem
> instead for the modules.
>
>
>
> So I send a PUT request with { "modules-database": null } to the server
> properties endpoint.  But the response is 400 bad Request, because the
> modules database I give has no name.
>
>
>
> I can't find how to do it in the documentation.  Any idea?
>
>
>
> To replicate, with HTTPie:
>
>
>
>     echo '{ "modules-database" : null }' | \
>
>     http -v -a admin:admin -A digest PUT \
>
>         ml911:8002/manage/v2/servers/dataplay/properties?group-id=Default
> \
>
>         Content-Type:application/json
>
>
>
> The request (I removed non-relevant headers for clarity):
>
>
>
>     PUT /manage/v2/servers/dataplay/properties?group-id=Default HTTP/1.1
>
>     Accept: application/json, */*
>
>     Content-Type: application/json
>
>
>
>     {
>
>         "modules-database": null
>
>     }
>
>
>
> The response (I removed non-relevant headers for clarity):
>
>
>
>     HTTP/1.1 400 Bad Request
>
>     Content-type: application/json; charset=UTF-8
>
>
>
>     {
>
>         "errorResponse": {
>
>             "message": "XDMP-VALIDATEBADTYPE: (err:XQDY0027) validate
> strict { $nsfix } -- Invalid node type: srvprop:modules-database lexical
> value \"\" invalid for expected type #xs:NMTOKEN at /srvprop:http-server-
> properties/srvprop:modules-database using schema
> \"manage-server-properties.xsd\"",
>
>             "messageCode": "XDMP-VALIDATEBADTYPE",
>
>             "status": "Bad Request",
>
>             "statusCode": "400"
>
>         }
>
>     }
>
>
>
> Thank you.  Regards,
>
>
>
> --
>
> Florent Georges
>
> H2O Consulting
> http://h2o.consulting/
>
>
>
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
>
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
>
>
>
>
>
> _______________________________________________
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>
_______________________________________________
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general

Reply via email to