[Nuxeo-tickets] [Nuxeo Repository] #1767: Cache invalidations: events path filtering should accept lack of leading slashes.

Nuxeo Repository trac at nuxeo.com
Fri Oct 20 14:25:51 CEST 2006


#1767: Cache invalidations: events path filtering should accept lack of leading
slashes.
-------------------------+--------------------------------------------------
 Reporter:  gracinet     |       Owner:  jmorliaguet       
     Type:  defect       |      Status:  new               
 Priority:  P2           |   Milestone:  CPS 3.4.3         
Component:  CPSPortlets  |     Version:  3.4.0             
 Severity:  normal       |    Keywords:  cache invalidation
-------------------------+--------------------------------------------------
 Use-case:

  In Content Portlet, events are filtered according to the ``folder_path``
 field value. The latter doesn't have to start with a slash in order to
 perform searches correctly, but the lack of slash affects the invalidating
 events: they are ignored, because
 ``/the/current/path.startswith('the/current') == False``. No problem with
 empty ``folder_path`` (all content portlets).

 Took me a long while to figure out this when I encountered it.

-- 
Ticket URL: <http://svn.nuxeo.org/trac/pub/ticket/1767>
Nuxeo Repository <http://www.cps-project.org/>
Nuxeo Repository



This list archive provided by Nuxeo, the leaders of open source ECM. Check out the Nuxeo 5 open source, standards-based ECM project.