Modify

Opened 12 years ago

Closed 12 years ago

#11030 closed defect (fixed)

TypeError: __init__() takes at least 2 arguments (1 given)

Reported by: Ryan J Ollos Owned by: anonymous
Priority: normal Component: ThemeEnginePlugin
Severity: normal Keywords:
Cc: Trac Release:

Description

Navigating to the /themeengine page shows that the HTTPNotFound object is not being instantiated correctly. This is not a big deal since it would only happen in the case of an invalid request, but should be easy to fix anyway.

Btw, where is HTTPNotFound defined? It is imported from trac.web.api, but I can't even see it being indirectly imported through that module.

How to Reproduce

While doing a GET operation on /themeengine, Trac issued an internal error.

(please provide additional details here)

Request parameters:

{}

User agent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/24.0.1312.68 Safari/537.17

System Information

Trac 1.0.1
Babel 0.9.6
Bloodhound Trac 1.0.1
Genshi 0.7 (without speedups)
Pygments 1.6
pysqlite 2.6.0
Python 2.7.3 (default, Jan 2 2013, 13:56:14)
[GCC 4.7.2]
pytz 2013b
setuptools 0.6
SQLite 3.7.13
jQuery 1.7.2

Enabled Plugins

BacklogPlugin 0.2.0
BloodhoundDashboardPlugin 0.6.0dev-r1470007
BloodhoundMultiProduct 0.6.0dev-r1470952
BloodhoundSearchPlugin 0.6.0dev-r1470615
BloodhoundTheme 0.6.0dev-r1470623
TracAccountManager 0.4.3
TracPermRedirect 3.0
TracThemeEngine 2.1.3

Python Traceback

Traceback (most recent call last):
  File "/home/user/Workspace/bh508/trac/trac/web/main.py", line 474, in _dispatch_request
    dispatcher.dispatch(req)
  File "/home/user/Workspace/bh508/trac/trac/web/main.py", line 214, in dispatch
    resp = chosen_handler.process_request(req)
  File "/home/user/Workspace/trac-hacks.git/themeengineplugin/trunk/themeengine/admin.py", line 92, in process_request
    raise HTTPNotFound
TypeError: __init__() takes at least 2 arguments (1 given)

Attachments (0)

Change History (3)

comment:1 in reply to:  description Changed 12 years ago by Jun Omae

Btw, where is HTTPNotFound defined? It is imported from trac.web.api, but I can't even see it being indirectly imported through that module.

HTTPNotFound exception class is generated as subclass of HTTPException in http://trac.edgewall.org/browser/branches/1.0-stable/trac/web/api.py?rev=11752&marks=153-165#L129 trac:source:branches/1.0-stable/trac/web/api.py@11752:153-165#L129.

comment:2 Changed 12 years ago by Olemis Lang

Owner: changed from Olemis Lang to anonymous
Status: newassigned

comment:3 Changed 12 years ago by Olemis Lang

Resolution: fixed
Status: assignedclosed

(In [13000]) ThemeEnginePlugin : Raise 'HTTPNotFound' with parameters ( fixes #11030 )

Modify Ticket

Change Properties
Set your email in Preferences
Action
as closed The owner will remain anonymous.
The resolution will be deleted. Next status will be 'reopened'.

Add Comment


E-mail address and name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.