[ http://issues.apache.org/jira/browse/COCOON-1182?page=all ]
Ralph Goers updated COCOON-1182: -------------------------------- Bugzilla Id: (was: 29524) Component: Blocks: XML-DB (was: Blocks: (Undefined)) Description: 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) ; was: 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) ; > [PATCH] Writing an XMLDBSource through the SourceWritingTransformer does not > use user and password. > --------------------------------------------------------------------------------------------------- > > Key: COCOON-1182 > URL: http://issues.apache.org/jira/browse/COCOON-1182 > Project: Cocoon > Type: Bug > Components: Blocks: XML-DB > Versions: 2.1.8-dev (Current SVN) > Environment: Operating System: other > Platform: Other > Reporter: Gildas Guillemot > Assignee: Cocoon Developers Team > Attachments: XMLDBSource.diff > > 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) ; -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira