Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Keith Breinholt
Here is the closest I been able to come to inserting the "document".

xquery version "1.0-ml";
let $doc := xdmp:unquote( xdmp:filesystem-file("C:/xxeInjection.xml") )

return (
$doc,
xdmp:document-insert( "/xxeInjection.xml", $doc)
)

Here is the contents of the xxeInjection.xml file are exactly as you specify 
below.

However, when the file is loaded from the file system it is text and must be 
unquoted ...  xdmp:unquote() strips the invalid HTML DOCTYPE and we get:


;

Could you please show us the code you used to insert the xxe injection 
"document" unmodified?

-Keith

From: Keith Breinholt
Sent: Wednesday, March 14, 2018 11:07 AM
To: general@developer.marklogic.com
Subject: RE: Marklogic XXE and XML Bomb prevention

Perhaps you could show the code that you used to insert the document into the 
database.

I, personally, cannot get your code to work for a number of reasons.  1) having 
both an xml processing statement and an HTML doctype is invalid.  2) Trying to 
assign the "document" to a variable throws an error because of #1. 3) If I try 
to put the "document" below into a file on the file system and load it I cannot 
use xdmp:document-insert() to insert the "document" into the database because 
there isn't a valid node.

There may be something I have overlooked so please share the code you used to 
insert this document into a database.

-Keith

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 
mailto:general-boun...@developer.marklogic.com>>
 On Behalf Of Marcel de Kleine
Sent: Wednesday, March 14, 2018 6:43 AM
To: general@developer.marklogic.com<mailto:general@developer.marklogic.com>
Subject: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

Hello,

We have noticed Marklogic is vulnerable to xxe (entity expansion) and xml bomb 
attacks. When loading an malicious document using xdmp:document-insert it won't 
catch these and cause either loading of unwanted external documents (xxe) and 
lockup of the system (xml bomb).

For example, if I load this document :


   ]>
&xxe;

The file test.xml gets nicely added to the xml document.

See OWASP and others for examples.

This is clearly a xml processing issue so the question is : can we disable 
this? And if so, on what levels would this be possible. Best should be 
system-wide.
( And if you cannot disable this, I think this is something ML should address 
immediately.

Thank you in advance,
Marcel de Kleine, EPAM

Marcel de Kleine
Senior Software Engineer

Office: +31 20 241 6134 x 30530   Cell: 
+31 6 14806016   Email: 
marcel_de_kle...@epam.com<mailto:marcel_de_kle...@epam.com>
Delft, Netherlands   
epam.com<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.epam.com&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=yiUEuOMjMBUR5ccv3Gi1vFMsW6pyEFhtMdzfpZtXd7g&s=a20FyQ4Tr_pZurrcjmEjQUs0A9Nd3NR48cC-wrqcKGA&e=>

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) 
to which it is addressed and contains information that is legally privileged 
and confidential. If you are not the intended recipient, or the person 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited. All unintended recipients are obliged to 
delete this message and destroy any printed copies.

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

2018-03-14 Thread Keith Breinholt
Perhaps you could show the code that you used to insert the document into the 
database.

I, personally, cannot get your code to work for a number of reasons.  1) having 
both an xml processing statement and an HTML doctype is invalid.  2) Trying to 
assign the "document" to a variable throws an error because of #1. 3) If I try 
to put the "document" below into a file on the file system and load it I cannot 
use xdmp:document-insert() to insert the "document" into the database because 
there isn't a valid node.

There may be something I have overlooked so please share the code you used to 
insert this document into a database.

-Keith

From: general-boun...@developer.marklogic.com 
 On Behalf Of Marcel de Kleine
Sent: Wednesday, March 14, 2018 6:43 AM
To: general@developer.marklogic.com
Subject: [MarkLogic Dev General] Marklogic XXE and XML Bomb prevention

Hello,

We have noticed Marklogic is vulnerable to xxe (entity expansion) and xml bomb 
attacks. When loading an malicious document using xdmp:document-insert it won't 
catch these and cause either loading of unwanted external documents (xxe) and 
lockup of the system (xml bomb).

For example, if I load this document :


   ]>
&xxe;

The file test.xml gets nicely added to the xml document.

See OWASP and others for examples.

This is clearly a xml processing issue so the question is : can we disable 
this? And if so, on what levels would this be possible. Best should be 
system-wide.
( And if you cannot disable this, I think this is something ML should address 
immediately.

Thank you in advance,
Marcel de Kleine, EPAM

Marcel de Kleine
Senior Software Engineer

Office: +31 20 241 6134 x 30530   Cell: 
+31 6 14806016   Email: 
marcel_de_kle...@epam.com
Delft, Netherlands   
epam.com

CONFIDENTIALITY CAUTION AND DISCLAIMER
This message is intended only for the use of the individual(s) or entity(ies) 
to which it is addressed and contains information that is legally privileged 
and confidential. If you are not the intended recipient, or the person 
responsible for delivering the message to the intended recipient, you are 
hereby notified that any dissemination, distribution or copying of this 
communication is strictly prohibited. All unintended recipients are obliged to 
delete this message and destroy any printed copies.

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic

2018-02-13 Thread Keith Breinholt
Checking for uniqueness within the database is good, like Geert suggested.
If you want to make them unique across databases and servers assign each
database and each server a unique prefix and prepend that to your "local"
unique id.  That will guarantee that it is unique across your platform.

This is actually a common pattern used by credit card providers, the first
four digits of your credit card are unique to your provider the remaining
digits are semi-random but unique to your card.  That way they can
guaranteed uniqueness across providers without the synchronization card
numbers issued across organizations.

Enjoy.

Keith

On Tue, Feb 13, 2018 at 7:53 AM, Geert Josten 
wrote:

> Hi Abhinav,
>
> sem:uuid-string() generates a 123-bit size random string, which makes
> changes on collisions extremely rare. If you prefer being paranoid, and
> want to check anyhow (there are various ways tocheck if an id or uri is
> taken or not), you’d typically do that in one database only. You could also
> do it across multiple databases, but the more you check and include, the
> slower it obviously gets.
>
> There are some brief notes on this topic in the README of my ml-unique
> library: https://github.com/grtjn/ml-unique
>
> Cheers,
> Geert
>
> From:  on behalf of "
> abhinav.mish...@cognizant.com" 
> Reply-To: MarkLogic Developer Discussion 
> Date: Tuesday, February 13, 2018 at 9:39 AM
> To: "general@developer.marklogic.com" 
>
> Subject: Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic
>
> Hi Geert,
>
>
> Thank you for your response.
>
>
> I guess it is just something we are wondering about. If we changed Servers
> or hardware, would there be a chance for duplicates. There is no other
> specific reason though.
>
>
> Regards,
>
> Abhinav
> --
> *From:* general-boun...@developer.marklogic.com <
> general-boun...@developer.marklogic.com> on behalf of Geert Josten <
> geert.jos...@marklogic.com>
> *Sent:* Tuesday, February 13, 2018 8:55 AM
> *To:* MarkLogic Developer Discussion; general-request@developer.
> marklogic.com
> *Subject:* Re: [MarkLogic Dev General] Unique GUID generation in MarkLogic
>
> Hi Abhinav,
>
> Can you elaborate on what you mean with ‘unique across environments’?
>
> Cheers,
> Geert
>
> From:  on behalf of abhinav
> mishra 
> Reply-To: MarkLogic Developer Discussion 
> Date: Tuesday, February 13, 2018 at 8:40 AM
> To: "general-requ...@developer.marklogic.com"  marklogic.com>, "general@developer.marklogic.com" <
> general@developer.marklogic.com>
> Subject: [MarkLogic Dev General] Unique GUID generation in MarkLogic
>
> Hi All,
>
> We are exploring ways to generate GUIDs. We just want to be sure that the
> GUIDs are unique always and we have a requirement that these GUIDs should
> be even unique across environments. There should not be same GUID in two
> MarkLogic environments
>
> We found sem:uuid-string() function from documentation and seems like a
> good point to start with. However we are not sure if this method returns
> unique across environments.
>
> Can someone guide or provide more information on GUID generation, any
> third party open source library which we can use.
>
> Regards,
> Abhinav
> --
> Sent from my iPhone
> This e-mail and any files transmitted with it are for the sole use of the
> intended recipient(s) and may contain confidential and privileged
> information. If you are not the intended recipient(s), please reply to the
> sender and destroy all copies of the original message. Any unauthorized
> review, use, disclosure, dissemination, forwarding, printing or copying of
> this email, and/or any action taken in reliance on the contents of this
> e-mail is strictly prohibited and may be unlawful. Where permitted by
> applicable law, this e-mail and other e-mail communications sent to and
> from Cognizant e-mail addresses may be monitored.
>
> ___
> General mailing list
> General@developer.marklogic.com
> Manage your subscription at:
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] xdmp:document-get-permissions() not returning permissions...

