[MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Mike Sokolov
The documentation for xdmp:document-delete() says that it deletes a document and all its properties *except for the directory property*. However, the following sequence of queries results in an empty properties document (using 7.0-2.3): xdmp:directory-create(/test/);

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Danny Sokolsky
Hi Mike, I am not seeing this in 7.0-3. If you try to do a document-delete on a directory /test/, I am seeing XDMP-DOCNOTFOUND. Are you sure you did not create a document at the /test/ uri? -Danny -Original Message- From: general-boun...@developer.marklogic.com

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Michael Blakeley
With 7.0-3 on OSX and directory-creation=manual, I don't see a XDMP-DOCNOTFOUND error either. xdmp:describe(doc(/test/)); xdmp:describe(xdmp:document-properties(/test/)); xdmp:directory-create(/test/); xdmp:describe(xdmp:document-properties(/test/)); xdmp:document-delete(/test/);

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Danny Sokolsky
My test was with directory-creation=automatic. You also get the same behavior (XDMP-DOCNOTFOUND ) with directory-creation=manual-enforced. I think this makes sense, although the documentation could certainly be more clear about it ;) -Danny -Original Message- From:

Re: [MarkLogic Dev General] LDAP MarkLogic - Admin access

2014-08-28 Thread Wayne Feick
The fix will be in 7.0-4, which should be out in the next month or so (with the usual disclaimer that we don't preannounce release dates, plans can change, etc.). Wayne. On 08/27/2014 10:27 PM, Wayne Feick wrote: Hi Abhishek, That looks like a bug in xdmp:user-last-login(). I've filed it

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Mike Sokolov
So my takeaway is that there was a glitch, but the behavior in more recent releases conforms to the documentation. Thanks, everyone -Mike On 08/28/2014 01:09 PM, Danny Sokolsky wrote: My test was with directory-creation=automatic. You also get the same behavior (XDMP-DOCNOTFOUND ) with

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Danny Sokolsky
No, not exactly. The statement in the documentation assumes that directory creation is automatic or manual-enforced. In those cases, what it says is correct. When directory creation is manual, however, then the doc is not accurate now; in that case, document-delete will delete the document

Re: [MarkLogic Dev General] possible bug w/directory deletion

2014-08-28 Thread Mike Sokolov
Ah, I see. Thanks for clarifying, Danny. -Mike On 08/28/2014 02:41 PM, Danny Sokolsky wrote: No, not exactly. The statement in the documentation assumes that directory creation is automatic or manual-enforced. In those cases, what it says is correct. When directory creation is manual,

[MarkLogic Dev General] How to send HTML file attachment using xdmp:email

2014-08-28 Thread Danny Sinang
Hi, How does one go about sending an HTML file attachment using xdmp:email ? Regards, Danny ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] How to send HTML file attachment using xdmp:email

2014-08-28 Thread Michael Blakeley
Have you looked at the last example at https://docs.marklogic.com/xdmp:email yet? This example demonstrates sending a message with attachments. Looks to me like it would be simple to change the Content-Type. You'd probably have to use https://docs.marklogic.com/xdmp:base64-encode instead of

Re: [MarkLogic Dev General] How to send HTML file attachment using xdmp:email

2014-08-28 Thread Danny Sinang
Yes, I looked at https://docs.marklogic.com/xdmp:email. https://docs.marklogic.com/xdmp:email Couldn't figure out what function to use for base64 encoding. Thanks for pointing it out. Regards, Danny On Thu, Aug 28, 2014 at 11:33 PM, Michael Blakeley m...@blakeley.com wrote: Have you looked