cherrypy crashes when running non-cherrypy wsgi apps

Bug #242573 reported by libertyaikido
6
Affects Status Importance Assigned to Milestone
cherrypy3 (Ubuntu)
Fix Released
Low
Krzysztof Klimonda
Nominated for Hardy by Krzysztof Klimonda
Nominated for Intrepid by Krzysztof Klimonda

Bug Description

Binary package hint: python-cherrypy3

The changes referenced in http://www.cherrypy.org/changeset/1714 we applied in 7.10, but are not present in 8.04. Consequently when you attempt to run a non-cherrypy wsgi app cherrypy tries to check the foreign app's "config" attribute. If the foreign app does not have a config attribute (it shouldn't need it) the server crashes with a traceback:

Traceback (most recent call last):
  File "./monk_server_tbo.py", line 23, in <module>
    cherrypy.engine.start()
  File "/var/lib/python-support/python2.5/cherrypy/_cpengine.py", line 77, in start
    cherrypy.checker()
  File "/var/lib/python-support/python2.5/cherrypy/_cpchecker.py", line 24, in __call__
    method()
  File "/var/lib/python-support/python2.5/cherrypy/_cpchecker.py", line 138, in check_compatibility
    self._compat(app.config)
AttributeError: 'AdminMediaHandler' object has no attribute 'config'

Version 3.0.2-1ubuntu0.1 in 7.10 has the changes referenced so it works correctly and version 3.0.2-2 in 8.04 does not.
-----
Based on this comment I'd say that this is a regression and should be fixed with a SRU.
TEST CASE:
I have attached simple test case that illustrates this issue.

Comments about debdiffs:
The debdiff for hardy is attached. The same can be used for Intrepid as there were no changes in this package between those releases. (Probably hardy-proposed has to be changes to intrepid-proposed so I'd like someone more experienced to comment it).
To fix it in Jaunty I'd like to close https://bugs.edge.launchpad.net/ubuntu/+source/cherrypy3/+bug/368855 first.

Changed in cherrypy3 (Ubuntu):
assignee: nobody → Krzysztof Klimonda (kklimonda)
status: New → In Progress
Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

Attached simple test case for this report.

Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :
description: updated
Revision history for this message
Krzysztof Klimonda (kklimonda) wrote :

Also please note that this bug is fixed in Karmic as we have synced cherrypy with Debian Unstable.

description: updated
description: updated
Changed in cherrypy3 (Ubuntu):
status: In Progress → Confirmed
Revision history for this message
Sebastien Bacher (seb128) wrote :

closing the karmic task since that's fixed there

Changed in cherrypy3 (Ubuntu):
importance: Undecided → Low
status: Confirmed → 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.