2017-07-05 Thread Keith Breinholt
Let me correct the first sentence: I have noticed that for some users on a 
system xdmp:document-get-permissions() returns an empty sequence when I know 
for a fact that there are *permissions* on a document or directory.

-Keith

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Keith Breinholt
Sent: Wednesday, July 5, 2017 3:49 PM
To: General Mark Logic Developer Discussion (general@developer.marklogic.com) 

Subject: [MarkLogic Dev General] xdmp:document-get-permissions() not returning 
permissions...

I have noticed that for some users on a system xdmp:document-get-permissions() 
returns an empty sequence when I know for a fact that there are roles on a 
document or directory.  I can confirm this by logging into qconsole with 
different users and running xdmp:document-get-permissions("/").

What is the role or privilege necessary for xdmp:document-get-permissions() to 
return permissions on a directory or document?  Or is this a bug?

Keith L. Breinholt
Enterprise Information Management - Database Platforms Team
"Happy is the man who can recognize in the work of Today a connected portion of 
the work of life, and an embodiment of the work of Eternity." - James Clerk 
Maxwell

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] xdmp:document-get-permissions() not returning permissions...

2017-07-05 Thread Keith Breinholt
I have noticed that for some users on a system xdmp:document-get-permissions() 
returns an empty sequence when I know for a fact that there are roles on a 
document or directory.  I can confirm this by logging into qconsole with 
different users and running xdmp:document-get-permissions("/").

What is the role or privilege necessary for xdmp:document-get-permissions() to 
return permissions on a directory or document?  Or is this a bug?

Keith L. Breinholt
Enterprise Information Management - Database Platforms Team
"Happy is the man who can recognize in the work of Today a connected portion of 
the work of life, and an embodiment of the work of Eternity." - James Clerk 
Maxwell

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] match all values in sequence

2017-06-06 Thread Keith Breinholt
Yes, it is possible but you will need to structure your query slightly 
different.

By passing all of the values to the cts:element-value-query() as a sequence the 
default is to return documents wher ANY of the values match. In effect it is an 
OR relationship when done this way.

To only get documents that have all specified values in the specified element 
use cts:and-query() to wrap individual instances of the 
cts:element-value-query() like this:

   cts:and-query((
  cts:element-value-query(xs:QName('defaultName'), 
'Consumers'),
cts:element-value-query(xs:QName('defaultName'), 'Authors'),
cts:element-value-query(xs:QName('defaultName'),'Users'),
cts:element-value-query(xs:QName('defaultName'), 'Administrators')
   ))

The one caveat is that if there are muiltiple "defaultName" elements this will 
match if a combination of any of the "defaultName" elements match all 
instances.  We can get more specific if you have more than one "defaultName" 
element.

Give it a try.

-Keith

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Gary Larsen
Sent: Tuesday, June 6, 2017 8:26 AM
To: 'General MarkLogic Developer Discussion' 
Subject: [MarkLogic Dev General] match all values in sequence

Sorry if this is a bit off topic, but is it possible with cts or a predicate to 
find a document containing elements which match all values in a sequence?

For example:

cts:element-value-query(xs:QName('defaultName'), 
('Consumers','Authors','Users','Administrators'))

Thanks,
Gary
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] hyphens and cts:element-value-query

2017-03-01 Thread Keith Breinholt
I totally agree with Jason on this.  Matching "exact" values is an expected 
behavior of any database so unless you want to explicitly market MarkLogic as 
something other than a database it makes total sense to make this the default.

-Keith

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Jason Hunter
Sent: Tuesday, February 28, 2017 6:55 PM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] hyphens and cts:element-value-query

* Punctuation and space tokens are also not generally indexed as words in the 
universal index in value queries either. However, as a special exception there 
are terms in the universal index for "exact" value queries (unstemmed, 
case-sensitive, whitespace-sensitive, punctuation-sensitive), so "exact" value 
queries should be resolvable properly from the index, but only if you have 
fast-case-sensitive-searches and fast-diacritic-sensitive-searches enabled in 
the database.

I'm curious, what's the logic where we only index an "exact" value if FCSS and 
FDSS are both on?

Seems like as a database that's increasingly focusing on data beyond textual 
content, the ability to do exact matches (like people are used to with 
relational databases) should be a default feature even if the admin hasn't 
toggled on text-specific things like those.  It's a fairly cheap index, I 
expect, so why not always have it on?

RFE?

-jh-

___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] rest services return xml instead of json

2017-02-03 Thread Keith Breinholt
I am glad changing the code to use xdmp.toJSON() worked for you.

Cheers.

-Keith

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Vinayagam, 
Jothiprakash (Conduent)
Sent: Friday, February 03, 2017 8:06 AM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

After modify the  code return as xdmp.toJSON (result) in rest services( this is 
work ground) . it is working fine both local as well as dev. Seems to problem 
with mark logic  version Dev: 8.0-5.8.

From: Vinayagam, Jothiprakash (Conduent)
Sent: Thursday, February 02, 2017 11:39 AM
To: MarkLogic Developer Discussion
Subject: RE: [MarkLogic Dev General] rest services return xml instead of json

Dev: 8.0-5.8
Local: 8.0-6

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Keith Breinholt
Sent: Thursday, February 02, 2017 11:16 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

What versions of MarkLogic are your local and dev databases running?

-Keith

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Vinayagam, 
Jothiprakash (Conduent)
Sent: Thursday, February 02, 2017 8:02 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

I got it. Strange thing here  if I point to local database it returning json 
and if I point to dev database it returning xml. Its wired. Please advise

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, February 02, 2017 3:55 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

Hi Jothi,

The outputTypes only influences the Content-type header(s), not causes output 
to get formatted automatically. I recommend making sure you really return a 
JSON object in your REST extension (e.g. object-node() or a true JavaScript 
JSON object), or convert your result to JSON string. You might wanna look into 
xdmp.toJSON, xdmp.toJsonString, json.transformToJson (you need to import the 
xqy module of json:transform-to-json for this), or if working with database 
nodes $mynode.toObject()..

Cheers,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of "Vinayagam, Jothiprakash (Conduent)" 
mailto:jothiprakash.vinaya...@conduent.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, February 2, 2017 at 1:17 AM
To: 
"'general@developer.marklogic.com'" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] rest services return xml instead of json

HI all,

We wrote rest service below to get the data. It returns as xml instead of json


http://marklogic.com/xdmp/json<https://urldefense.proofpoint.com/v2/url?u=http-3A__marklogic.com_xdmp_json&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=6YfTNXqiBQCMGKx4NvaIdYqGMpushI7zY8WXEy9wiYk&s=rXl1EvhK0g2o29NJ7tqvC-UjZWw30qoktvKBw8dJYjg&e=>"
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=6YfTNXqiBQCMGKx4NvaIdYqGMpushI7zY8WXEy9wiYk&s=U0sad5WlcmimVjuTeef2yYqowoFmxuJwgHQh-v1We6w&e=>"
 
