06-30-07 06: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 calla
ble 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 obje
cts, or only provided string representation of any thing returned by the top
level callable object. FWIW, publisher in Vampire always only returns a str
ing representation of objec
t returned by top level callable.
The code also has other problems if one were to allow returned callable to b
e recursive called, as doesn't make use of req.form properly.
[ Post a follow-up to this message ]
|