Ticket #6794 (closed defect: duplicate)

Opened 3 years ago

Last modified 8 months ago

Traceback in apache error_log : "TypeError: issubclass() arg 1 must be a class"

Reported by: Samuel.Degrande@lifl.fr Assigned to: coderanger
Priority: normal Component: PermRedirectPlugin
Severity: normal Keywords:
Cc: pacopablo Trac Release: 0.11

Description

I have several Trac projects that are partly protected (some parts are publicly available).

When a public URL is accessed, I've got a Python Traceback in the apache error_logs files, which does however not prevent Trac to work (I only reproduce the last lines) :

[date...] [error] [client...] File "/usr/local/lib/python2.5/site-packages/trac/web/main.p
y", line 310, in _post_process_request\n    f.post_process_request(req, *(None,)*extra_arg_count)

[date...] [error] [client...] File "/pkgs/trac/distrib/usr/local/lib/python2.5/site-packag
es/TracPermRedirect-2.0-py2.5.egg/permredirect/filter.py", line 27, in post_process_request

[date...] [error] [client...] TypeError: issubclass() arg 1 must be a class

The attached patch seems to fix the error.

Attachments

PermRedirectPlugin.patch (0.6 kB) - added by Samuel.Degrande@lifl.fr on 03/11/10 15:44:54.

Change History

03/11/10 15:44:54 changed by Samuel.Degrande@lifl.fr

  • attachment PermRedirectPlugin.patch added.

10/20/10 01:51:52 changed by pacopablo

  • cc set to pacopablo.

Do you have any more detail on this? ie: What version of python, etc? I can not reproduce the error.

10/20/10 13:27:40 changed by Samuel.Degrande@lifl.fr

Trac: 0.11.2.1 Python: 2.5.2 (r252:60911, Jun 3 2008, 12:24:45) [GCC 3.3.2] setuptools: 0.6c8 SQLite: 3.5.7 pysqlite: 2.3.2 Genshi: 0.5 mod_python: 3.3.1 Pygments: 0.11.1 Subversion: 1.5.0 (r31699) jQuery: 1.2.6

On Solaris 9.

Do you need some other details ?

09/30/12 01:21:57 changed by ejucovy

  • status changed from new to closed.
  • resolution set to duplicate.

Closing as a duplicate of #2194.

The patch looks harmless enough, but I can't reproduce the error. Are there certain URL paths that this occurs on?

If anyone can figure out how to reproduce it, or still sees this error in their logs, please comment on one of these two tickets.


Add/Change #6794 (Traceback in apache error_log : "TypeError: issubclass() arg 1 must be a class")




Change Properties
Action