Re: [basex-talk] Optimization for procedure call ?

2015-01-14 Thread Christian GrĂ¼n
Hi Jean-Marc, > Might it be garbage collector stuff ? That's exactly what it is. > > 2015-01-14 8:18 GMT+01:00 jean-marc Mercier : >> >> Glory to our holy Leo for transmitting brahmavidya to shishya !! >> >> Turning back to this optimization problem, this might be trickier since execution time d

[basex-talk] RESTXQ and access blocking

2015-01-14 Thread Lars Johnsen
Hi all I was wondering how to block general access to BaseX when using RESTXQ. Our javascript/jquery web-application communicates with BaseX using commands like: $('#myobject').load('objects') where the term 'objects' is defined as a path in a .xqm-file. declare %rest:path("/objects")

Re: [basex-talk] RESTXQ and access blocking

2015-01-14 Thread Dirk Kirsten
Hello Lars, You can disable the REST interface if you do not intend to use it (and you solely use RESTXQ). This can be done using your web server. In our default jetty-based HTTP server you can find the servlet mapping in WEB-INF/web.xml, where you can simply disable the servlet mapping for RES

Re: [basex-talk] RESTXQ and access blocking

2015-01-14 Thread Lars Johnsen
Thanks - it worked out nicely! Just commented out the -section on REST. Cheers, Lars 2015-01-14 15:57 GMT+01:00 Dirk Kirsten : > Hello Lars, > > You can disable the REST interface if you do not intend to use it (and you > solely use RESTXQ). This can be done using your web server. In our default

Re: [basex-talk] RESTXQ and access blocking

2015-01-14 Thread France Baril
I'm reading this thread and I foresee a problem with our system. Would it be possible to enable/disable REST access on specific databases? For example, block access to our translation database (content being translated), but allow access to approved content (original content and approved translatio

[basex-talk] RESTXQ example of query parameters

2015-01-14 Thread C. M. Sperberg-McQueen
On the documentation page on RESTXQ [1], the following example is given in the section headed 'Query parameters': declare %rest:path("/params") %rest:query-param("id", "{$id}") %rest:query-param("add", "{$add}", 42, 43, 44) function page:params($value as xs:string?, $answer as xs

Re: [basex-talk] RESTXQ and access blocking

2015-01-14 Thread Dirk Kirsten
Hello France, I guess the easiest solution would be to run REST with a user who only has access to the allowed databases. Another way could be blocking the appropriate REST calls for some specific databases (e.g. block http://my.url/rest/not-allowed-database). However, as an arbitrary XQuery co