| Graham Dumpleton (JIRA) 2007-06-30, 1:13 am |
| Publisher doesn't process nested callable objects returned from a top level callable object properly.
-----------------------------------------------------------------------------------------------------
Key: MODPYTHON-237
URL: https://issues.apache.org/jira/browse/MODPYTHON-237
Project: mod_python
Issue Type: Bug
Components: publisher
Affects Versions: 3.3.1, 3.2.10
Reporter: Graham Dumpleton
As discussed in thread:
http://www.modpython.org/pipermail/...une/023910.html
the publish_object() function in mod_python.publisher, tries to invoke callable objects returned from a callable object. This doesn't always work as the rule set in place and applied on at the top level to restrict what types of objects can be accessed is
n't applied.
Need to work out whether it should even been recursive calling callable objects, or only provided string representation of any thing returned by the top level callable object. FWIW, publisher in Vampire always only returns a string representation of objec
t returned by top level callable.
The code also has other problems if one were to allow returned callable to be recursive called, as doesn't make use of req.form properly.
|