You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by bu...@apache.org on 2004/06/11 15:44:32 UTC
DO NOT REPLY [Bug 29524] New: -
[PATCH] Writing an XMLDBSource throw the WritingSourceTransformer dos not use user and password.
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=29524>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND
INSERTED IN THE BUG DATABASE.
http://issues.apache.org/bugzilla/show_bug.cgi?id=29524
[PATCH] Writing an XMLDBSource throw the WritingSourceTransformer dos not use user and password.
Summary: [PATCH] Writing an XMLDBSource throw the
WritingSourceTransformer dos not use user and password.
Product: Cocoon 2
Version: Current CVS 2.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: blocks
AssignedTo: dev@cocoon.apache.org
ReportedBy: gguillemot@rennes.jouve.fr
Hi,
I was trying to write an document to an eXist database using the
WritingSourceTransformer when I figure out that the user and password
defined in cocoon.xconf at:
<component-instance
class="org.apache.cocoon.components.source.impl.XMLDBSourceFactory"
name="xmldb">
<driver class="org.exist.xmldb.DatabaseImpl" type="exist" user="user"
password="password"/>
</component-instance>
were not used.
the XML used to store the document is like :
<source:write create="true">
<source:source>xmldb:exist://localhost:8080/exist/xmlrpc/db/test.xml</source:source>
<source:fragment>
<mydoc>pim pam pom</mydoc>
</source:fragment>
</source:write>
The XMLDBSourceFactory get user and password from cocoon.xconf and use them to
create an XMLDBSource but two methods of this class doesn't handle credentials
when accessing database : writeOutputStream() and delete().
the call to :
DatabaseManager.getCollection(base);
is used instead of :
DatabaseManager.getCollection(base, user, password) ;