[MarkLogic Dev General] Re: Serving a miscellaneous file

2010-04-09 Thread Chris Maloney
Doh! I did it again ... sent a message to the group just a bit before finding the answer by myself. I see that document-get() does what I want. I had looked at that, but when I read it, I didn't expect that, if I just plopped it down with a local binary file as the return value for an .xqy, that

[MarkLogic Dev General] Serving a miscellaneous file

2010-04-09 Thread Chris Maloney
I want to be able to, from XQuery, pass control back to the server and tell it "go serve this file here from the local filesystem". In other words, say I have a random file within my app's directory tree, that would normally get served from http://localhost/examples/HappyCat.png The MarkLogic se

RE: [MarkLogic Dev General] RE: Creating a "Simple" user

2010-04-09 Thread Danny Sokolsky
Yes, you can update your documents, but not setting properties, setting permissions (xdmp:document-set-permissions). Nevertheless, you will have to update every document if you want a non-admin user to see them. If a document has no permissions, only a user with the admin role can see the docu

[MarkLogic Dev General] +Hi+

2010-04-09 Thread Stylus Studio
http://www.kogensor.fewq.com/ijBQPl2Wsz.htm ___ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general

RE: [MarkLogic Dev General] RE: Creating a "Simple" user

2010-04-09 Thread Lee, David
OK, I will start from scratch (or nearly so because I have 20GB of documents I dont want to reload ... ) I think I can use xdmp:document-set-properties( ... ) What happens if documents have no permissions (like mine do, I just checked). Can you make a non-admin user that can read them ? Or do pe

[MarkLogic Dev General] updates and locks

2010-04-09 Thread Paul M
I have the following query: let $x := for $d in (1 to 1000) return 1 let $d := fn:doc("/testlocking.xml")/val return (xdmp:request-timestamp(), fn:current-dateTime(),$d,xdmp:document-insert("/testlocking.xml",{$d+1})) I verified that this is treated as an update query because xdmp:request-t

RE: [MarkLogic Dev General] Re: Missing "Mimetypes Functions" documentation -- never mind!

2010-04-09 Thread Danny Sokolsky
And thanks for the report, the 4.0 doc links are now fixed and go to: http://developer.marklogic.com/pubs/4.0/apidocs/AdminLibraryMimetype.html -Danny From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Chris Maloney Sent: Friday, April 0

[MarkLogic Dev General] RE: Creating a "Simple" user

2010-04-09 Thread Danny Sokolsky
Hi David, If it was *simple*, it would not be secure :) Remember that users do not have permissions, document have permissions, and permissions are tied to roles via a capability (read, update, insert, or execute). Privileges protect code access (and URI privileges protect creating documents

[MarkLogic Dev General] Re: Missing "Mimetypes Functions" documentation -- never mind!

2010-04-09 Thread Chris Maloney
I see that I was looking at the 4.0 documentation instead of 4.1. Sorry for the noise. ___ General mailing list General@developer.marklogic.com http://xqzone.com/mailman/listinfo/general

[MarkLogic Dev General] Missing "Mimetypes Functions" documentation

2010-04-09 Thread Chris Maloney
On this functions page: http://developer.marklogic.com/pubs/4.0/apidocs/All.html There's a link for "Mimetypes Functions" to http://developer.marklogic.com/pubs/4.0/apidocs/AdminLibrary.html&sub=mimetypes but it is broken :( Can anybody send me the real link, if the page exists? Chris P.S. I'm

RE: [MarkLogic Dev General] Search Question re:Fragments

2010-04-09 Thread Adam Patterson
Hello, I have only one document, and it is currently 433KB. This is the min as this document will only grow in the future, possibly up to 100MB or larger. The fragment rooted at the level of my document is currently at about 120KB in size, and this is also a min as this fragment will possibly

[MarkLogic Dev General] Creating a "Simple" user

2010-04-09 Thread Lee, David
I'm struggling on creating a user with the right roles and permissions to run a simple app. I read over the security and Admin documentation and still dont get it. I think my problem is that ML security is *too flexible* ! (no I'm not asking to change that :) I was sorta hoping for a de

RE: [MarkLogic Dev General] Migration of existing open sourceprojects hosted at DMC

2010-04-09 Thread Lee, David
Eric, you didnt give your email so I am replying to the group. I am a committer and would like to continue to be one. My project is the "MarkLogic Extension Module for xmlsh" David A. Lee Senior Principal Software Engineer Epocrates, Inc. d...@epocrates.c