xmlns:xs="http://www.w3.org/2001/XMLSchema<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=6YfTNXqiBQCMGKx4NvaIdYqGMpushI7zY8WXEy9wiYk&s=C7kO_uQcdpfA6hxbNgvLd4z8DIP3qx1Xn-PZLLjltw8&e=>">
  
  


   
 24309
   
  




function get(context, params) {
context.outputTypes = [];
context.outputTypes.push('application/json');


var date = (typeof params.fromDate === 'undefined') ? null : 
params.fromDate;
var endDate = (typeof params.toDate === 'undefined') ? null : params.toDate;
var doNum = (typeof params.doNum === 'undefined') ? null : params.doNum;
var ldssID = (typeof params.ldssID === 'undefined') ? null : params.ldssID;
console.log("testing" + params.fromDate);
console.log("testing" + params.toDate);


// some code


}



Rest service ca

Re: [MarkLogic Dev General] rest services return xml instead of json

2017-02-02 Thread Keith Breinholt
Are you using the same code, same queries, on both machines?

-Keith

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Vinayagam, 
Jothiprakash (Conduent)
Sent: Thursday, February 02, 2017 9:39 AM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

Dev: 8.0-5.8
Local: 8.0-6

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Keith Breinholt
Sent: Thursday, February 02, 2017 11:16 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

What versions of MarkLogic are your local and dev databases running?

-Keith

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Vinayagam, 
Jothiprakash (Conduent)
Sent: Thursday, February 02, 2017 8:02 AM
To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

I got it. Strange thing here  if I point to local database it returning json 
and if I point to dev database it returning xml. Its wired. Please advise

From: 
general-boun...@developer.marklogic.com<mailto:general-boun...@developer.marklogic.com>
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, February 02, 2017 3:55 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

Hi Jothi,

The outputTypes only influences the Content-type header(s), not causes output 
to get formatted automatically. I recommend making sure you really return a 
JSON object in your REST extension (e.g. object-node() or a true JavaScript 
JSON object), or convert your result to JSON string. You might wanna look into 
xdmp.toJSON, xdmp.toJsonString, json.transformToJson (you need to import the 
xqy module of json:transform-to-json for this), or if working with database 
nodes $mynode.toObject()..

Cheers,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of "Vinayagam, Jothiprakash (Conduent)" 
mailto:jothiprakash.vinaya...@conduent.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, February 2, 2017 at 1:17 AM
To: 
"'general@developer.marklogic.com'" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] rest services return xml instead of json

HI all,

We wrote rest service below to get the data. It returns as xml instead of json


http://marklogic.com/xdmp/json<https://urldefense.proofpoint.com/v2/url?u=http-3A__marklogic.com_xdmp_json&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=6YfTNXqiBQCMGKx4NvaIdYqGMpushI7zY8WXEy9wiYk&s=rXl1EvhK0g2o29NJ7tqvC-UjZWw30qoktvKBw8dJYjg&e=>"
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema-2Dinstance&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=6YfTNXqiBQCMGKx4NvaIdYqGMpushI7zY8WXEy9wiYk&s=U0sad5WlcmimVjuTeef2yYqowoFmxuJwgHQh-v1We6w&e=>"
 
xmlns:xs="http://www.w3.org/2001/XMLSchema<https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2001_XMLSchema&d=DwMFAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=6YfTNXqiBQCMGKx4NvaIdYqGMpushI7zY8WXEy9wiYk&s=C7kO_uQcdpfA6hxbNgvLd4z8DIP3qx1Xn-PZLLjltw8&e=>">
  
  


   
 24309
   
  




function get(context, params) {
context.outputTypes = [];
context.outputTypes.push('application/json');


var date = (typeof params.fromDate === 'undefined') ? null : 
params.fromDate;
var endDate = (typeof params.toDate === 'undefined') ? null : params.toDate;
var doNum = (typeof params.doNum === 'undefined') ? null : params.doNum;
var ldssID = (typeof params.ldssID === 'undefined') ? null : params.ldssID;
console.log("testing" + params.fromDate);
console.log("testing" + params.toDate);


// some code


}



Rest service called from controller:

