Robert Koberg | 1 Nov 05:42 2006

request:get-data() returns root elem not doc (documentation bug?)

Hi,

The documentation for the request:get-data functions says:

"Returns the content of a POST request as an XML document or a string 
representaion. Returns an empty sequence if there is no data."

But, the get-data function returns the root elem/node:

"return (NodeValue)doc.getDocumentElement();"

I don't have a preference either way, but it did cause me some confusion 
when I went to use the result of get-data.

best,
-Rob

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Oystein Reigem | 1 Nov 09:43 2006
Picon
Picon

Re: Lots of spelling errors in (norwegian) exist-1.1.1- newcore

Trond Albinussen wrote:

>...
>And the letters æ,ø,å are also encoded wrong.
>  
>
They seem to be UTF-8 encoded but interpreted by the interface as 
ISO-8859-1.

- Øystein -

>
>  
>

--

-- 
Øystein Reigem, The department of culture, language and information technology (Aksis), Allegt 27,
N-5007 Bergen, Norway. Tel: +47 55 58 32 42. Fax: +47 55 58 94 70. E-mail: <oystein.reigem <at> aksis.uib.no>.
Home tel: +47 56 14 06 11. Mobile: +47 97 16 96 64. Home e-mail: <oreigem <at> broadpark.no>. Aksis home page: <www.aksis.uib.no>.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Adam Retter | 1 Nov 10:44 2006
Picon

Re: user groups - an object?


Robert,

What are you trying to acheive?

And I dont understand why you would want a group to be an Object as it has only one value which is a String and so you could consider it a String Object?

Thanks Adam.

<snip/>

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Wolfgang Meier | 1 Nov 12:07 2006
Picon

Re: user groups - an object?

> What is the chance of having the user group(s) be an object.

I too have some problems understanding the question:
org.exist.security.Group is an object. You can get it via
SecurityManager.getGroup(String name). If you write your own
SecurityManager, you could extend Group as well.

Wolfgang

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Robert Koberg | 1 Nov 14:08 2006

Re: user groups - an object?

Wolfgang Meier wrote:
>> What is the chance of having the user group(s) be an object.
> 
> I too have some problems understanding the question:
> org.exist.security.Group is an object. You can get it via
> SecurityManager.getGroup(String name). If you write your own
> SecurityManager, you could extend Group as well.

Thanks Adam and Wolfgang,

Sorry for being confusing. I think implementing SecurityManager is what 
I need. I am basically confusing myself because I am trying to go 
against the (excellent) design of eXist.

-Rob

> 
> Wolfgang
> 
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Wolfgang Meier | 1 Nov 17:35 2006
Picon

Bug while reading document data

Hi,

I just fixed a bug in the collection store, leading to exceptions
while reading document data. The bug is not very likely to occur, but
it nevertheless corrupts the db immediately: by coincidence, a
collection entry in collections.dbx was confused with a document entry
stored in the same btree (both entries started with the same byte
sequence).

Well, you may have hit the bug if you encounter a database corruption
and find exceptions originating from DocumentImpl.read in the log
files.

Wolfgang

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
Stefan Wurstbauer | 1 Nov 21:43 2006

XInclude processing not possible with absolute path

All,

after the upgrade to the latest release 1.0.1 we are not longer able  
to process xincludes starting with an absolute path.
To check this please use the example xinclude.xml. The part:
<xml-source>
     <xi:include href="/db/shakespeare/plays/macbeth.xml#xpointer(// 
SPEECH[SPEAKER&amp;='witch' and near(LINE, 'fenny snake')])"/>
</xml-source>

is not processed. The xml element is empty after evaluating the  
xincludes.

Please find below my fix.

Kind regards,

Stefan Wurstbauer

        File: src/org/exist/storage/serializers/XIncludeFilter.java

         // Patch 1520454 start
         if (!docUri.isAbsolute()) {
             String base = document.getCollection().getURI() + "/";
             String child = "./" + docUri.toString();

             URI baseUri = URI.create(base);
             URI childUri = URI.create(child);

             URI uri = baseUri.resolve(childUri);
             docUri = XmldbURI.create(uri);
         }

         // Patch 1520454 end

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
that.SelectedDude | 1 Nov 21:54 2006
Picon
Picon

Re: Too many nodes fordocument($resource)/util:eval($xpath)

It's probably "document", not "doc", but it works great! Thanks!

Robert

On Tue, 2006-10-31 at 16:24 +0000, Adam Retter wrote:
> 
> 
> Im not certain but I think you are missusing util:eval(), it doesnt
> inherit the context and so /path/to/nodes is executed against a new
> context.
> 
> Try -
> 
>    util:eval("doc("""/db/collection/resource.xml""")/path/to/nodes")
> 
> Thanks Adam.
> 
> 
> -----Original Message-----
> From: exist-open-bounces <at> lists.sourceforge.net on behalf of
> that.selecteddude <at> gmx.net
> Sent: Tue 10/31/2006 4:20 PM
> To: exist-open <at> lists.sourceforge.net
> Subject: [Exist-open] Too many nodes
> fordocument($resource)/util:eval($xpath)
> 
> Hello,
> 
> there are several XML resources in one or more collections.
> While
>     document("/db/collection/resource.xml")/path/to/nodes
> returns the correct nodes,
> 
> document("/db/collection/resource.xml")/util:eval("/path/to/nodes")
> also returns nodes of sibling resources within the collection, or
> resources within other collections.
> 
> (eXist 1.1.1, using the Interactive Client or XQLs in the web)
> 
> Is this obvious, or should I supply a small test case?
> 
> Thanks
> Robert
> --
> Der GMX SmartSurfer hilft bis zu 70% Ihrer Onlinekosten zu sparen!
> Ideal für Modem und ISDN: http://www.gmx.net/de/go/smartsurfer
> 
> -------------------------------------------------------------------------
> Using Tomcat but need to do more? Need to support web services,
> security?
> Get stuff done quickly with pre-integrated technology to make your job
> easier
> Download IBM WebSphere Application Server v.1.0.1 based on Apache
> Geronimo
> http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
> _______________________________________________
> Exist-open mailing list
> Exist-open <at> lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/exist-open
> 
> 
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
that.SelectedDude | 1 Nov 21:54 2006
Picon
Picon

Re: Too many nodes for document($resource)/util:eval($xpath)

> Well, as far as the (custom) function description , i.e. "The argument
> expression will inherit the current execution context" is clear :-)

I would assume, statement2's current execution context in case of
executing
	statement1/statement2
would refer to the results of statement1...
However, I'm not critising the design at all -- not at last by the fact
I don't understand it too well. ;o)

>
http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist/src/org/exist/xquery/functions/util/Eval.java?annotate=4758

Thanks for pointing me to the actual Java implementation.
It's a bit high for me ^^, however, I've downloaded the /trunk tree in
the meantime - and was trying to import /eXist/src into Eclipse - just
out of interest.

Do you know why Eclipse reports,
 	"The hierarchy of the type Eval is inconsistent"
for org.exist.xquery.functions.util.Eval.java (and most other classes),
while, in contrast, any classes within the namespace org.exist.storage.*
are not reported as being erroneous?

Thanks
Robert

On Tue, 2006-10-31 at 17:51 +0100, Pierrick Brihaye wrote:
> Answering to myself...
> 
> Pierrick Brihaye a écrit :
> 
> > Well, as far as the (custom) function description , i.e. "The argument 
> > expression will inherit the current execution context" is clear :-)
> 
> FYI, it could be as simple as, in 
>
http://exist.svn.sourceforge.net/viewvc/exist/trunk/eXist/src/org/exist/xquery/functions/util/Eval.java?annotate=4758, 
> replacing line 172 :
> 
> Sequence exprContext = null;
> 
> by
> 
> Sequence exprContext = contextSequence;
> 
> Unfortunately, I can't run the test suite right now in order to evaluate 
> whether this change introduces some regressions elsewhere.
> 
> Unlikely though...
> 
> Cheers,
> 
> p.b.
> 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
Exist-open mailing list
Exist-open <at> lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/exist-open
Tushar Udeshi | 1 Nov 22:20 2006

eXist-1.0.1.jar Installer error using -p

I just looked at the change-log for eXist-1.0.1
One of the bug fixes mentioned is "option -p for installation on headless
systems did not work anymore. Switched back to older IzPack to work around
this".

However when I try to install eXist using -p, I get an error ( See below ).
Is there something wrong I am doing? Any hints on how to fix this? It works
ok using the GUI.

D:\>java -jar d:\eXist-1.0.1.jar -p c:\eXist
Installing into directory: c:\eXist
Installer exited with an error: Stream closed

. . . . . . . . . . . . . . . . . . . . . .  
Tushar Udeshi
Senior Engineer, Software

Zyvex Corporation
Providing Nanotechnology Solutions - Today

w: www.zyvex.com      t: 972.792.1646 
f: 972.235.7882       e: tudeshi <at> zyvex.com             
. . . . . . . . . . . . . . . . . . . . . . 

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642

Gmane