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

Re: (ITS#4604) backs-sql: backsql_process_filter(): invalid filter for UTF-8 querys



On Sat, 2006-07-01 at 17:41 +0200, Thomas Reifferscheid wrote:

> I changed in core.schema
> 
> attributetype ( 0.9.2342.19200300.100.1.3
>          NAME ( 'mail' 'rfc822Mailbox' )
>          DESC 'RFC1274: RFC822 Mailbox'
>      EQUALITY caseIgnoreIA5Match
>      SUBSTR caseIgnoreIA5SubstringsMatch
>      SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} )
> 
> 
> to
> 
> 
> attributetype ( 0.9.2342.19200300.100.1.3
>          NAME ( 'mail' 'rfc822Mailbox' )
>          DESC 'RFC1274: RFC822 Mailbox'
>      EQUALITY caseIgnoreMatch
>      SUBSTR caseIgnoreSubstringsMatch
>      SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{32768} )
> 
> 
> and now it works!
> 
> 
> Thanks a lot for the right hint on the subject.
> The issue can be closed.

You shouldn't do that: changing standard track schema is not good
practice.  As far as I remember, RFC 2822 does not allow arbitrary chars
in the local part of an address; they might be allowed in the display
name, but I fear it's restricted to plain ASCII as well.  I suspect the
bug here, if any, is that back-sql should simply ignore that part of the
filter while converting it into an SQL query.  This is what back-sql is
supposed to do; I'll check if it works as expected.

p.

p.




Ing. Pierangelo Masarati
Responsabile Open Solution
OpenLDAP Core Team

SysNet s.n.c.
Via Dossi, 8 - 27100 Pavia - ITALIA
http://www.sys-net.it
------------------------------------------
Office:   +39.02.23998309          
Mobile:   +39.333.4963172
Email:    pierangelo.masarati@sys-net.it
------------------------------------------