[Product-Developers] LDAPMultiPlugins developers: please read this - possible localization problem

Alberto Lopes alberto at alopes.com
Tue Aug 26 01:05:48 UTC 2008



Wichert Akkerman wrote:
> 
> Which makes it at least somewhat likely that the code to blame is mine.
> 

Agreed. To me, it is not PloneLDAP that is causing the UnicodeDecodeError -
the evidence of that is the fact that the site have been running with AD
integration for more than two months, and it started to throw the
UnicodeDecodeError overnight.

My guess is that the problem might be related to Plone guessing wrong the
encoding of something - maybe some object index was input with an encoding
different from the one that is used by AD? The catalog might have something
to do with that. Then it set the encoding to something that is not AD
compatible and that made LDAPMultiPlugin stop working.


Wichert Akkerman wrote:
> 
> I think we're at a point where it is probably just as doable to find the
> real problem and fix it. You're already 70% there I think.
> 

Well, I think that evolving LDAPMultiPlugins might be in order anyway - we
could improve it to be more robust against errors in other products - like
my case. I found a case in which the only reflection of the error was in the
Groups interface of the plugin: deactivating it, the error was gone. The
plugin could be patched in a way that the bad coding of another product
(which I am still not aware of) would not make LDAPM.P. make Plone stop
working.

Anyway, like I said I am still a little green with the Plone code: I am able
to look at highly cohesive code but not the overall - I will do that in
time:-). I do a lot of abstraction and try to apply my longer Java
experience here.

My strategy for now will have to be to work on the plugin change: I will
publish here my results (I will gladly share it) and questions. 

By the way, my first one is this: am I correct to assume that the
enumerateGroups is the method that is called when the user searches for a
group at the Sharing tab in a Plone object?

Best Regards,

Alberto





-- 
View this message in context: http://n2.nabble.com/LDAPMultiPlugins-developers%3A-please-read-this---possible-localization-problem-tp777592p782938.html
Sent from the Product Developers mailing list archive at Nabble.com.





More information about the Product-Developers mailing list