[CherryPy] #953: Missing Exception

0 views
Skip to first unread message

CherryPy

unread,
Aug 6, 2009, 11:32:11 AM8/6/09
to cherrypy...@googlegroups.com
#953: Missing Exception
-------------------------------------+--------------------------------------
Reporter: elias....@gmail.com | Owner: fumanchu
Type: defect | Status: new
Priority: normal | Milestone:
Component: CherryPy code | Keywords:
-------------------------------------+--------------------------------------
Using Python 2.6 and CherryPy 3.1.2

Exception that is thrown for: '%d' % 'a' goes missing and instead I get a
404.

Code that demonstrates behavior on my system:
(For some reason the parameters play a role in this bug. Functions without
parameters do not have this problem.)

{{{
import cherrypy

class T:
def t(self, x, y=None):
return '%d' % 'a' # throw an exception
#return format('%d','a')
t.exposed = True

def index(self):
return '<a href="t?x=0">Click here</a>'
index.exposed = True

cherrypy.quickstart(T(), '/')
}}}

This will result in 404.
However, replacing '%d' % 'a' with format('%d','a') will throw an
exception as expected and result in 500.

--
Ticket URL: <http://www.cherrypy.org/ticket/953>
CherryPy <http://www.cherrypy.org>
CherryPy - a pythonic, object-oriented HTTP framework

CherryPy

unread,
Aug 19, 2009, 12:32:07 AM8/19/09
to cherrypy...@googlegroups.com
#953: Missing Exception
-------------------------------------+--------------------------------------
Reporter: elias....@gmail.com | Owner: lakin
Type: defect | Status: new
Priority: normal | Milestone: 3.2
Component: CherryPy code | Resolution:
Keywords: |
-------------------------------------+--------------------------------------
Changes (by fumanchu):

* milestone: => 3.2
* owner: fumanchu => lakin

Comment:

This looks like something that `test_callable_spec` is getting wrong.

CherryPy

unread,
Aug 19, 2009, 3:06:56 PM8/19/09
to cherrypy...@googlegroups.com
#953: Missing Exception
-------------------------------------+--------------------------------------
Reporter: elias....@gmail.com | Owner: lakin
Type: defect | Status: closed
Priority: normal | Milestone: 3.2
Component: CherryPy code | Resolution: fixed
Keywords: |
-------------------------------------+--------------------------------------
Changes (by lakin):

* resolution: => fixed
* status: new => closed

Comment:

fixed in r2512

--
Ticket URL: <http://cherrypy.org/ticket/953>
Reply all
Reply to author
Forward
0 new messages