[MarkLogic Dev General] Redirect To login then Back to Required Page?

2007-10-10 Thread Neil Bradley
I am using application-level security and have created a login page. I have added code to the top of other pages to re-direct to the login page if the user is the default "nobody" user. But, if the login is successful, I then want to re-direct back to the page the user was trying to reach (includin

[MarkLogic Dev General] Remote Databases/Forests Performance

2007-11-01 Thread Neil Bradley
Does anyone have any opinions or experience on performance issues if databases/forests are held on systems on remote servers, and possibly even on remote sites? I have a client who wants to hold the actual data for different clients on separate servers (possibly on each client's site), but I am

[MarkLogic Dev General] xdmp:redirect-response and IE6 bug

2007-11-14 Thread Neil Bradley
Hi, I have developed code to allow users to add bookmarks and comments to documents, and to delete them. Each add or delete operation completes with a redirect to refresh the page (to show the new or removed comment or bookmark), and the URL include a fragment identifier ("#...") at the end to

[MarkLogic Dev General] Needing to wait for document update

2007-11-29 Thread Neil Bradley
Hi, I have an interactive application that lets users build and save complex queries as XML files in the database. When the user adds (or deletes) a parameter to one of the queries, I update the XML file, then re-direct to the code that reads the XML file and presents the updated query. So

RE: [MarkLogic Dev General] Needing to wait for document update

2007-11-29 Thread Neil Bradley
Mary, I dont think it is a caching issue, though I added you suggested code below... In any case, the page redirected to has the following the tag to prevent such problems: Here is the code that deletes a node from the XML file then re-directs to the page that reads the XML file

RE: [MarkLogic Dev General] Needing to wait for document update

2007-11-30 Thread Neil Bradley
General] Needing to wait for document update Neil Bradley wrote: > In any case, the page redirected to has the following the tag to > prevent such problems: > > > > I would not tend to rely on these. It'

RE: [MarkLogic Dev General] Needing to wait for document update

2007-11-30 Thread Neil Bradley
c Mitchell Sent: 30 November 2007 09:51 To: General Mark Logic Developer Discussion Subject: Re: [MarkLogic Dev General] Needing to wait for document update Neil Bradley wrote: > In any case, the page redirected to has the following the tag to > prevent such problems: > > >

[MarkLogic Dev General] Multiple Security Databases?

2007-12-23 Thread Neil Bradley
Hi, I have a client who wants to build a web application that would be made accessible to several of their clients. Each of those clients would have an administrator who would log-in to the site and be able to add more users from that client. These clients are very sensitive about their ow

[MarkLogic Dev General] WebDav Access Problem

2007-12-30 Thread Neil Bradley
Hi, I have two WebDav folders set-up to access two separate projects/databases. Both suddenly stopped working a few days ago without warning or apparent explanation. Re-starting the computer, and MarkLogic, did not help, and my HTTP servers are still working fine so I know the databases themsel

[MarkLogic Dev General] Problem adding my own JAR to MLJAM

2008-05-11 Thread Neil Bradley
Hi, I need to call my own Java application from MarkLogic. Obviously, MLJAM looked like the way to go, so I installed and tested the MLJAM system (using Tomcat because I could not get Jetty to work), including testing that the FOP example worked, so I know that everything is working OK with the

RE: [MarkLogic Dev General] Problem adding my own JAR to MLJAM

2008-05-12 Thread Neil Bradley
It works fine now, thanks. I was so sure that there was some complicated setup requirement that I was missing, that I neglected to check that my code was correct. This is a reminder to always check the simplest things first! Thanks again, Neil. -Original Message- From: [EMAIL PROTECT

[MarkLogic Dev General] Installing ML 4.0 - Hanging at Security and Configuration Upgrade

2008-09-25 Thread Neil Bradley
Hi, I am installing the new version of MarkLogic Server, and everything went smoothly until I got the toe Security and Configuration Upgrade screen. I clicked on "ok" to set that activity off, but that was about 90 minutes ago. I think that nothing happened from the moment I clicked o

RE: [MarkLogic Dev General] Installing ML 4.0 - Hanging at Securityand Configuration Upgrade

2008-09-25 Thread Neil Bradley
atform-specific problem going on.) On Thu, 25 Sep 2008, Neil Bradley wrote: > Hi, > > > > I am installing the new version of MarkLogic Server, and everything went > smoothly until I got the toe Security and Configuration Upgrade screen. > > > > I clicked on "ok"

[MarkLogic Dev General] Memory Exhausted Error

2008-12-31 Thread Neil Bradley
Hi, I have a large XQuery application, including a module that is generated from an XSLT process and is over 1.5 Mb in size. I am sure this is the cause of the following error message I get when I try to access the application: XDMP-MEMORY: Memory exhausted If there was any doubt abou

[MarkLogic Dev General] Cannot delete App Server!

2009-02-09 Thread Neil Bradley
Hi, During experimenting with MarkLogic 4.0, I created a database, created an HTTP server that connected to it, and later deleted the database. I then tried to delete the app server, but could not because I get the following error message as soon as I try to select it in order to delete it.

RE: [MarkLogic Dev General] Cannot delete App Server!

2009-02-09 Thread Neil Bradley
test')) return $config => [0.9-ml] ADMIN-DATABASEINUSE: The following http-servers still refer to this database: test. Which server release and OS are you using? Can you show us the code you're using to delete the database, and to delete the orphaned app server? -- Mike On 2009-

[MarkLogic Dev General] Text Updates Garbage Collection?

2009-10-08 Thread Neil Bradley
Hi, I want to check if there is likely to be any problem with memory exhaustion in the following scenario. I will have text documents stored in a MarkLogic database that I will to update using a large number of consecutive search/replaces, then finally convert to XML. It seems obvious

RE: [MarkLogic Dev General] Text Updates Garbage Collection?

2009-10-09 Thread Neil Bradley
arklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Neil Bradley > Sent: vrijdag 9 oktober 2009 12:57 > To: general@developer.marklogic.com > Subject: [MarkLogic Dev General] Text Updates Garbage Collection? > > Hi, > > > > I want to check if t

RE: [MarkLogic Dev General] RE: Text Updates Garbage Collection? (Neil Bradley)

2009-10-09 Thread Neil Bradley
: [MarkLogic Dev General] RE: Text Updates Garbage Collection? (Neil Bradley) HI Neil, Have you thought about using cts:highlight() to do the replacing of your string values? You basically construct a cts:or-query(()) of all the different values you'd like to replace: let $q := cts:or-query(

RE: [MarkLogic Dev General] RE: General Digest, Vol 64, Issue 27

2009-10-09 Thread Neil Bradley
e string values with a new value. Kelly Message: 2 Date: Fri, 9 Oct 2009 15:37:39 +0100 From: "Neil Bradley" Subject: RE: [MarkLogic Dev General] RE: Text Updates Garbage Collection? (Neil Bradley) To: "'General Mark Logic Developer Discussion'"

[MarkLogic Dev General] File Upload Via HTML Form Problem

2009-11-19 Thread Neil Bradley
Hi, I am trying to use a form to upload an XML file into a MarkLogic database, but when my XQuery code tries to unquote the text in the package it reports that the file is incomplete (it is truncated). I have confirmed this. Here is the form I am using:

[MarkLogic Dev General] Upload Data via Form - Invalid UTF-8 Escape Sequence

2009-12-03 Thread Neil Bradley
Hi, I have a requirement to import data from spreadsheets and databases, using tab-separated text format, which I convert to XML. The problem I am having occurs when the source data comes from Excel and contains a pound symbol (or, I suspect, any character with an ASCII value above 127). In

RE: [MarkLogic Dev General] Upload Data via Form - Invalid UTF-8 Escape Sequence

2009-12-03 Thread Neil Bradley
logic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Neil Bradley Sent: Thursday, December 03, 2009 1:30 AM To: general@developer.marklogic.com Subject: [MarkLogic Dev General] Upload Data via Form - Invalid UTF-8 Escape Sequence Hi, I have a requirement to import data from spreads

RE: [MarkLogic Dev General] Upload Data via Form - Invalid UTF-8Escape Sequence

2009-12-03 Thread Neil Bradley
ic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Neil Bradley > Sent: donderdag 3 december 2009 20:42 > To: 'General Mark Logic Developer Discussion' > Subject: RE: [MarkLogic Dev General] Upload Data via Form - > Invalid UTF-8 Escape Sequence > > Dan

RE: [MarkLogic Dev General] Upload Data via Form - Invalid UTF-8 Escape Sequence

2009-12-03 Thread Neil Bradley
ae l%20Blakeley%22+page:1+mid:dg7nu6sfjchpocm4+state:results -Original Message- From: general-boun...@developer.marklogic.com [mailto:general-boun...@developer.marklogic.com] On Behalf Of Neil Bradley Sent: Thursday, December 03, 2009 12:42 PM To: 'General Mark Logic Developer Discu

RE: [MarkLogic Dev General] Upload Data via Form - Invalid UTF-8Escape Sequence

2009-12-03 Thread Neil Bradley
Geert > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of > Neil Bradley > Sent: vrijdag 4 december 2009 6:14 > To: 'General Mark Logic Developer Discussion' > Subject: RE: [Ma

[MarkLogic Dev General] Problem with ML 4.1-4 and MLJAM

2010-01-21 Thread Neil Bradley
Hi, I am using 4.1-1 and do not have a problem. My client is using 4.1-4 and gets the following error, which I have pinpointed to the MLJAM function here (the second replace): define function jam:_escape-string( $s as xs:string ) as xs:string { (: These replaces funny because arg2 i

RE: [MarkLogic Dev General] Problem with ML 4.1-4 and MLJAM

2010-01-21 Thread Neil Bradley
ly already did, which is why you don't have a problem. http://xqzone.marklogic.com/svn/mljam/releases/ -jh- On Jan 21, 2010, at 1:34 PM, Neil Bradley wrote: > Hi, > > I am using 4.1-1 and do not have a problem. My client is using 4.1-4 and gets the following error, which I hav

[MarkLogic Dev General] export bug in mlcp?

2013-11-13 Thread neil bradley
Hi, Maybe I am missing something, but normal mlcp export works OK, yet when I include "-compress true" I get a ZIP file with many files and directories missing from it. I have established that it is the files and directories with a leading "/" that are omitted (I usually include "/" to make them

Re: [MarkLogic Dev General] export bug in mlcp?

2013-11-13 Thread neil bradley
t;> Van: general-boun...@developer.marklogic.com [mailto:general- >> boun...@developer.marklogic.com] Namens "neil bradley" >> Verzonden: woensdag 13 november 2013 17:56 >> Aan: general@developer.marklogic.com >> Onderwerp: [MarkLogic Dev General] export bug

Re: [MarkLogic Dev General] export bug in mlcp?

2013-11-13 Thread neil bradley
too seriously. Neil. on 13/11/13 5:38 PM, neil bradley wrote: > Thanks, you are right. The problem is Windows built-in ZIP feature. > > The problem is described here... > > http://www.perlmonks.org/?node_id=1045404 > > Thanks again. > > Neil. > > on 13/11/13 5:23

[MarkLogic Dev General] Is fn prefix now optional in library modules?

2014-07-15 Thread neil bradley
Hi, For a long time I have written XQuery code in MarkLogic and seen error messages whenever I forgot to add the “fn:” prefix to XPath functions within library modules. Recently (since moving to ML 7 I believe) I have not seen those errors, so I just thought I was getting better at remembering to

[MarkLogic Dev General] Problems with Processing Instructions

2014-07-30 Thread neil bradley
Hi, I am having two problems with processing instructions. First, in general it seems I cannot create one that is before the root element. I can type this into QC and run it and the result is as expected: I can also have one embedded in an element and again it is preserved in the output:

Re: [MarkLogic Dev General] Problems with Processing Instructions

2014-07-30 Thread neil bradley
Just one more point. I had thought I would solved the first, more minor issue, by wrapping the XML in a document node. But that still does not work... document { } Neil. on 30/7/14 9:51 AM, neil bradley wrote: > Hi, > > I am having two problems with processing instructions. >

Re: [MarkLogic Dev General] Problems with Processing Instructions

2014-07-30 Thread neil bradley
gt; > let $doc := document { > , > > } > > let $parts := MyDoc.xml > let $zip := xdmp:zip-create($parts, text { xdmp:quote($doc) }) (: > quoted! :) > let $save := xdmp:save("/tmp/test.zip", $zip, > utf8) > return "fixed" > > -jh- >

Re: [MarkLogic Dev General] Problems with Processing Instructions

2014-07-30 Thread neil bradley
happening because I'm seeing it work. And definitely to make a valid > expression where there's a PI before the root you need the document node > wrapper to make it one expression not two. > > -jh- > > On Jul 30, 2014, at 5:26 PM, neil bradley wrote: > >> Jas

Re: [MarkLogic Dev General] Problems with Processing Instructions

2014-07-30 Thread neil bradley
cument. > > -jh- > > On Jul 30, 2014, at 5:48 PM, neil bradley wrote: > >> I am not saying that the ZIP solution does not work - I expect that it > does. >> >> I am saying that the solution to construct an XML document in memory does >> not work. >

Re: [MarkLogic Dev General] Problems with Processing Instructions

2014-07-30 Thread neil bradley
4 PM, Mary Holstege wrote: > On Wed, 30 Jul 2014 01:51:12 -0700, neil bradley > wrote: > >> >> But it seems I cannot have a PI before a root element. This does not >> work when I enter it into QC, and I get “unexpected token syntax >> error”: >> >>

[MarkLogic Dev General] xsl:analyze-string grouping bug?

2014-09-08 Thread neil bradley
Hi, I think there is a bug in the MarkLogic implementation of the element. It seems that you cannot have more than one character between regex groups. My original issue was date ranges, where there could be a “-“ or “- “ between the dates, and wasted some some investigating hyphens in character

Re: [MarkLogic Dev General] xsl:analyze-string grouping bug?

2014-09-08 Thread neil bradley
d\d\d)xy(\d\d\d\d)', "$1 and $2" , "i" ) > -> "2004 and 2006" > > So this looks xslt specific > > -Original Message- > From: general-boun...@developer.marklogic.com > [mailto:general-boun...@developer.marklogic.com] On Behalf Of Davi

[MarkLogic Dev General] Searching Standalone Properties Documents

2015-01-19 Thread neil bradley
Hi, I am having a problem working out how (if it is possible) to use cts:search to find specific STANDALONE properties documents (properties that are not associated with an actual document). Every formulation of an XPath that I try either fails to find anything that I know it should find, or says

[MarkLogic Dev General] Unexpected Update Conflict

2015-02-13 Thread neil bradley
I cant see why this causes a XDMP-CONFLICTINGUPDATES error. I am replacing a node in the document and a node in its properties, which I think should not conflict with each other. xdmp:document-insert("/MyDoc.xml", ) , xdmp:document-set-properties("/MyDoc.xml", ) ; xdmp:node-rep

[MarkLogic Dev General] Creating database via REST API in XML Format?

2015-05-29 Thread neil bradley
Hi, I am trying to use the management API to create a database, but the documentation does not make clear what the root element in the body should be, and I cannot find any details elsewhere. This is the service I am calling: POSThttp://localhost:8002/manage/v2/databases I already creat

[MarkLogic Dev General] bug in xdmp:get-request-field?

2015-10-12 Thread neil bradley
I think there is a bug in xdmp:get-request-field() when the parameter contains a # character, even when it is URL-encoded. It seems that the code that returns the parameter value assumes that # terminates the value. And it still happens even if I add another # at the end of the URL. Here is some c

Re: [MarkLogic Dev General] bug in xdmp:get-request-field?

2015-10-12 Thread neil bradley
in place though.. > > Kind regards, > Geert > > On 10/12/15, 10:39 AM, "general-boun...@developer.marklogic.com on behalf > of "neil bradley"" n...@bradley.co.uk> wrote: > >>I think there is a bug in xdmp:get-request-field() when the parameter >&g

Re: [MarkLogic Dev General] bug in xdmp:get-request-field?

2015-10-12 Thread neil bradley
eert > > On 10/12/15, 10:39 AM, "general-boun...@developer.marklogic.com on behalf > of "neil bradley"" n...@bradley.co.uk> wrote: > >>I think there is a bug in xdmp:get-request-field() when the parameter >>contains a # character, even when it is URL-encoded. It seems th

Re: [MarkLogic Dev General] bug in xdmp:get-request-field?

2015-10-12 Thread neil bradley
reproduce on 7.0-5.1, nor on 8.0-3. Do you have any rewriting in > between? > > Kind regards, > Geert > > On 10/12/15, 11:07 AM, ""neil bradley"" wrote: > >>Sorry, in my previous response I meant to say "note", not "not", which >

[MarkLogic Dev General] problem with stored queries for reverse searches when near-query in not-query

2015-12-23 Thread neil bradley
I am having a probkem with using near queries within not queries when the queries are stored and used in a reverse query. This fails, no matter how far apart "bad" and "word" are. The distance value seems to be ignored. The query will not return the stored query even if the words "bad" and "word"

Re: [MarkLogic Dev General] problem with stored queries for reverse searches when near-query in not-query

2015-12-24 Thread neil bradley
se positives, which can turn into false negatives when wrapped in a > not-query. > > Cheers, > Geert > > On 12/23/15, 4:50 PM, "general-boun...@developer.marklogic.com on behalf > of "neil bradley"" n...@bradley.co.uk> wrote: > >>I am having a pro

[MarkLogic Dev General] Is replica forest ever used by its local server?

2016-02-13 Thread neil bradley
Hi, I have researched this question that I was asked today but could not find anything. Suppose we have a server A that has a primary forest A1, and another server B that has a replicate of that forest (lets call it B1). They are both E/D nodes. If server B receives a query that requires reading

[MarkLogic Dev General] how is ID reported by xdmp:host() created?

2016-03-24 Thread neil bradley
Hi, Does anyone know how MarkLogic determines the host ID that is accessed by xdmp:host()? Does it use information from the server or is it just a random number? The reason I am asking is that I am thinking of using the host ID as part of a software licensing scheme. But I need to know how "re

[MarkLogic Dev General] Anyoine seen this error before? : XDMP:FORESTERR

2017-02-10 Thread neil bradley
Hi alll, A forest was unavailable due to the following error: XDMP:FORESTERR: Error in startup of forest .. XDMP:FILESIZES Inconsistent file sizes for E:\Forests\.\\ Ordinals=0, Qualitie=189, UniqueKeys=189, URIKeys=0, Timestamp=189 This was a replica forest. So I thought it would b

Re: [MarkLogic Dev General] Anyoine seen this error before? : XDMP:FORESTERR

2017-02-13 Thread neil bradley
Josten wrote: > Hi Neil, > > I for myself have not seen this error before. If you are entitled for > support, I'd reach out to them.. > > Cheers, > Geert > > From: on behalf of neil bradley > > Reply-To: MarkLogic Developer Discussion > Date: