Paul Vanderveen | 17 Apr 22:40 2014

ACL's with ACE's for Groups that were removed

We noticed that when you remove a group that any ACE’s that had the group listed as a subject of the ACE are still active. 

This leaves orphaned ACE’s in our resource ACL’s, which sometimes looks odd. 

 

I have 2 questions:

1.       Are there any plans down the road to remove ACE’s for non-existent groups?

2.       Is there any way to run a query that will return all ACE’s where the ACE subject is a particular group or user?

 

We would like to run #2 when we remove a group from our application, then we could go through and remove the affected ACE’s.

 

Paul Vanderveen

TerraXML, Inc.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Dan McCreary | 17 Apr 01:31 2014
Picon

Changes between eXist 2.0 and 2.1 that impact XSL-FO printing of LaTeX equations on Macs

Hi folks,

I am requesting some help debugging why XSL-FO equations are not working in some cases in eXist 2.1 on the Mac.

The problem seems to have occurred between eXist 2.0 and eXist 2.1.  On some systems (only Macs so far) the feature that allows us to render LaTeX equations within XSL-FO files seems to have stopped working.  We have a simple unit test that usually renders a LaTeX equation that no longer works.

What is odd is that it DOES work on eXist 2.1 on Windows, and it DOES work on eXist 2.0 on all systems that we are testing (mac, unix and windows), but it does NOT work on Mac systems that are running eXist 2.1.

I realize that most of you are not using eXist for typesetting equations, but it is really cool feature and if you would like to try it out you can add two jar files to your $EXIST_HOME/lib/extensions:


and run the XQuery unit test here:


You can copy this unit test file into /db/tmp/render-equation-in-pdf.xq

If you system is working you should get a equation in a PDF file.

Can anyone suggest any reason why this would stop working but only on some systems?

I have compared the Java versions and we have the equation rendering working on both 1.6 and 1.7.  I have also checked that the fop.jar file has remained unchanged.

Thanks for any help!

- Dan

--
Dan McCreary
http://danmccreary.com
Co-author: Making Sense of NoSQL
office: (952) 931-9198
cell: (612) 986-1552
skype: dmccreary47
------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Guillaume Mella | 16 Apr 17:13 2014
Picon
Picon

Limit duration of http requests applying timeout

Hi,

I need to limit duration of multiples http get requests but did not find 
any solution.

Httpclient module does not seem to provide configuration API but 
http://expath.org/spec/http-client specs refers to timeout.

