Matthias Guth | 25 May 11:34 2016
Picon
Gravatar

special chars in admin password and restore

Hi all,

I have a backup set and want to restore it using bin/backup.sh. The 
admin password contains a "$" char which seems to cause trouble. I 
created a new eXist instance (latest git develop build) and did the 
following:

> bin/backup.sh -u admin -p PasswordContaining$ -r 
> /backup/somecollection/__contents__.xml 
> -ouri=xmldb:exist://localhost:18080/exist/xmlrpc

This did not work (authentication failed) until I escaped the $ sign so 
this one worked:

> bin/backup.sh -u admin -p PasswordContaining\$ -r 
> /backup/somecollection/__contents__.xml 
> -ouri=xmldb:exist://localhost:18080/exist/xmlrpc

But something happened then, because when I try to restore a second 
collection, the escaped password was rejected but the unescaped one 
worked. But now login in the Dashboard as admin is not working anymore, 
nor with the escaped pw, neither with the unescaped one.

I did not restore any collection in /db/system but somehow the admin 
password seems to get changed in this steps above. Is this possible??

Cheers,
Matthias

--

-- 
(Continue reading)

Alexander Henket | 24 May 19:26 2016
Picon
Picon
Gravatar

XSLT performance

eXist 2.2

I have a set of XSLTs. When I run them locally using Saxon I get results in 1.5 seconds. When I run it inside eXist-db it takes around 7.3 seconds.

Are there any dos or don'ts to check to decrease this significant difference?

Attached the XML that the transform runs against with XSL linked inside.

Regards

Alexander Henket


Code:

let $xsltParameters :=
   
<parameters>
       
<param name="projectDefaultLanguage"    value="nl-NL"/>
       
<param name="artdecordeeplinkprefix"    value="http://decor.nictiz.nl/art-decor/"/>
       
<param name="seeThisUrlLocation"        value="live"/>
       
<param name="displayHeader"             value="false"/>
       
<param name="rand"                      value="128"/>
       
<param name="logLevel"                  value="'OFF'"/>
        <param name="switchCreateTreeTableHtml" value="true"/>
   
</parameters>

let $xslt := doc('/db/apps/decor/core/Template2html.xsl')

transform:transform($expndtemplates, $xslt, $xsltParameters)

Attachment (RetrieveTemplate.xml): application/xml, 93 KiB

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Alberto Simões | 21 May 18:11 2016
Picon
Gravatar

Searching by regexp...

Hi

What is the more efficient way to search a lot of documents for a regular expression?
Namely,  \s\S\s\S\s in any PCDATA?

Thanks

--
Alberto Simões
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
James Keeney | 19 May 14:28 2016
Picon

Using HTTPS in a get request

All -

I'm having the same problem as described here:
https://sourceforge.net/p/exist/mailman/message/34134695/

When I make a get request to a https URL the requested server is throwing a 500 error because it cannot complete the certificate negotiation with the client (jetty, Exist?) that made the request.

I went through the process of confirming that Exist is setup for HTTPS on port 8443 - I can get the admin client to connect on 8443.

I also tried to setup the configuration on Jetty using instructions here:
http://eubeta.nimbudocs.com/integration/doc/apidoc/tutorial-SSL.html

But I still get the same error:

here is the URL called
https://www.sec.gov/cgi-bin/browse-edgar?action=getcompany&amp;CIK=ACET&amp;dateb=&amp;owner=exclude&amp;output=xml&amp;count=10

Here is the response in Exist:

<httpclient:response xmlns:httpclient="http://exist-db.org/xquery/httpclient" statusCode="500">
<httpclient:body type="text" encoding="URLEncoded">sun.security.validator.ValidatorException%3A+PKIX+path+building+failed%3A+sun.security.provider.certpath.SunCertPathBuilderException%3A+unable+to+find+valid+certification+path+to+requested+target</httpclient:body> </httpclient:response>There is also this error in the logs (truncated):
2016-05-19 08:06:27,383 [eXistThread-45] ERROR (BaseHTTPClientFunction.java [doRequest]:220) - sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target


Doing a little more reading is this a problem in exist/jetty or a problem with the server I'm making the request of?

Thanks for your help.

Jim K.
FitterWeb Consulting
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
ron.vandenbranden | 19 May 14:08 2016
Picon

how to list index terms of "custom Lucene index"?

Hi,

