shibboleth-dev - Re: brackets in rdbms connector string values
Subject: Shibboleth Developers
List archive
- From: Chad La Joie <>
- To:
- Subject: Re: brackets in rdbms connector string values
- Date: Wed, 20 Feb 2008 16:26:33 +0100
- Organization: SWITCH
Ah, right, of course. All the attribute values are List<Object> so when you do
${foo} this is translated in to ((List<Object)foo).toString() which of course gives you [value, value, value]
try ${principalName.get(0)}
Yes, I realize that's a pain in the butt. So, a question would be, is it less bad to have some values by List<Object> and other be Object. My concern here is that if for some reason an attribute had more than one value and you expected it to have one value, you could get some really odd behavior. So, maybe it's best to have a consistent approach. I don't know.
Jim Fox wrote:
Same thing. The ${...} was what I used first.
Jim
Try using ${name} and see what that does.
Jim Fox wrote:
The RelationalDatabase data connector allows me to use
attributes in a query statement, e.g.
select tid('$principalName');
However, the attribute's value is enclosed in "[]" when
it is inserted into the query string. If principalName
is "fox" the strign above becomes
select tid('[fox]');
which is hardly what I want.
Jim
--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch
--
SWITCH
Serving Swiss Universities
--------------------------
Chad La Joie, Software Engineer, Security
Werdstrasse 2, P.O. Box, 8021 Zürich, Switzerland
phone +41 44 268 15 75, fax +41 44 268 15 68
,
http://www.switch.ch
- brackets in rdbms connector string values, Jim Fox, 02/19/2008
- Re: brackets in rdbms connector string values, Chad La Joie, 02/20/2008
- Re: brackets in rdbms connector string values, Jim Fox, 02/20/2008
- Re: brackets in rdbms connector string values, Chad La Joie, 02/20/2008
- Re: brackets in rdbms connector string values, Jim Fox, 02/20/2008
- Re: brackets in rdbms connector string values, Chad La Joie, 02/21/2008
- Re: brackets in rdbms connector string values, Jim Fox, 02/20/2008
- Re: brackets in rdbms connector string values, Chad La Joie, 02/20/2008
- Re: brackets in rdbms connector string values, Jim Fox, 02/20/2008
- Re: brackets in rdbms connector string values, Chad La Joie, 02/20/2008
Archive powered by MHonArc 2.6.16.