Re: [MarkLogic Dev General] Returning of averages rather than counts

2015-04-16 Thread Geert Josten
Hi Mark, It unfortunately doesn’t work like that. It sounds like you are trying to get the average temperatures for all locations, maybe even ordered in a specific way? You can pull those numbers out of MarkLogic, but you will have to get the averages one by one for each location. That doesn’t

[MarkLogic Dev General] rest-writer and URI privileges

2015-04-16 Thread Andreas Hubmer
Hi, I would like to restrict the URIs for which a user can create documents via REST. My setup so far is: * a user 'app-user' which is assigned the role 'app-role' (nothing else) * no other role is assigned to the 'app-role' * the 'app-role' has execute privileges for rest-reader, rest-writer

Re: [MarkLogic Dev General] rest-writer and URI privileges

2015-04-16 Thread Geert Josten
RFE #3239, I have added your case to it.. From: Geert Josten geert.jos...@marklogic.commailto:geert.jos...@marklogic.com Reply-To: MarkLogic Developer Discussion general@developer.marklogic.commailto:general@developer.marklogic.com Date: Thursday, April 16, 2015 at 10:48 AM To: MarkLogic

Re: [MarkLogic Dev General] rest-writer and URI privileges

2015-04-16 Thread Andreas Hubmer
Thanks for your feedback. I'll probably use protected collections. 2015-04-16 11:55 GMT+02:00 Geert Josten geert.jos...@marklogic.com: RFE #3239, I have added your case to it.. From: Geert Josten geert.jos...@marklogic.com Reply-To: MarkLogic Developer Discussion

[MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread Puneet makwana
Hi All,I have been struggling with a basic authentication error and I know it is something simple. I am using Marklogic 8 on Win8 and I am trying to create a REST API instance using Curl CLI. The command that I am using is curl -s -X POST --digest --user admin:admin -d{\rest-api\ :

Re: [MarkLogic Dev General] Returning of averages rather than counts

2015-04-16 Thread Mark Shanks
Put the averages in a chart, i.e., locations on the x-axis, temperatures on the y-axis. As you can imagine, simply having the number of temperature readings at each location is quite meaningless. It needs to be the average of the actual temperature readings. Thanks, Mark From:

Re: [MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread Mark Shanks
I struck the same authentication error on Windows when trying to upload a document to the rest-api. I never got it to work. I found that I had to use the query console to upload the documents instead. From: yinyan...@hotmail.com To: general@developer.marklogic.com Date: Thu, 16 Apr 2015

Re: [MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread Yinyan guy
It worked!! Thank You CH. Using --user public\admin:admin made the difference.regards,Puneet Date: Thu, 16 Apr 2015 10:20:13 -0400 From: cbham...@gmail.com To: general@developer.marklogic.com Subject: Re: [MarkLogic Dev General] 401 Unauthorized Or maybe try with the user/pw as:

Re: [MarkLogic Dev General] rest-writer and URI privileges

2015-04-16 Thread Erik Hennum
Hi, Andreas and Geert: In 7.0-5 / 8.0-1, a bug fix (31026 / 31027) switched the REST writer from any-uri to unprotected-uri privilege. The REST admin continues to have any-uri privilege. Did that fix resolve the problem or are there additional issues? Erik Hennum

[MarkLogic Dev General] Preserving document collection membership

2015-04-16 Thread Danny Sinang
We sometimes modify XML docs in ML by hand (via WebDav / Oxygen) and discover later on that that XML doc is no longer part of its previous collection(s). Is there a way to tell ML to preserve collection membership when changed via the said method ? Regards, Danny

Re: [MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread David Ennis
HI. I would use curl in verbose mode (as suggested by Christopher) so that you can see the details. Furthermore, I would use --anyauth for the auth type. If one auth type fails, it will re-post the request again. This, combined with verbose output can be very helpful to troubleshoot these

Re: [MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread Christopher Hamlin
Or maybe try with the user/pw as: --user public\admin:admin since your curl sends an empty realm, and based on that earlier link I sent. /ch ___ General mailing list General@developer.marklogic.com Manage your subscription at:

Re: [MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread Christopher Hamlin
I just ran something similar (just added -v for verbose, different port): chamlin@MacPro:~$ curl -s -v -X POST --digest --user admin:admin -d{\rest-api\ : {\name\:\5minguide\,\database\:\5minguide\,\port\:8040}} -H Content-type: application/json http://localhost:8002/v1/rest-apis; * Trying

Re: [MarkLogic Dev General] 401 Unauthorized

2015-04-16 Thread Yinyan guy
Thank You David and Christopher. I tried the verbose option and --anyauth but result is same. I think its a Windows issue. $ curl -s -X POST --anyauth --user admin:admin -d{\rest-api\ : {\name\:\5minguide\,\database\:\5minguide\,\port\:8010}} -H Content-type: application/json

[MarkLogic Dev General] XQuery editor that supports jumping to function declaration

2015-04-16 Thread Danny Sinang
Slightly off-topic ... Does anyone know of an XQuery Editor that supports jumping to function declarations (within the same source file and otherwise) by CMD-clicking on a function call ? I know this feature exists in Eclipse when editing Java and it is very useful / convenient. Regards, Danny

Re: [MarkLogic Dev General] XQuery editor that supports jumping to function declaration

2015-04-16 Thread Paul Hoehne
I put IntelliJ with the XQuery plugin into that mode, but then couldn’t get out of it. (which made trying to highlight a function a pita). Paul Hoehne Senior Consultant MarkLogic Corporation paul.hoe...@marklogic.com mobile: +1 571 830 4735 www.marklogic.com Click http://po.st/hMGDFm to get

Re: [MarkLogic Dev General] Rest API basic error

2015-04-16 Thread Christopher Hamlin
Can you try it with --user public\admin:admin instead and see if it works? /ch ___ General mailing list General@developer.marklogic.com Manage your subscription at: http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] Rest API basic error

2015-04-16 Thread Sandeep Joseph
I got it resolved, I used public/admin:admin. Thank you though. Best regards, Sandeep Joseph. On Thu, Apr 16, 2015 at 4:30 PM, Sandeep Joseph sandeepjose...@gmail.com wrote: Hi Support team, I was trying out the training content , but it seems the server is kicking me out. If you can kindly

[MarkLogic Dev General] Rest API basic error

2015-04-16 Thread Sandeep Joseph
Hi Support team, I was trying out the training content , but it seems the server is kicking me out. If you can kindly give some insight on it, that would be great. c:\curlcurl --anyauth --user admin:admin -X POST -d@../mls-fundamentals/unit02 /config/xml-rest-instance.xml -i -H Content-type:

Re: [MarkLogic Dev General] Preserving document collection membership

2015-04-16 Thread Geert Josten
Hi Danny, Not directly no. You are expected to specify collections at each update. There are drawbacks, and benefits to that. I think easiest way out for you is to make sure that the user you are using to connect to MarkLogic, has default collections assigned, either directly, or inherited

Re: [MarkLogic Dev General] Preserving document collection membership

2015-04-16 Thread Danny Sinang
Would this feature be a good RFE then ? On Thu, Apr 16, 2015 at 2:18 PM, Geert Josten geert.jos...@marklogic.com wrote: Hi Danny, Not directly no. You are expected to specify collections at each update. There are drawbacks, and benefits to that. I think easiest way out for you is to make

Re: [MarkLogic Dev General] Preserving document collection membership

2015-04-16 Thread Geert Josten
Looks like it is an old RFE that is listed as fixed. Let me ask internally.. Cheers From: Danny Sinang d.sin...@gmail.commailto:d.sin...@gmail.com Reply-To: MarkLogic Developer Discussion general@developer.marklogic.commailto:general@developer.marklogic.com Date: Thursday, April 16, 2015 at

Re: [MarkLogic Dev General] Preserving document collection membership

2015-04-16 Thread Danny Sokolsky
I think this really has to do with what the webdav client is doing. If you look in the access log for the webdav server, you can see what requests it is making. Most webdav clients will make an update by inserting a new document. When you insert a new document, it will put all of the