Issue #1056 new

Failed to start up the server when unicode characters used for mapping.

guest
created an issue

Originally posted at http://shiroyuki.lighthouseapp.com/projects/68526/tickets/10-tori-failed-to-start-with-cherrypy-32

'''CherryPy 3.2''' does not accept '''a unicode string''' for URL mapping but '''CherryPy 3.1''' does.

'''How to reproduce'''

First, before executing (tori.ServerInterface.standalone (alias to cherrypy.quickstart), set up a dict.

{{{

!python

routing = { u'/': { 'tools.sessions.on': True, 'tools.sessions.timeout': 10, 'tools.sessions.storage_type': 'file', 'tools.sessions.storage_path': path['session'] } } }}}

Then, run the following.

{{{

!python

Equivalent to cherrypy.quickstart(DocumentRoot(), '/', config=routing) }}}

You will see that the process stop right away.

'''More from investigation'''

The process dies when Bus.start() in '''py2/cherrypy/process/wspbus.py''' is called.

Comments (0)

  1. Log in to comment