MLRest.extension('abawdDashboard', {
method: 'GET',
params: { 'rs:fromDate': fromDateRunReport, 'rs:toDate': 
toDateRunReport, 'rs:doNum': $scope.dashboard.doID, 'rs:ldssID': 
$scope.dashboard.ldssID }
}).then(function(response) {
console.log("run report&qu

Re: [MarkLogic Dev General] rest services return xml instead of json

2017-02-02 Thread Keith Breinholt
What versions of MarkLogic are your local and dev databases running?

-Keith

From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Vinayagam, 
Jothiprakash (Conduent)
Sent: Thursday, February 02, 2017 8:02 AM
To: MarkLogic Developer Discussion 
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

I got it. Strange thing here  if I point to local database it returning json 
and if I point to dev database it returning xml. Its wired. Please advise

From: 
general-boun...@developer.marklogic.com
 [mailto:general-boun...@developer.marklogic.com] On Behalf Of Geert Josten
Sent: Thursday, February 02, 2017 3:55 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] rest services return xml instead of json

Hi Jothi,

The outputTypes only influences the Content-type header(s), not causes output 
to get formatted automatically. I recommend making sure you really return a 
JSON object in your REST extension (e.g. object-node() or a true JavaScript 
JSON object), or convert your result to JSON string. You might wanna look into 
xdmp.toJSON, xdmp.toJsonString, json.transformToJson (you need to import the 
xqy module of json:transform-to-json for this), or if working with database 
nodes $mynode.toObject()..

Cheers,
Geert

From: 
mailto:general-boun...@developer.marklogic.com>>
 on behalf of "Vinayagam, Jothiprakash (Conduent)" 
mailto:jothiprakash.vinaya...@conduent.com>>
Reply-To: MarkLogic Developer Discussion 
mailto:general@developer.marklogic.com>>
Date: Thursday, February 2, 2017 at 1:17 AM
To: 
"'general@developer.marklogic.com'" 
mailto:general@developer.marklogic.com>>
Subject: [MarkLogic Dev General] rest services return xml instead of json

HI all,

We wrote rest service below to get the data. It returns as xml instead of json


http://marklogic.com/xdmp/json"
 
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 
xmlns:xs="http://www.w3.org/2001/XMLSchema">
  
  


   
 24309
   
  




function get(context, params) {
context.outputTypes = [];
context.outputTypes.push('application/json');


var date = (typeof params.fromDate === 'undefined') ? null : 
params.fromDate;
var endDate = (typeof params.toDate === 'undefined') ? null : params.toDate;
var doNum = (typeof params.doNum === 'undefined') ? null : params.doNum;
var ldssID = (typeof params.ldssID === 'undefined') ? null : params.ldssID;
console.log("testing" + params.fromDate);
console.log("testing" + params.toDate);


// some code


}



Rest service called from controller:

MLRest.extension('abawdDashboard', {
method: 'GET',
params: { 'rs:fromDate': fromDateRunReport, 'rs:toDate': 
toDateRunReport, 'rs:doNum': $scope.dashboard.doID, 'rs:ldssID': 
$scope.dashboard.ldssID }
}).then(function(response) {
console.log("run report" + response.data);
$scope.indexedObjects = response.data;
$scope.dashBoardData = response.data;
var curYear = new Date();
populateCount(fromDateRunReport, toDateRunReport, 
response.data);
//$rootScope.$emit('rootScope:emit', 'Emit!'); // $rootScope.$on
//$rootScope.$broadcast('rootScope:broadcast', response.data);
//$scope.indexedObjects = indexByAttribute(response.data);
});


Note: same working fine in my local if I deploy dev/test it returning xml 
instead of json

Thanks
Jothi
___
General mailing list
General@developer.marklogic.com
Manage your subscription at: 
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Examples for using Higher Order functions...

2015-03-13 Thread Keith Breinholt
Someone was asking me about using the XQuery 3.0 Higher Order functions in 
MarkLogic and I was looking for some good documentation to send them to.   But 
I was only able to find the references in the Function Reference Guide.  
http://docs.marklogic.com/xdmp/function-values

We have code that implements different types of searches using these but it is 
not code for the faint of heart.

Are there any MarkLogic examples, tutorials or documentation on how to use 
these that I could refer a someone to?

Keith L. Breinholt
Communication Services Porfolio
"Happy is the man who can recognize in the work of Today a connected portion of 
the work of life, and an embodiment of the work of Eternity ..." - James Clerk 
Maxwell


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Preserving the HTML5 doctype

2015-02-19 Thread Keith Breinholt
Mike and Erik,

We should be able to use one or more of the suggested solutions.

Thanks for the help.

- Keith

-Original Message-
From: general-boun...@developer.marklogic.com 
[mailto:general-boun...@developer.marklogic.com] On Behalf Of Erik Hennum
Sent: Thursday, February 19, 2015 7:57 AM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Preserving the HTML5 doctype

Hi, Keith:

Per Justin's (and Mike's) good advice, you should be able to do the conversion 
using a REST API transform with the xdmp:quote() function in an XQuery 
transform or the xsl:output statement in an XSLT transform (or the xdmp.quote() 
function in a JavaScript transform in MarkLogic 8).

A possible XQuery transform:

xquery version "1.0-ml";
module namespace html5ifier = 
"https://urldefense.proofpoint.com/v2/url?u=http-3A__marklogic.com_rest-2Dapi_transform_html5ifier&d=AwICAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=Qm4QZePXyH5FoyitUL3C7NkxwSHyUo0S3T1lKilXtJs&s=VYKlldymsOFpgcOCWiz0EfvglcOHAmQRWX6rPLOc80M&e=
 ";

declare default function namespace 
"https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_2005_xpath-2Dfunctions&d=AwICAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=Qm4QZePXyH5FoyitUL3C7NkxwSHyUo0S3T1lKilXtJs&s=e6MPrrGxzIk9Q_wef4zY6TBh0n8TOP3MFJLy8E7Bh0c&e=
 "; declare option xdmp:mapping "false";

declare function html5ifier:transform(
$context as map:map,
$params  as map:map,
$content as document-node()
) as document-node()
{
map:put($context,"output-type","text/html"),

document{text{
xdmp:quote($content,

html
text/html
html
)
}}
};

You would install the transform by PUT to:


https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8011_v1_config_transforms_html5ifier&d=AwICAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=Qm4QZePXyH5FoyitUL3C7NkxwSHyUo0S3T1lKilXtJs&s=uBOGxULY0VaXeIq68mq7UWicGnnuqW7YAtJglW1Hazs&e=
 

Then, you would GET the persisted XHTML document using the transform


https://urldefense.proofpoint.com/v2/url?u=http-3A__localhost-3A8011_v1_documents-3Furi-3D_path_to_the_doc.xhtml-26transform-3Dhtml5ifier&d=AwICAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=Qm4QZePXyH5FoyitUL3C7NkxwSHyUo0S3T1lKilXtJs&s=wN986U6e0j4IgJDiR9ZrmpaVY5xUbZkJsETRfo1yy5I&e=
 

You might find that you need to make additional changes to the XHTML document 
within the transform (either on the XML before quoting or on the string after 
quoting), but that should get you closer.


Hoping that helps,


Erik Hennum


From: general-boun...@developer.marklogic.com 
[general-boun...@developer.marklogic.com] on behalf of Michael Blakeley 
[m...@blakeley.com]
Sent: Wednesday, February 18, 2015 2:43 PM
To: MarkLogic Developer Discussion
Subject: Re: [MarkLogic Dev General] Preserving the HTML5 doctype

MarkLogic doesn't store doctypes with XML documents. As I understand it this is 
mostly because they don't exist in the XQuery data model: 
https://urldefense.proofpoint.com/v2/url?u=http-3A__www.w3.org_TR_xpath-2Ddatamodel_&d=AwICAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=Qm4QZePXyH5FoyitUL3C7NkxwSHyUo0S3T1lKilXtJs&s=G1ZDoPdzgno6XvHY6BPZ0ienmmXBAJa1teYaqSGZjfc&e=
 

Have you looked at Justin's post 
https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_message_qmsos7np64ohyctp&d=AwICAg&c=z0adcvxXWKG6LAMN6dVEqQ&r=wQ09nIebnRJGH1VgSesPfFnvXo10BKdu-taGZQaoghw&m=Qm4QZePXyH5FoyitUL3C7NkxwSHyUo0S3T1lKilXtJs&s=7I8hzxL1aOqEiQg4q5YxMaF7hI5HQw5L9F5wh3CdaQs&e=
  already? That approach presumes you can run everything through an output 
module in XQuery or XSLT (or maybe even JavaScript now?).

The app-server output options might help too, but I'm not sure if those can 
handle an HTML5 doctype.

-- Mike

> On 18 Feb 2015, at 12:43 , Keith Breinholt  wrote:
>
> We have a requirement to store and retrieve well formed HTML5 documents in 
> MarkLogic using Java API or REST API.
>
> Each document has an '.html' extension and the standard HTML5 doctype 
> .  When documents are inserted, by default they get stored as 
> text documents.
>
> We would like to use all the goodness that MarkLogic provides for search and 
> manipulation of the documents as if they were XHTML, but we need to preserve 
> the HTML5 doctype and .html extension for compatibility with other tools.  I 
> am sure we are not the only ones to have encountered this scenario.
>
> We have tried changing the html mimetype to xml but when documents are

[MarkLogic Dev General] Preserving the HTML5 doctype

2015-02-18 Thread Keith Breinholt
We have a requirement to store and retrieve well formed HTML5 documents in 
MarkLogic using Java API or REST API.

Each document has an '.html' extension and the standard HTML5 doctype .  When documents are inserted, by default they get stored as text 
documents.

We would like to use all the goodness that MarkLogic provides for search and 
manipulation of the documents as if they were XHTML, but we need to preserve 
the HTML5 doctype and .html extension for compatibility with other tools.  I am 
sure we are not the only ones to have encountered this scenario.

We have tried changing the html mimetype to xml but when documents are inserted 
the doctype gets replaced with the XML doctype.  Is there a way to insert and 
retrieve well formed HTML5 documents without losing the doctype?

Keith Breinholt
"If you cannot describe what you are doing as a process, you don't know what 
you are doing." - W. Edwards Deming


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. Any unauthorized 
review, use, disclosure or distribution is prohibited. If you are not the 
intended recipient, please contact the sender by reply email and destroy all 
copies of the original message.

___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] search:search and ordering by attribute on root element

2013-05-02 Thread Keith Breinholt
Instead of doing a "$result//div/@order" you could do
"result/descendant-or-self:div/@order" like Ryan suggested.

On Thu, May 2, 2013 at 11:28 AM, Charles Greer  wrote:

