<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet href="http://bugs.horde.org/themes/feed-rss.xsl" type="text/xsl"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom">
 <channel>
  <title>(whitespace-)trimming of mapped attributes</title>
  <pubDate>Wed, 15 Oct 2008 23:18:58 -0400</pubDate>
  <link>http://bugs.horde.org/ticket/5979</link>
  <atom:link rel="self" type="application/rss+xml" title="(whitespace-)trimming of mapped attributes" href="http://bugs.horde.org/ticket/5979/rss" />
  <description>(whitespace-)trimming of mapped attributes</description>

  
  
  <item>
   <title>Mapping attributes from multiple hash values can generate hi</title>
   <description>Mapping attributes from multiple hash values can generate hideous results if some of the attributes are not set. Example:

'name' =&gt; array('fields' =&gt; array('firstname', 'lastname'),
                          'format' =&gt; '%s %s', 
                          'attribute' =&gt; 'cn'),

If firstname is not set, cn becomes &quot; Lastname&quot;  with a leading space.

Would be nice if mapped attributes get trimmed afterwards, maybe even on multiple whitespaces within the string. Yes, there cannot be a general trim rule, but maybe another map parameter just for the (common?) whitespace separation?</description>
   <pubDate>Sun, 09 Dec 2007 09:11:17 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5979#t39629</link>
  </item>
  <item>
   <title>This happens already. Where exactly do you see this *not* ha</title>
   <description>This happens already. Where exactly do you see this *not* happening? And in case this has been implemented after RC1, did you try a recent snaphot?</description>
   <pubDate>Mon, 10 Dec 2007 06:07:38 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5979#t39654</link>
  </item>
  <item>
   <title>horde-FRAMEWORK_3-2007-12-11
horde-HEAD-2007-12-11
turba-H</title>
   <description>horde-FRAMEWORK_3-2007-12-11
horde-HEAD-2007-12-11
turba-HEAD-2007-12-11

$attributes just before adding to LDAP at horde/turba/lib/Driver/ldap.php:266 error_log and print_r for new contact with only lastname (and email)
Array
(   
    [DUFFtype] =&gt; Object
    [cn] =&gt;  Lastname         &lt;-- &quot; Lastname&quot; with leading space
    [sn] =&gt; Lastname
    [mail] =&gt; xxx@a.com
[SNIP]

ldapsearch results in:
cn:: IExhc3RuYW1l     &lt;-- &quot; Lastname&quot; with leading space (base64)
sn: Lastname
</description>
   <pubDate>Tue, 11 Dec 2007 12:59:28 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5979#t39707</link>
  </item>
  <item>
   <title>Can you try if the following commit fixed it:
http://cvs.ho</title>
   <description>Can you try if the following commit fixed it:
http://cvs.horde.org/diff.php/turba/lib/Driver.php?r1=1.175&amp;r2=1.176&amp;ty=u</description>
   <pubDate>Thu, 13 Dec 2007 20:13:49 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5979#t39874</link>
  </item>
  <item>
   <title>yes, works
Thanks!</title>
   <description>yes, works
Thanks!</description>
   <pubDate>Fri, 14 Dec 2007 15:13:21 -0500</pubDate>
   <link>http://bugs.horde.org/ticket/5979#t39934</link>
  </item>
  

 </channel>
</rss>