I'm exploring the content extraction module for offering search 
functionality over a collection of PDF files. So far, with help of the 
docs (http://exist-db.org/exist/apps/doc/contentextraction.xml) and demo 
app I've been able to create a quick demo.

Yet, one question remains: is there a way to list the index terms of 
"custom Lucene indexes" (if that's the correct name), created with 
ft:index()? I've tried with util:index-keys(), but that does not seem to 
work.

I would like to offer autocomplete functionality in the search box for 
the app I'm developing, for which util:index-keys() comes handy. 
Assuming this function has no access to "custom Lucene indexes", would 
it be a sensible strategy to store the extracted text contents for PDF 
files as separate documents in the database, so they can be indexed with 
the regular Lucene full-text indexer, queried with ft:query(), and 
listed with util:index-keys()? That would require a system of triggers 
to be set up, that:
     -upon storing/modifying a PDF file in a collection:
         -extract its contents
         -store its the extracted (XHTML) text in a separate document in 
the db
     -upon removing a PDF file (or its parent collection?) from the db:
         -remove the corresponding indexed document or collection

Does this sound like a good strategy, or am I overlooking things?

Best,

Ron

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
remy.brefort | 18 May 03:44 2016
Picon

TEI-Simple and RESTXQ

Hi,

I’m discovering the TEI Processing Model Toolbox and find it very useful, calling functions like fo.xql from my own app.

It works fine with TEI files generated by RESTXQ / XQuery and then stored in my application.

My question is about the possibility to produce PDF and EPUB directly from the RESTXQ result.

Is there a possibility to replace the file path in the “doc” parameter of fo.xql by the URI of a query ? or any workaround to achieve the same goal ?

Thanks in advance for any help about this.

Remy

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Winona Salesky | 17 May 20:08 2016
Picon

Possible ft:query bug

I have run across what seems like a bug to me in the Lucene full text query. 
We are indexing our place names in Lucene, with diacritics set to 'no.' I noticed that when searching for a name with diacritics and a wildcard I get no results, while searching for the same name without diacritics and a wildcard will return the expected results. 

Here are a few links demonstrating the various results:

Full name without diacritics and a wildcard: 

Diacritics and wildcard:

Here is our index configuration file:

And a simplified version of the query:

xquery version "3.0";
declare namespace tei = "http://www.tei-c.org/ns/1.0";

for $r in collection('/db/apps/srophe-data/data/places/tei')//tei:placeName[ft:query(.,"Ābājāl*")]
return $r

Thoughts?
Thanks for the help,
-Winona


------------------------------
Winona Salesky
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Henry S. Thompson | 16 May 23:18 2016
Picon
Picon

Templating newbie: How do I inject at multiple sites

I want to add both content and an extra navbar link to one of my pages
that is, one bit at the "content" id and one at the "navbar-collapse-1"
id -- is this possible?

Note I don't want this extra link on _all_ my pages, so a simple edit to
my page.html won't do it for me.

Thanks,

ht
--

-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht <at> inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Henry S. Thompson | 15 May 18:35 2016
Picon
Picon

Disabling users -- can't seem to do it at all?

Despite being logged in as admin, I can't seem to get the [] disable box
to do anything, either via the User Manager app or the console UI.

What's the right thing to do if I want to continue to expose the
dashboard and allow myself to login, but to more-or-less eliminate the
possibility of random visitors doing _anything_ except what I actively
choose to expose.

So, for example, I don't want to _remove_ the demo apps from the
dashboard (I might want to use one), but I don't want any of the
non-login-required users (guest, monex, ...) to be able to launch them.

Possible?

ht
--

-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht <at> inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
Masoud Vakili | 14 May 13:08 2016
Picon

Monitoring Analysis (Memory)

Hi all:
I have some question around monitoring objects;
in bin/functions.d/eXist-settings.sh, I'm assigned "-Xms512m -Xmx4096m" to java, but monitoring page is showing:
Memory Used : 746 / 3641 M
Memory Committed : 2594 / 3641 M
now, I want to see, what is the committed memory?
why exist-db not using 4096mb memory and max value is 3641MB?
does eXist-db manage this situation or I made a mistake in configuration?

thanks
------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Henry S. Thompson | 13 May 12:22 2016
Picon
Picon

SSL experience w. free letsencrypt cert

I've just gotten SSL working, i.e. [myhost]:8443/, with a proper cert
obtained free of charge from letsencrypt [1].  I did not find the
process completely straight-forward, and the documentation I found on
the exist website was more-or-less out of date.  Happy to contribute a
wiki page, but not sure how to go about that.

ht

[1] https://letsencrypt.org/getting-started/
--

-- 
       Henry S. Thompson, School of Informatics, University of Edinburgh
      10 Crichton Street, Edinburgh EH8 9AB, SCOTLAND -- (44) 131 650-4440
                Fax: (44) 131 650-4587, e-mail: ht <at> inf.ed.ac.uk
                       URL: http://www.ltg.ed.ac.uk/~ht/
 [mail from me _always_ has a .sig like this -- mail without it is forged spam]

------------------------------------------------------------------------------
Mobile security can be enabling, not merely restricting. Employees who
bring their own devices (BYOD) to work are irked by the imposition of MDM
restrictions. Mobile Device Manager Plus allows you to control only the
apps on BYO-devices by containerizing them, leaving personal data untouched!
https://ad.doubleclick.net/ddm/clk/304595813;131938128;j

Gmane