>  Ryan, I've logged a bug for this. I'm not sure what we can do about it,
> but at least we'll be able to give this some serious thought.
>
> Maybe if there's a searchable expression we'll just have to reference the
> doc root in the order by expression.
>
>
> Charles
>
>
>
> On 05/02/2013 10:18 AM, Charles Greer wrote:
>
> Hi Ryan,
>
> I'm able to reproduce the problem you're having.  Take out
> searchable-expression, it works as designed.  Put it in, ordering doesn't
> hit this attribute.
>
> The order by expression for both queries is the same "order by
> xs:string(($result//div/@id)[1])
>
> So I think you're right, that this expression will not catch the right
> attribute if $result doesn't have a child named div.
>
> I'm not sure what to do about this -- maybe put @order on some other
> child?  I can't think of any workaround to immediately help
>
> Charles
>
>
>
>
> On 05/02/2013 09:50 AM, Erik Hennum wrote:
>
> Hi, Ryan:
>
> Any chance your searchable expression could qualify the parent of div
> (with an XPath that includes a predicate that confirms the existence of a
> div child)?
>
>
> Erik Hennum
> 
> From: general-boun...@developer.marklogic.com [
> general-boun...@developer.marklogic.com] on behalf of Ryan Dew [
> ryan.j@gmail.com]
> Sent: Thursday, May 02, 2013 9:38 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] search:search and ordering by
> attribute on root element
>
> Sorry, I used bad terminology. I said root element when I should have said
> the element returned by cts:search. In our example, the searchable
> expression that we set is "//div" so I believe that is what is being used
> to construct a cts:search that looks like "cts:search(//div, ...)" so the
> cts:search is actually returning the div element that matches the search.
> That div happens to also be the element that has the order attribute on it
> and I believe the order by is constructed so that it does "order by
> $result//div/@order" when we really want "order by
> $result/descendant-or-self::div/@order". Since the div elements we are
> looking for aren't root elements we don't have the option to jump up to the
> document level with something like "fn:collection()".
>
> I'm thinking, for now, our best option would probably be to use
> search:parse to build the cts:queries to pass into cts:search and do our
> own ordering logic.
>
> Thanks,
> Ryan Dew
>
>
> On Thu, May 2, 2013 at 10:20 AM, Colleen Whitney <
> colleen.whit...@marklogic.com>
> wrote:
> The other issue that commonly causes sorting to look confusing is when you
> have multiple instances of an element in the same document.  Is there any
> possibility that this is the case with your data?
> 
> From: general-boun...@developer.marklogic.com
> [
> general-boun...@developer.marklogic.com
> ]
> on behalf of Erik Hennum [erik.hen...@marklogic.com
>  ]
> Sent: Thursday, May 02, 2013 6:49 AM
> To: MarkLogic Developer Discussion
> Subject: Re: [MarkLogic Dev General] search:search and ordering by
> attribute on root element
>
> Hi, Ryan:
>
> cts:search() returns documents, so // will match the root element.
>
> In my simple test, search:search() did sort on an attribute on the root
> element.
>
> A few simple things to check -- is the div element in the XHTML
> namespace?  Is there a range index on the attribute in the same collation
> as the query?
>
>
> Erik Hennum
>
> 
> From: general-boun...@developer.marklogic.com
> [
> general-boun...@developer.marklogic.com
> ]
> on behalf of Ryan Dew 
> [ryan.j@gmail.com]
>
> Sent: Wednesday, May 01, 2013 3:02 PM
> To: MarkLogic Developer Discussion
> Subject: [MarkLogic Dev General] search:search and ordering by attribute
> on root element
>
> Hello everyone,
>
> We have scenario where we are trying to sort on an attribute on the root
> element being returned. The simple use case is shown below. The div
> elements that we are returning have an order attribute.
>
> let $options :=
>   xmlns="http://marklogic.com/appservices/search";>
>
>  //div
>  
>  
>  
>  
>  chronology
>  
>
>
> return search:search("faith",$options,1,10)
>
> We don't get the results we would expect. After looking at the
> search:search code it appears that the root element isn't included in the
> XPath expression generated for the order by. It generates

Re: [MarkLogic Dev General] How do I sort by result attribute in search:search()?

2013-03-15 Thread Keith Breinholt
The searchable expression we are using is //div and the documents are
similar to xhtml.



It would appear the problem comes because  elements can have multiple
child  elements  so the sort expression of //div/@order can have
multiple values... which is also the reason $result/@order solves the
problem.


Is there a way to specify sorting on a result attribute?


On Fri, Mar 15, 2013 at 12:14 PM, Danny Sokolsky <
danny.sokol...@marklogic.com> wrote:

>  Hi Keith,
>
> ** **
>
> What do your documents look like, and do you have a searchable
> expression?  And what version of MarkLogic are you running?  If you do have
> a fragment root, you should ideally search at the fragment root, not above
> it.  It seems to do the right thing for me when I use a searchable
> expression.  
>
> ** **
>
> Here is an example that I think gives the answer you are looking for.  For
> this example, I have div as a fragment root, a codepoint range index on
> div/@order,  and a searchable expression of /foo/div.  I am using 6.0-2.2.
> 
>
> ** **
>
> Here is what I did:
>
> ** **
>
> xquery version "1.0-ml";
>
> xdmp:document-insert("/keith1.xml",
>
> 
>
>   hello
>
>   hello
>
> ),
>
> xdmp:document-insert("/keith2.xml",
>
> 
>
>   hello
>
>   hello
>
> );
>
> ** **
>
> import module namespace search = "http://marklogic.com/appservices/search";
> 
>
> at "/MarkLogic/appservices/search/search.xqy";
>
> ** **
>
> let $options := 
>
> http://marklogic.com/appservices/search";>
>
> /foo/div
>
> 
>collation="http://marklogic.com/collation/codepoint";>
>
>
>
>
>
>  
>
> true
>
> 
>
> return
>
> search:search("hello", $options), 
>
> ** **
>
> xdmp:version()
>
> ** **
>
> **ð  ** And here are the results, which seem to be ordered correctly:
>
> ** **
>
>  page-length="10" xmlns:xs="http://www.w3.org/2001/XMLSchema"; xmlns=""
> xmlns:search="http://marklogic.com/appservices/search";>
>
>path="fn:doc("/keith1.xml")/foo/div[2]" score="14336"
> confidence="0.370487" fitness="0.718278">
>
> 
>
>path="fn:doc("/keith1.xml")/foo/div[2]">hello
> 
>
> 
>
>   
>
>path="fn:doc("/keith2.xml")/foo/div[1]" score="14336"
> confidence="0.370487" fitness="0.718278">
>
> 
>
>path="fn:doc("/keith2.xml")/foo/div[1]">hello
> 
>
> 
>
>   
>
>path="fn:doc("/keith1.xml")/foo/div[1]" score="14336"
> confidence="0.370487" fitness="0.718278">
>
> 
>
>path="fn:doc("/keith1.xml")/foo/div[1]">hello
> 
>
> 
>
>   
>
>path="fn:doc("/keith2.xml")/foo/div[2]" score="14336"
> confidence="0.370487" fitness="0.718278">
>
> 
>
>path="fn:doc("/keith2.xml")/foo/div[2]">hello
> 
>
> 
>
>   
>
>   hello
>
>   (for $result in cts:search(/foo/div,
> cts:word-query("hello", ("lang=en"), 1), ("score-logtfidf"), 1) order by
> xs:string(($result//div/@order)[1]) ascending collation "
> http://marklogic.com/collation/codepoint"; return $result)[1 to
> 10]
>
>   
>
> PT0.073S*
> ***
>
> PT0S
>
>
> PT0.007S*
> ***
>
> PT0.081S
>
>   
>
> 
>
> 6.0-2.2
>
> ** **
>
> -Danny
>
> ** **
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *Keith Breinholt
> *Sent:* Thursday, March 14, 2013 2:56 PM
> *To:* General MarkLogic Developer Discussion
> *Subject:* [MarkLogic Dev General] How do I sort by result attribute in
> search:search()?
>
> ** **
>
> We have a search:search() query that searches for  elements in a
> database fragmented on  tags.
>
> We want to sort the  tags based on an @order attribute so we passing
> the sort-order option:
>
> 
> 
> 
>

[MarkLogic Dev General] How do I sort by result attribute in search:search()?

2013-03-14 Thread Keith Breinholt
We have a search:search() query that searches for  elements in a
database fragmented on  tags.

We want to sort the  tags based on an @order attribute so we passing
the sort-order option:






But the results returned are not sorted on the order attribute.

When we turn on debugging with the true option I see in the
SEARCH-FLWOR the order by phrase:

  order by xs:string(($result//div/@order)[1]) ascending

What we actually want is:

  order by xs:string($result/@order) ascending

If I run the cts:query from the SEARCH-FLWOR with that modified order by
phrase it returns results sorted exactly as wanted.

Is there a way to coax search:search() to sort specifically on an attribute
of the result?

-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Sorting a search by distance.

2012-10-17 Thread Keith Breinholt
I am doing a query that returns all items within a given radius but now I
want to short the results by distance from the mid-point.

I see the function cts:distance() that gives the distance between two
points, but since that is a calculated value can I plug that into a
cts:search() or search:search() to sort the results by distance?

Or is there a better way?

-- 
Keith
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] unable to install XQDebug

2012-02-21 Thread Keith Breinholt
Geert is correct, if you move the xqdebug folder to
/opt/MarkLogic/Apps/xqdebug/ you should be able to run the install script.

On Tue, Feb 21, 2012 at 3:43 AM, Geert Josten  wrote:

> Hi Nivas,
>
> Before MarkLogic 5, the Docs folder used to run under port 8000, with a
> small sandbox and some sample documents. These have been moved to
> elsewhere, and now the App-services run under port 8000. The quickest
> solution would be to move the xqdebug folder from under Docs/ to Apps/.
> >From there I expect you can continue as you normally would.
>
> Kind regards,
> Geert
>
> > -Oorspronkelijk bericht-
> > Van: general-boun...@developer.marklogic.com [mailto:general-
> > boun...@developer.marklogic.com] Namens Seenivasan Gunabalan
> > Verzonden: dinsdag 21 februari 2012 11:01
> > Aan: general@developer.marklogic.com
> > Onderwerp: [MarkLogic Dev General] unable to install XQDebug
> >
> > Hi,
> >
> > I have issues in installing XQDebug with MarkLogic 5.0 free version in
> > Ubuntu Linux 11.10.
> >
> > * I downloaded XQDebug
> > * I extracted XQDebug.zip in to /opt/MarkLogic/Docs/xqdebug/ folder
> > * while i tried to access
> > http://localhost:8000/xqdebug/install/install.xqy , its giving me
> >
> >
> > "
> > Page Not Found
> > Your request for /xqdebug/install/install.xqy was not found.
> > Please try another location or return to the Application Services page.
> "
> >
> > Could some one help me in fixing the issue?
> >
> > Thanks,
> > Nivas
> > ___
> > General mailing list
> > General@developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>



-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Server field value different across nodes in the cluster

2012-02-08 Thread Keith Breinholt
MarkLogic server fields are specific to the host.


If you have a load balancer in front of the MarkLogic servers one solution
is to set the session sticky bit so that a client session always goes to
the same MarkLogic host.


On Wed, Feb 8, 2012 at 12:02 PM, Abhishek53 S  wrote:

>
> Hi Folks,
>
> I have 4 nodes [All mixed DNode+ENode] across cluster. I am using server
> fields to store a map that consists of user-id and registered query-id
> mapping. When I am trying to get server field value by pointing one node of
> the cluster it is returning different registered query id than the others.
> Is it possible that the server fields values are not in sync across nodes
> in the cluster - As per my understanding for same application server the
> value remain same across nodes.
>
> Is it possible to see the server field value from CQ.
>
> Abhishek Srivastav
> Systems Engineer
> Tata Consultancy Services
> Cell:- +91-9883389968
> Mailto: abhishek5...@tcs.com
> Website: http://www.tcs.com
> 
> Experience certainty.IT Services
>Business Solutions
>Outsourcing
> 
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] XQDebug version 1.0.5 is available

2011-11-07 Thread Keith Breinholt
XQDebug has been updated to support the new MarkLogic 5.0-1 release.

You can download it from
http://code.google.com/p/xqdebug/downloads/detail?name=xqdebug-1.0.5.zip

As always, there are instructions in the README.txt for installation and
notes on changes in this release.

Please note that it is still necessary to run the install twice before
using the debugger.

Enjoy,

-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Password Regex

2011-10-06 Thread Keith Breinholt
Thanks Walter.

On Thu, Oct 6, 2011 at 5:51 PM, Walter Underwood <
walter.underw...@marklogic.com> wrote:

> I'd do this with a series of individual tests, rather than a regex. Fails
> if it is too short, fails if does not have a numeral, etc.
>
> The password checking plugins are designed to work this way, with a set of
> individual, simple tests.
>
> wunder
> Walter Underwood
> Server Engineering, MarkLogic
>
> On Oct 6, 2011, at 4:35 PM, Keith Breinholt wrote:
>
> > I'd like to use fn:matches() to validate that a password has an
> acceptable set of characters.
> >
> > A typical regex for password validation is
> "/^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$/"
> >
> > However, if I use that regex like this
> >
> >   fn:matches( $pwd,
> "^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$" )
> >
> > It throws an invalid regular expression exception.
> >
> > Is there another expression that I could use to validate length, upper
> and lower case letters and at least on number?
> >
> > --
> > Keith
> >
> > ___
> > General mailing list
> > General@developer.marklogic.com
> > http://developer.marklogic.com/mailman/listinfo/general
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>



-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] Password Regex

2011-10-06 Thread Keith Breinholt
I'd like to use fn:matches() to validate that a password has an acceptable
set of characters.

A typical regex for password validation is "/
^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$/"

However, if I use that regex like this

  fn:matches( $pwd, "
^(?=^.{6,}$)((?=.*[A-Za-z0-9])(?=.*[A-Z])(?=.*[a-z]))^.*$" )

It throws an invalid regular expression exception.

Is there another expression that I could use to validate length, upper and
lower case letters and at least on number?

-- 
Keith
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] Adding custom properties\attributes to users

2011-09-27 Thread Keith Breinholt
#1 is okay if you are sure the size and scope of your user attributes will
never grow beyond the size of the description field and you don’t care to
use the description field for a variable length description.

#3 is a non-starter because it means you potentially eliminate the ability
of upgrading MarkLogic to new revisions.

 #2 is what we've done in the past, but I am curious about other
suggestions.


-Keith

__

On Tue, Sep 27, 2011 at 1:20 PM, seme...@hotmail.com wrote:

>  If we want to add custom properties or attributes to a user account in
> MarkLogic (beyond username and description), it seems like we have the
> following options:
>
> 1. Put the values in the description field tokenized (Bob | Accounting |
> 555-1223 | b...@mail.com)
> 2. Use a separate XML file in the content database
> 3. Add properties to the XML file for the user in the Security DB
>
> #1 is good except there is a limit to the number of characters. #2 adds the
> overhead of making sure the Securty DB and "extended user info" XML files in
> the content DB are always in sync. #3 starts tinkering with the Security DB
> which sounds like something to avoid.
>
> I'm hoping there are other options. What do you all recommend?
>
> thanks,
> Ryan
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?

2011-09-06 Thread Keith Breinholt
We've used this for a couple applications and it does what we need... if
you're willing to ignore the warnings.

On Tue, Sep 6, 2011 at 4:00 PM, Danny Sokolsky  wrote:

> This does produce warnings but seems to work nonetheless:
>
> ** **
>
> xquery version "1.0-ml";
>
> ** **
>
> let $htmlstring := 
>
> '
>
> blah
>
> blah
>
> hello
>
> '
>
> return
>
> xdmp:tidy($htmlstring, 
>
> 
>
>   header section
>
>   header section
>
> )
>
> ** **
>
> *From:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *On Behalf Of *
> seme...@hotmail.com
> *Sent:* Tuesday, September 06, 2011 2:38 PM
>
> *To:* general@developer.marklogic.com
> *Subject:* Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up
> HTML5?
>
> ** **
>
> I tried that but I get this error:
>
> 
is not approved by > W3C > >
is not approved by > W3C > > ** ** > -- > > Date: Tue, 6 Sep 2011 15:31:22 -0600 > From: lisph...@gmail.com > To: general@developer.marklogic.com > Subject: Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up > HTML5? > > You can add elements and attributes that are new to HTML5 as part of the > , > and options. > > On Tue, Sep 6, 2011 at 3:03 PM, Geert Josten > wrote: > > Hi Ryan, > > > > Good question! J I am afraid HTML5 is a bit too new for the current tidy > in MarkLogic Server. Let’s hope it gets upgraded soon. > > > > Meanwhile you could pass in an input-xml option, but that requires input to > be well-formed I guess, and I think it disables several HTML cleanup options > as well. Not sure this will work for you.. > > > > Kind regards, > > Geert > > > > *Van:* general-boun...@developer.marklogic.com [mailto: > general-boun...@developer.marklogic.com] *Namens *seme...@hotmail.com > *Verzonden:* dinsdag 6 september 2011 22:05 > *Aan:* general@developer.marklogic.com > *Onderwerp:* [MarkLogic Dev General] How to get xdmp:tidy() to tidy up > HTML5? > > > > With the new doctype and elements that are part of HTML5, how do you get > xdmp:tidy() to recognize those in HTML5? > If I have an html page that contains something like: > > > > > > blah > > blah > > and then try something like: xdmp:tidy(xdmp:document-get("home.html")) > I get errors like: > > is not recognized! discarding unexpected > > is not recognized! discarding unexpected > > Are there some options I can send to xdmp:tidy() to get it to handle it? > > > thanks, > Ryan > > > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > > > > > -- > Keith > "Do what you can, with what you have, where you are." - Theodore Roosevelt > > ___ General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > > -- Keith "Do what you can, with what you have, where you are." - Theodore Roosevelt ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?

2011-09-06 Thread Keith Breinholt
If conforming XML output is what you are looking for you should also turn
off  and ?

On Tue, Sep 6, 2011 at 3:38 PM, seme...@hotmail.com wrote:

>  I tried that but I get this error:
>
> 
is not approved by W3C >
is not approved by W3C > > > > -- > Date: Tue, 6 Sep 2011 15:31:22 -0600 > From: lisph...@gmail.com > To: general@developer.marklogic.com > Subject: Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up > HTML5? > > > You can add elements and attributes that are new to HTML5 as part of the > , > and options. > > On Tue, Sep 6, 2011 at 3:03 PM, Geert Josten wrote: > > Hi Ryan, > > ** ** > > Good question! J I am afraid HTML5 is a bit too new for the current tidy > in MarkLogic Server. Let’s hope it gets upgraded soon. > > ** ** > > Meanwhile you could pass in an input-xml option, but that requires input to > be well-formed I guess, and I think it disables several HTML cleanup options > as well. Not sure this will work for you.. > > ** ** > > Kind regards, > > Geert > > ** ** > > *Van:* general-boun...@developer.marklogic.com [mailto: > general-boun...@developer.marklogic.com] *Namens *seme...@hotmail.com > *Verzonden:* dinsdag 6 september 2011 22:05 > *Aan:* general@developer.marklogic.com > *Onderwerp:* [MarkLogic Dev General] How to get xdmp:tidy() to tidy up > HTML5? > > ** ** > > With the new doctype and elements that are part of HTML5, how do you get > xdmp:tidy() to recognize those in HTML5? > If I have an html page that contains something like: > > > > > > blah > > blah > > and then try something like: xdmp:tidy(xdmp:document-get("home.html")) > I get errors like: > > is not recognized! discarding unexpected > > is not recognized! discarding unexpected > > Are there some options I can send to xdmp:tidy() to get it to handle it? > > > thanks, > Ryan > > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > > > > > -- > Keith > "Do what you can, with what you have, where you are." - Theodore Roosevelt > > ___ General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > > ___ > General mailing list > General@developer.marklogic.com > http://developer.marklogic.com/mailman/listinfo/general > > -- Keith "Do what you can, with what you have, where you are." - Theodore Roosevelt ___ General mailing list General@developer.marklogic.com http://developer.marklogic.com/mailman/listinfo/general

Re: [MarkLogic Dev General] How to get xdmp:tidy() to tidy up HTML5?

2011-09-06 Thread Keith Breinholt
You can add elements and attributes that are new to HTML5 as part of
the ,
 and  options.

On Tue, Sep 6, 2011 at 3:03 PM, Geert Josten wrote:

> Hi Ryan,
>
> ** **
>
> Good question! J I am afraid HTML5 is a bit too new for the current tidy
> in MarkLogic Server. Let’s hope it gets upgraded soon.
>
> ** **
>
> Meanwhile you could pass in an input-xml option, but that requires input to
> be well-formed I guess, and I think it disables several HTML cleanup options
> as well. Not sure this will work for you..
>
> ** **
>
> Kind regards,
>
> Geert
>
> ** **
>
> *Van:* general-boun...@developer.marklogic.com [mailto:
> general-boun...@developer.marklogic.com] *Namens *seme...@hotmail.com
> *Verzonden:* dinsdag 6 september 2011 22:05
> *Aan:* general@developer.marklogic.com
> *Onderwerp:* [MarkLogic Dev General] How to get xdmp:tidy() to tidy up
> HTML5?
>
> ** **
>
> With the new doctype and elements that are part of HTML5, how do you get
> xdmp:tidy() to recognize those in HTML5?
> If I have an html page that contains something like:
>
> 
>
> 
>
> blah
>
> blah
>
> and then try something like: xdmp:tidy(xdmp:document-get("home.html"))
> I get errors like: 
>
>  is not recognized! discarding unexpected 
>
>  is not recognized! discarding unexpected 
>
> Are there some options I can send to xdmp:tidy() to get it to handle it?
>
>
> thanks,
> Ryan
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


Re: [MarkLogic Dev General] How to query a attribute of a generic node...

2011-08-19 Thread Keith Breinholt
Excellent.   That works great for strings which gets me half way.

The next hurdle is that we have some dates stored in attributes that we need
to query ranges for as well.  But if you put a function like
fn:starts-with() into the filter expression to grab the date portion of the
dateTime the expression becomes unsearchable.

We may need to pull the date values into an element.

Thanks for the suggestion Abhishek.

-Keith

On Fri, Aug 19, 2011 at 2:27 PM, Abhishek53 S  wrote:

> Hi Keith
>
> I guess the below givent query will help you .
>
> *xquery version "1.0-ml";*
> *import module namespace search = "http://marklogic.com/appservices/search
> "*
> *at "/MarkLogic/appservices/search/search.xqy";*
> *
> *
> *search:search("kolkata",*
> *http://marklogic.com/appservices/search";>*
> *  /element()[@lang =
> "eng"]*
> *)*
>
> Regards
> Abhishek Srivastav
> Tata Consultancy Services
> Cell:- +91-9883389968
> Mailto: abhishek5...@tcs.com
> Website: http://www.tcs.com
> 
> Experience certainty. IT Services
> Business Solutions
> Outsourcing
> ____
>
> -general-boun...@developer.marklogic.com wrote: -
>
> To: general@developer.marklogic.com
> From: Keith Breinholt 
> Sent by: general-boun...@developer.marklogic.com
> Date: 08/20/2011 01:17AM
> Subject: [MarkLogic Dev General] How to query a attribute of a generic
> node...
>
>
> I want to display a set of documents that have a common attribute on the
> root node.  However, the root nodes of the documents can have any tag name
> such as , , ...
>
> I can do this easily with XPath similar to this
>
>   element()/@lang[. eq 'eng']
>
> However, I'd like to use search:search for pagination and sorting of
> results.  The problem is I don't know a way to specify a generic parent for
> an attribute in a cts query.
>
> Any ideas or help is very appreciated.
>
> --
> Keith
> "Do what you can, with what you have, where you are." - Theodore Roosevelt
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>
> =-=-=
> Notice: The information contained in this e-mail
> message and/or attachments to it may contain
> confidential or privileged information. If you are
> not the intended recipient, any dissemination, use,
> review, distribution, printing or copying of the
> information contained in this e-mail message
> and/or attachments to it are strictly prohibited. If
> you have received this communication in error,
> please notify us by reply e-mail or telephone and
> immediately and permanently delete the message
> and any attachments. Thank you
>
>
>
> ___
> General mailing list
> General@developer.marklogic.com
> http://developer.marklogic.com/mailman/listinfo/general
>
>


-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] How to query a attribute of a generic node...

2011-08-19 Thread Keith Breinholt
I want to display a set of documents that have a common attribute on the
root node.  However, the root nodes of the documents can have any tag name
such as , , ...

I can do this easily with XPath similar to this

  element()/@lang[. eq 'eng']

However, I'd like to use search:search for pagination and sorting of
results.  The problem is I don't know a way to specify a generic parent for
an attribute in a cts query.

Any ideas or help is very appreciated.

-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] What is the overhead of locking a document?

