Issue #57 has been updated by Jonathan Clarke.

Status changed from New to Feedback
Assigned to set to Jonathan Clarke
Target version set to 1.1.0

Hi J?r?me,

I've tested your patches, using both the new Ldap2LdapSyncTest, and the 
quickstart tutorial. All in all, they work great! :)

I have applied them, with some modifications. For information:
* In BeanComparator, method "compareAttributes": check that both source and 
dest Object is a byte[], not just one. This caused a cast error.
* In top, switch around the two parts of the if, to ensure that if the get*() 
method returns the same as our set*() method, we just call it.
* Various cleanups in BeanComparator.
* Indentation :)

Can you test, please, and confirm that this works the way you want it?

Thanks a lot for your testing, and diving into the code to make these patches.
----------------------------------------
Bug #57: db2ldap : Binary attribute seems to be corrupted
http://tools.lsc-project.org/issues/show/57

Author: J?r?me Schell
Status: Feedback
Priority: Normal
Assigned to: Jonathan Clarke
Category: Core
Target version: 1.1.0


I am in the process of syncing a MySQL database with an openldap directory.
In the MySQL table, there is a blob containing a JPEG picture of the person.
The SQL field is mapped directly to the jpegPhoto LDAP attribute like that:
<pre>
<result property="jpegPhoto" column="photo"/>
</pre>

The synchronization process is working fine except that the JPEG in the LDAP 
directory seems to be invalid.
An export of the field is not a valid JPEG file and no LDAP browser displays 
the picture correctly.

It seems that binary attributes should be handled differently than others. See 
that "forum 
post":http://www.velocityreviews.com/forums/t139104-ldap-character-encoding.html
 for information about this.
The parameter "java.naming.ldap.attributes.binary" should contain a list of 
LDAP attributes to be handled as binary.


-- 
You have received this notification because you have either subscribed to it, 
or are involved in it.
To change your notification preferences, please click here: 
http://tools.lsc-project.org/my/account
-------------- next part --------------
An HTML attachment was scrubbed...
URL: 
<http://lists.lsc-project.org/pipermail/lsc-dev/attachments/20090626/8e239f34/attachment-0001.htm>

Reply via email to