Issue #291 resolved

test_session_filter broken with HTTP/1.1

Robert Brewer
created an issue

{{{

!python

python cherrypy\test\test.py --1.1

[other tests run here...]

testSessionFilter (test_session_filter.SessionFilterTest) ... ERROR: expected body: '1'

actual body: '<?xml version="1.0" encoding="UTF-8"?>\n<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"\n "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">\n<html>\n<head>\n <title>500 Internal error</title>\n \n <style type="text/css">\n .poweredBy {\n margin-top: 20px;\n bo rder-top: 2px solid black;\n }\n\n #traceback {\n color: red;\n }\n </style>\n\n</head>\n <body>\n <h2>500 Internal error</h2>\n <p>Server got itself in trouble</p>\n <pre id="traceback">Traceback (most recent call last):\n File "C:\Python23\Lib\site-pa ckages\cherrypy\_cpwsgi.py", line 124, in wsgiApp\n for chunk in b:\n File "C:\Python23\Lib\site-packages\cherrypy\lib\filter\sessionfilter.py", line 176, in returnBodyAndSaveData\n sess.sessionStorage.save(\nAttributeError: EmptyClass instance has no attribute \'sessionStorage\'\n</ pre>\n <div class="poweredBy">\n <span>Powered by <a href="http://www.cherrypy.org">CherryPy 2.1.0-beta</a></span>\n </div>\n </body>\n</html>\n' }}}

Comments (3)

  1. Log in to comment