2011-05-25 Thread Keith Breinholt
Does xdmp:aquire-lock( $url, ‘exclusive’) acquire a physical lock (disk
write) on a file or is a memory operation?

 I’ve been looking for a way to create a semaphore in XQuery.  Using a
document and acquiring a lock achieves that goal but if it acquiring the
lock is a physical lock it will require approximately 4 to 8 milliseconds to
acquire and a similar amount of time to release.  Which translates to 8-16
milliseconds for a semaphore style operation.

I’m assuming xdmp:acquire-lock() uses a memory operation, but I need to
know.
-- 
Keith
"Do what you can, with what you have, where you are." - Theodore Roosevelt
___
General mailing list
General@developer.marklogic.com
http://developer.marklogic.com/mailman/listinfo/general


[MarkLogic Dev General] RE: Creating file system directories with XQuery...

2008-09-12 Thread Keith Breinholt
For reference here is the code I'm running in a CQ session.

xquery version "0.9-ml"
define variable $module-options as element() {
 {

element isolation { "different-transaction" },

element database { xdmp:modules-database() },

element modules { xdmp:modules-database() },

element root { xdmp:modules-root() }
} 
}
declare namespace zip="xdmp:zip"

let $q := 'xquery version "0.9-ml"
   declare namespace zip="xdmp:zip"
   define variable $zipper as xs:string external
   let $zip := xdmp:document-get($zipper,
   
 binary
   )
   let $root := fn:concat(xdmp:modules-root(),"Haze/")
   let $zlist :=
   for $i in fn:data(xdmp:zip-manifest( $zip )/zip:[EMAIL 
PROTECTED]:encrypted="false"])
   let $j := fn:concat($root, fn:replace($i, "\\", "/"))
   order by $j
   return $j
   let $list :=
   fn:distinct-values(
for $name in $zlist
return (
if (fn:ends-with($name, "/")) then 
(xdmp:missing-directories($name))
else ($name)
)
   )
