[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#4991) pcache and rwm don't play well together



Ralf Haferkamp wrote:
No comments on this? So I guess this means I can just go ahead and submit the patch to HEAD for testing?

On Monday 04 June 2007 17:13, Ralf Haferkamp wrote:
Hello,

slightly related to the above ITS, I have found another issue. I am not
sure though if this is a bug or if the behaviour is intended. I have a
setup here were the pcache and rwm-overlay is used on top of back-ldap.
rwm is used to rewrite some Attributetypes unknown to the Schema of the
local server to Attributetypes that are defined in the local server. As the
attribute values from unknown attribute types cannot be normalized by the
proxy, I am wondering if rwm should normalize them during the Mapping
process? Otherwise the Values will endup un-normalized in the cache
database, and I get incomplete results when requests are answered from the
cache.

I have a patch ready for this but I was wondering if the normalization step
is left out by intention and wanted to ask before commiting my patch.

It used to be a requirement that any data passing through back-ldap be defined in the local server's schema. Recently that requirement was relaxed. I don't see how you can normalize them safely, without knowing their schema constraints.

--
  -- Howard Chu
  Chief Architect, Symas Corp.  http://www.symas.com
  Director, Highland Sun        http://highlandsun.com/hyc/
  Chief Architect, OpenLDAP     http://www.openldap.org/project/