Here comes my code ( executed from eXide ) which does not responds 
properly :(
http:send-request(<http:request href="http://no.rep.ly/" method="get" 
timeout="1"/>)

Do you know any way to limit the duration of http request (and why not 
any other kind of process) ?

Thanks in advance,
Regards,
--
Guillaume

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Misztur, Chris | 16 Apr 02:17 2014

Generate barcode with ZXing

Generating barcode with ZXing.
(include core.jar and javase.jar)


xquery version "3.0";

module namespace bc="http://haptixgames.com/barcode-test";

declare namespace java-zxing-BitMatrix = "java:com.google.zxing.common.BitMatrix";
declare namespace java-zxing-Code128Writer = "java:com.google.zxing.oned.Code128Writer";
declare namespace java-zxing-BarcodeFormat = "java:com.google.zxing.BarcodeFormat";
declare namespace java-zxing-MatrixToImageWriter = "java:com.google.zxing.client.j2se.MatrixToImageWriter";
declare namespace java-io-ByteArrayOutputStream = "java:java.io.ByteArrayOutputStream";
declare namespace javax-imageio-ImageIO = "java:javax.imageio.ImageIO";

declare 
    %rest:GET
    %rest:path("/bc/barcode1") 
    (:%output:method("binary")
    %output:media-type("image/png"):)
function bc:barcode1()
{
    let $m_code128Writer := java-zxing-Code128Writer:new()
    let $m_bitMatrix := java-zxing-Code128Writer:encode($m_code128Writer, 'Hello World', java-zxing-BarcodeFormat:valueOf("CODE_128") , 440, 48, ())
    let $m_bufferedImage := java-zxing-MatrixToImageWriter:toBufferedImage($m_bitMatrix)
    let $m_outputStream := java-io-ByteArrayOutputStream:new()
    let $m_imageio := javax-imageio-ImageIO:write($m_bufferedImage, 'png', $m_outputStream)
    
    let $v_flush := java-io-ByteArrayOutputStream:flush($m_outputStream)
    let $m_imageBytes := java-io-ByteArrayOutputStream:toByteArray($m_outputStream)
    let $v_close := java-io-ByteArrayOutputStream:close($m_outputStream)
    
    (:return 
    (
        <rest:response> 
            <http:response status="200"> 
                <http:header name="Content-Language" value="en"/> 
                <http:header name="Content-Type" value="image/png"/> 
            </http:response> 
        </rest:response>, 
        $m_imageBytes
    ):)
    
    let $resource := xmldb:store('/db/apps/cmisztur', util:uuid() || '.png', $m_imageBytes, 'image/png')
    
    return 
    (
        <rest:response> 
            <http:response status="200"> 
                <http:header name="Content-Type" value="text/plain"/> 
            </http:response> 
        </rest:response>, 
        'http://server:8080/exist/rest'||$resource
    )
};



The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author.

Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Misztur, Chris | 16 Apr 02:11 2014

RESTXQ : output image/png

Hello.

I want to return 'image/png' from my restXQ function and I found this discussion [1].
I see these fixes are pre 18721, but adding the following serialization options removes the resource function from the RestXQ registry.

Am I missing something?

 %output:method("binary")
 %output:media-type("image/png")



-c


The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author.

Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Misztur, Chris | 15 Apr 21:38 2014

Barcode4J

Is anyone using Barcode4J [1]  from eXist?

 

I tried messing around by calling Java from XQuery but I was wondering if the Saxon implementation would be the correct one to use.

 

[1] http://barcode4j.sourceforge.net/2.1/

 

-c



The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author.

Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Misztur, Chris | 15 Apr 20:08 2014

User libs

Can C:\eXist-db\lib\user contain subfolders?

 



The contents of this message may be privileged and confidential. Therefore, if this message has been received in error, please delete it without reading it. Your receipt of this message is not intended to waive any applicable privilege. Please do not disseminate this message without the permission of the author.

Please consider the environment before printing this e-mail

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Matej Durco | 14 Apr 13:17 2014
Picon
Picon

git, svn modules - exist + code repository

Hello,

we have hard time finding a satisfactory workflow for developing our 
xquery app in exist and maintaining the code in a git repository.

What we've tried until now:

There is the eXgit plugin https://github.com/shabanovd/eXgit
but it does not seem to be really stable/usable.

We were able to checkout a git-repo via the subversion module ("every 
git-repo is also a subversion repo"),
however subversion:status('target-dir') insists, that the checked out 
files are unversioned:

<status>
  ....
     <entry status="unversioned" locked="false" working-revision="-1" 
last-changed-revision="?" author="?" 
path="/db/test/cs-xsl-svn/trunk/utils.xsl"/>
     <entry status="unversioned" locked="false" working-revision="-1" 
last-changed-revision="?" author="?" path="/db/test/cs-xsl-svn/trunk"/>
     <entry status="incomplete" locked="false" working-revision="57" 
last-changed-revision="?" author="?" path="/db/test/cs-xsl-svn"/>
</status>

We were also unable to connect from Windows to exist via WebDAV in a 
stable way

Can anybody share their experience / approach?

Best,
Matej

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
mountainbiker | 15 Apr 12:44 2014
Picon

scheduled "user" job won't run even with xmldb:login

In conf.xml, I have a "user" job defined calling an XQeury.  This XQuery has
xmldb:login as "admin" yet schedule.log is reporting "Permission denied for
the scheduling user: guest! Unscheduling UserXQueryJob."

The work within the job is not even doing an effort that would need these
elevated priviliges and could/should be able to run as a guest.

Per the eXist documentation "If the job is written in XQuery (not suitable
for system jobs) then this should be a path to an XQuery stored in the
database. e.g. /db/myCollection/myJob.xql XQuery job's will be launched
under the guest account initially, although the running XQuery may switch
permissions through calls to xmldb:login()."

/*This job runs fine under 1.4.2.  I realize there are MANY changes to 2.1
(including security), but what am I missing / overlooking?*/

--
View this message in context: http://exist.2174344.n4.nabble.com/scheduled-user-job-won-t-run-even-with-xmldb-login-tp4664125.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Sara L. Uckelman | 15 Apr 10:09 2014
Picon

uploading directories with subdirectories via eXide

This is probably another obvious question, but it has me stumped.  From
eXide, I'd like to upload into the data folder of a collection a
directory which has a number of subdirectories -- I'd like to get all
the files without having to enter each subdirectory and add them 
manually.  However, neither through the "drag-and-drop" interface nor
through selecting the files through a file browser am I able to add
anything other than individual files.  Am I missing something obvious,
or is not not possible to do a recursive upload of all files in a
directory + subdirectories through eXide?

(Eventually there will be a script which does the import of the data
automatically, but while I'm still trying things out, I simply need
a quick way to get a bunch of data into the db for testing purposes).

-Sara

--

-- 
Dr. Sara L. Uckelman
Cluster of Excellence "Asia and Europe in a Global Context"
Karl Jaspers Centre for Advanced Transcultural Studies
Ruprecht-Karls Universit├Ąt Heidelberg
http://www.rzuser.uni-heidelberg.de/~suckelma/
http://dmnes.wordpress.com/

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
Maryam Pashmi | 14 Apr 21:44 2014
Picon

Re: Problem with Range indexing in EXISTDB

Hi,

I am really thank you of all of you . 

Pawel kat. helps me to find a solution finally . I am really thank you of him and the other that helped me.


Regards


On Mon, Apr 14, 2014 at 6:18 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
here is the query rewrited (I've omitted selecting by <at> code='a', 'b':


xquery version "3.0";
declare default element namespace 'http://www.loc.gov/MARC21/slim';
let $col:=collection("/db/book")
let $records:=$col/collection/record[datafield[subfield='Rockville, MD'][subfield='Computer Science Press']]
return
  $records[controlfield[ <at> tag='003'][.='SzGeCERN']]


2014-04-14 17:58 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

this is time:

maybe problem with my laptop :)


On Mon, Apr 14, 2014 at 5:52 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
try this:
xquery version "3.0";

declare default element namespace 'http://www.loc.gov/MARC21/slim';

let $col:=collection("/db/book")
return
$col/collection/record[controlfield[ <at> tag='003'][.='SzGeCERN']][datafield[ <at> tag='260'][subfield[ <at> code='a'][.='Rockville, MD']][subfield[ <at> code='b'][.='Computer Science Press']]]


2014-04-14 17:16 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

Oh my god.. This is great .. Thank you so much... 


On Mon, Apr 14, 2014 at 5:11 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
Maryam,
here is optimized .xconf:

<collection xmlns="http://exist-db.org/collection-config/1.0"  xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <!--from Tamboti-->
       <index xmlns:MARC21="http://www.loc.gov/MARC21/slim">
        <fulltext default="none"/>
        <lucene>
            <text qname="MARC21:title"/>
        </lucene>
        <!-- Range indexes -->
        <range>
            <create qname="MARC21:controlfield" type="xs:string"/>
            <create qname="MARC21:datafield">
                 <field name="tag" match=" <at> tag" type="xs:string"/>
                 <field name="subfield" match="MARC21:subfield" type="xs:string"/>
                 <field name="code" match=" <at> code" type="xs:string"/>
            </create>
        </range>
    </index>
</collection>

Your xquery:
xquery version "3.0";

declare namespace MARC21="http://www.loc.gov/MARC21/slim";
let $col:=collection("/db/book")
return
    $col/MARC21:collection/MARC21:record[MARC21:datafield[ <at> tag="653"]/MARC21:subfield[. = 'algebraic'][ <at> code='a']]

an the timing in attachement, I think the result is ok.

Greets :)