for $name in $list
order by $name
return (
 if (fn:ends-with($name, "/")) then (
 xdmp:directory-create($name)
 )
 else (
 xdmp:save($name, xdmp:zip-get($zip, 
fn:substring-after($name, $root)))
 )
 , $name
)
  '

return xdmp:eval($q,
  (xs:QName('zipper'), "D:\Archive\MarkLogic\cms.zip"),
   $module-options)

From: Keith Breinholt
Sent: Thursday, September 11, 2008 5:16 PM
To: 'general@developer.marklogic.com'
Subject: Creating file system directories with XQuery...

Is it possible to create a directory on the file system from XQuery?

I'm having issues trying to copy/deploy XQuery modules from a zip file and 
saving it into the modules "database" when the modules database is set to 
'filesystem'.

Specifically, the xdmp:save() function does not auto-create directories like it 
does for a database, and xdmp:directory-create() does not create directories on 
the file system either.  In fact xdmp:directory-create() doesn't throw an error 
when it fails...it just returns as if it succeeded.  (Is this a bug?)

If I point my modules to 'filesystem' is there any way of creating a directory 
or am I stuck calling out to java or C#.

Keith L. Breinholt
ICS - Platform Services
801-240-7161 - w
801-602-7970 - c
"Do what you can, with what you have, where you are." - Theodore Roosevelt

