Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 47877 invoked from network); 5 Jul 2005 14:34:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 5 Jul 2005 14:34:37 -0000 Received: (qmail 88482 invoked by uid 500); 5 Jul 2005 14:34:27 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 88436 invoked by uid 500); 5 Jul 2005 14:34:26 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 88419 invoked by uid 99); 5 Jul 2005 14:34:26 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2005 07:34:26 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [132.230.150.3] (HELO atlas.informatik.uni-freiburg.de) (132.230.150.3) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 05 Jul 2005 07:34:27 -0700 Received: from eradior.informatik.uni-freiburg.de ([132.230.152.161]) by atlas.informatik.uni-freiburg.de with esmtpsa (TLSv1:AES256-SHA:256) (Exim 4.51) id 1DpoVB-0003uK-31 for users@cocoon.apache.org; Tue, 05 Jul 2005 16:34:21 +0200 Message-ID: <42CA9A69.5090504@tu-clausthal.de> Date: Tue, 05 Jul 2005 16:34:17 +0200 From: Christoph Hermann User-Agent: Mozilla Thunderbird 1.0.2 (Windows/20050317) X-Accept-Language: de-DE, de, en-us, en MIME-Version: 1.0 To: users@cocoon.apache.org Subject: Integration of Cocoon and eXist - user/password accessing database X-Enigmail-Version: 0.92.0.0 Content-Type: text/plain; charset=ISO-8859-15 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hello, i'm trying to integrate Cocoon and eXist XML DB. So far it works fine, i can edit and save a document through cforms and the bindings, but this is only working if i make the documents in my collection world-writable/updatable. So my question is: where do i specify which user/password is used when accessing the eXist database (i would like to do this in flow (if possible) alternatively which configuration file handles this)? What i basically do is the following (in flow): ---snip--- var form = new Form("cforms/definition/test_def.xml"); var bindingURI = "cforms/binding/test_bind.xml"; form.createBinding(bindingURI); var docURI = "xmldb:exist:///db/test/test.xml"; var document = loadDocument(docURI); form.load(document); form.showForm("test-display-pipeline"); form.save(document); saveDocument(document, docURI); ---snap--- The functions loadDocument and saveDocument are taken from the samples. When the document is not writable for everyone i get the following error: ---snip--- org.exist.security.PermissionDeniedException: Document exists and update is not allowed at org.exist.collections.Collection.checkPermissions(Collection.java:1263) at org.exist.collections.Collection.determineTreeStructure(Collection.java:1099) at org.exist.collections.Collection.validate(Collection.java:851) at org.exist.xmldb.LocalCollection.storeXMLResource(LocalCollection.java:589) ... ---snap--- Christoph --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org