You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@cocoon.apache.org by "Subrahmanya, Noida" <su...@noida.hcltech.com> on 2002/11/08 09:51:51 UTC

xmldb pseudo protocol: Fail in getting connection

I have a xml database which supports xml:db api's.
I am connecting  to my database by making use of xml pseudo protocol.
Proble is since it connects through at
org.xmldb.api.DatabaseManager.getCollection(uri) which in turn passes null
as username and password to method
getCollection( uri, user,password) of our DatabaseImpl. So fails in getting
connection. Our xml:db implementation
Is there any way to pass username and password along with uri to method
org.xmldb.api.DatabaseManager.getCollection.

 
With Thanks and Regards,
 
<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office"
/>B. Subrahmanya Nayak
Member Technical Staff,
HCL Technologies Ltd.,
Net Centric Division,
B-41, A-11,Sector 16,
Noida - 201301
Ph: 118-4510701/702/813 Extn: 3028
 <http://www.subrahmanya.50megs.com/>  

Disclaimer:

This document is intended for transmission to the named recipient only. If
you are not that person, you should note that legal rights reside in this
document and you are not authorized to access, read, disclose, copy, use or
otherwise deal with it and any such actions are prohibited and may be
unlawful. The views expressed in this document are not necessarily those of
HCL Technologies Ltd. Notice is hereby given that no representation,
contract or other binding obligation shall be created by this e-mail, which
must be interpreted accordingly. Any representations, contractual rights or
obligations shall be separately communicated in writing and signed in the
original by a duly authorized officer of the relevant company.


  _____  

 
<http://promos.hotbar.com/promos/promodll.dll?RunPromo&El=hotbar%5felement%3
bst%3b&SG=&RAND=1> Upgrade Your Email - Click here! 

Re: xmldb pseudo protocol: Fail in getting connection

Posted by Gianugo Rabellino <gi...@apache.org>.
Subrahmanya, Noida wrote:

> I have a xml database which supports xml:db api's.
> I am connecting  to my database by making use of xml pseudo protocol.
> Proble is since it connects through at
> org.xmldb.api.DatabaseManager.getCollection(uri) which in turn passes
> null as username and password to method
> getCollection( uri, user,password) of our DatabaseImpl. So fails in
> getting connection. Our xml:db implementation
> Is there any way to pass username and password along with uri to method
> org.xmldb.api.DatabaseManager.getCollection.


It's not that difficult: there are two ways of doing so, and I need to 
decide which one is the best:

1. configure user and password in the general configuration (cocoon.xconf);

2. parse the URL for user/password info (tricky due to 1.2/1.3 different 
URL treatment: I've been away for a while so I don't recall if we 
dropped 1.2 compatibility away. Has any decision been made?);

and even:

3. let the sysadm set a username/password pair in cocoon.xonf and let 
the user have a chance to override the system wide values by embedding 
user and password info in the URL.

Which one would you all think is best?

Anyway, ould you please file a bug in Bugzilla to keep track of this 
issue? TIA. And, just out of curiosity, what XML:DB compliant database 
are you using?

Ciao,

-- 
Gianugo Rabellino


---------------------------------------------------------------------
To unsubscribe, e-mail: cocoon-dev-unsubscribe@xml.apache.org
For additional commands, email: cocoon-dev-help@xml.apache.org