--
NOTICE: This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized review, 
use, disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message.___
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general


[MarkLogic Dev General] Creating file system directories with XQuery...

2008-09-11 Thread Keith Breinholt
Is it possible to create a directory on the file system from XQuery?

I'm having issues trying to copy/deploy XQuery modules from a zip file and 
saving it into the modules "database" when the modules database is set to 
'filesystem'.

Specifically, the xdmp:save() function does not auto-create directories like it 
does for a database, and xdmp:directory-create() does not create directories on 
the file system either.  In fact xdmp:directory-create() doesn't throw an error 
when it fails...it just returns as if it succeeded.  (Is this a bug?)

If I point my modules to 'filesystem' is there any way of creating a directory 
or am I stuck calling out to java or C#.

Keith L. Breinholt
ICS - Platform Services
801-240-7161 - w
801-602-7970 - c
"Do what you can, with what you have, where you are." - Theodore Roosevelt

--
NOTICE: This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized review, 
use, disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message.___
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general


[MarkLogic Dev General] Avoiding conflicting document-insert()

2007-12-13 Thread Keith Breinholt
I'm trying to do a number of updates in successive order and then write 
information to a history file.
 
My problem is that when I write the history I don't know if the history file 
has already been created.
 
Here is the code path:
 
  if(xdmp:estimate(fn:doc($history-uri))) then
  xdmp:node-insert-child(fn:doc($history-uri)/cms:events,$event)
  else
  xdmp:document-insert( $history-uri,
{$event},

(xdmp:permission("cms","read"),xdmp:permission("cms","update")),
"http://ldschurch.org/cms/history";
   )

The problem is that I am getting conflicting document-inserts().  Apparently 
xdmp:estimate(fn:doc()) isn't absolute at determining if a document exists or 
not.
 
Is there an absolute way to know if a document exists so that I don't try to 
create it again?
 
Thanks,
 
Keith L. Breinholt
ICS - Platform Team
"Do what you can, with what you have, where you are." -Theodore Roosevelt

--
NOTICE: This email message is for the sole use of the intended recipient(s) and 
may contain confidential and privileged information. Any unauthorized review, 
use, disclosure or distribution is prohibited. If you are not the intended 
recipient, please contact the sender by reply email and destroy all copies of 
the original message.___
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general


[MarkLogic Dev General] I've been playing with DAVExplorer to experiment with the WebDAV implementation but I've noticed t

2007-10-25 Thread Keith Breinholt


I've been playing with DAVExplorer to experiment with the WebDAV implementation but I've noticed that the versioning portion of DAV doesn't seem to be there.  So now I'm trying to figure out how to implement versioning of data on CRUD accesses.  The properties pages are there but do triggers fire on CRUD operations via WebDAV?
 
Thanks for any help.
 
Keith L. BreinholtICS - Platform Team"Do what you can, with what you have, where you are." -Theodore Roosevelt
NOTICE: This email message is for the sole use of the intended recipient(s) and may contain confidential and privileged information. Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message.
___
General mailing list
General@developer.marklogic.com
http://xqzone.com/mailman/listinfo/general