manage_main on worklists crash if variables are Expression

Bug #731394 reported by Nicolas Delaby
8
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Zope CMF buildout
Fix Released
Medium
Tres Seaver

Bug Description

Cataloged variable allows to enter Expression.
like state = 'string:private',
But worklists.dtml does not support this feature and crash when it try to iterate over a Expression object.

The patch consist into using getVarMatchText method instead of getVarMatch and rely that all values are tuple.

Revision history for this message
Nicolas Delaby (nicolas-nexedi) wrote :
Revision history for this message
Tres Seaver (tseaver) wrote :

Thanks for the report, and the patch (especially the test!).

Changed in zope-cmf:
assignee: nobody → Tres Seaver (tseaver)
importance: Undecided → Medium
milestone: none → 2.3.0
status: New → In Progress
status: In Progress → Fix Committed
Revision history for this message
LeoRochael (leorochael) wrote : Re: [Bug 731394] Re: manage_main on worklists crash if variables are Expression

Does anyone mind if this fix is committed to the 2.2 branch as well?

Revision history for this message
Jens Vagelpohl (dataflake-deactivatedaccount-deactivatedaccount) wrote :

It's an obvious bug, go ahead.

Tres Seaver (tseaver)
Changed in zope-cmf:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.