2014-04-14 14:26 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

Now problem is with not found .. I can not find any record ..

I also use recommendation of Wolfgang , but any thing have changed  .........



On Mon, Apr 14, 2014 at 1:37 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
no, this link should work if you have your app correctly installed


2014-04-14 13:26 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

Should i put it in specific path .. i got following error .


On Mon, Apr 14, 2014 at 1:23 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
Close the package manager, you should see 'monitoring and profiling for eXist' icon in dashboard. Open this app.
You can even search your indexes. When you are sure that index is properly created for your data set, then we can think about rewrite your xquery to improve the performance.


2014-04-14 13:17 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

Ok  I did , so i should have somethings called monex-0.2 in package manager .. What is the name when i upload it here .. I can not find it ..

After that how i should see the result .. ?


On Mon, Apr 14, 2014 at 1:07 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
Miriam, It's with drag'n'drop with eXist to install the app:
  • download .xar file
  • in dashboard select 'package manager'
  • click icon in upper-left corner (looking like barrel with plus-sign)
  • with drag'n'drop from explorer: drop the .xar file to the field




2014-04-14 12:57 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

I am really sorry , But i am completely new beginner in ExistDB . I don't know how i should execute from this folder . 

Sorry .. If you tell me i am really thank you.


On Mon, Apr 14, 2014 at 12:47 PM, Pawel Katarzynski <pawelkat <at> gmail.com> wrote:
Miriam,
I'm not sure that old 'admin' webApp can display 'new Range indexes', I've uploaded example MARC21 document and Indexes from Your .xconf are properly generated. The example http://www.loc.gov/standards/marcxml/Sandburg/sandburg.xml is simply too small to test the performance.
Try this app to test check indexes https://github.com/wolfgangmm/monex/releases/tag/0.2



2014-04-14 11:51 GMT+02:00 Maryam Pashmi <pashmi.maryam <at> gmail.com>:

Hi ,

I had it there , I forgot to send its screenshot. This is not really problem . Range indexing doesn't apply . what is the reason i don't know why ?

Is there any body to use before range indexing ?

 


On Mon, Apr 14, 2014 at 9:56 AM, pawelkat <pawelkat <at> gmail.com> wrote:
Hi, your collection.xconf file should be located in /db/system/config/db/book
collection (instead of /db/book as we can see in screenshot 2.jpg). Just
save the file to the proper collection and eXist will reindex your /db/book
automatically (you will see the message in eXide).

Pawelkat



--
View this message in context: http://exist.2174344.n4.nabble.com/Problem-with-Range-indexing-in-EXISTDB-tp4664102p4664103.html
Sent from the exist-open mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open















------------------------------------------------------------------------------
Learn Graph Databases - Download FREE O'Reilly Book
"Graph Databases" is the definitive new guide to graph databases and their
applications. Written by three acclaimed leaders in the field,
this first edition is now available. Download your free book today!
http://p.sf.net/sfu/NeoTech
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open

Gmane