Issue 8608 - slapo-pcache: Inversion in filter pcacheTemplate cannot be parsed
Summary: slapo-pcache: Inversion in filter pcacheTemplate cannot be parsed
Status: VERIFIED INVALID
Alias: None
Product: OpenLDAP
Classification: Unclassified
Component: overlays (show other issues)
Version: 2.4.43
Hardware: All All
: --- normal
Target Milestone: ---
Assignee: OpenLDAP project
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-03-03 13:54 UTC by danmer@danmer.net
Modified: 2020-06-04 15:04 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description danmer@danmer.net 2017-03-03 13:54:11 UTC
Full_Name: Tabolin Yuriy
Version: 2.4.43
OS: FreeBSD 10.1-RELEASE
URL: ftp://ftp.openldap.org/incoming/
Submission from: (NULL) (149.126.18.58)


I use openldap 2.4.43 with pcache overlay. Inversion assertions in
pcacheTemplate filter cannot be parsed and slapd cannot start.

For example this works fine:
overlay pcache
pcache mdb 100000 1 1000 60
pcacheAttrset 0 *
pcacheTemplate (objectClass=) 0 3600 3600

But this not:
overlay pcache
pcache mdb 100000 1 1000 60
pcacheAttrset 0 *
pcacheTemplate (!(objectClass=)) 0 3600 3600

There is written in man slapo-pcache "A template is defined by a filter string
and an index identifying a set of attributes. The template string for  a  query 
can  be  obtained  by removing  assertion  values  from  the  RFC  4515
representation of its search filter." RFC4515 have defined exclamation mark
("!") as inversion in filter.
Comment 1 Quanah Gibson-Mount 2017-03-17 16:42:45 UTC
moved from Incoming to Software Bugs
Comment 2 Howard Chu 2020-06-04 14:31:19 UTC
This feature works as designed. Read the ProxyCache design paper for details.
https://openldap.org/conf/odd-wien-2003/proceedings.html