#432: PermRedirectPlugin: TypeError: issubclass() arg 1 must be a class
----------------------+--------------------------------
  Reporter:  rjollos  |      Owner:  rjollos
      Type:  defect   |     Status:  new
  Priority:  major    |  Milestone:
 Component:  plugins  |    Version:
Resolution:           |   Keywords:  PermRedirectPlugin
----------------------+--------------------------------
Changes (by rjollos):

 * keywords:   => PermRedirectPlugin


Old description:

> {{{{
> 127.0.0.1 - - [04/Mar/2013 15:29:36] "GET /main/chrome/dashboard/img
> /glyphicons-halflings.png HTTP/1.1" 200 -
> ----------------------------------------
> Exception happened during processing of request from ('127.0.0.1', 42824)
> Traceback (most recent call last):
>   File "/usr/lib/python2.7/SocketServer.py", line 593, in
> process_request_thread
>     self.finish_request(request, client_address)
>   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
>     self.RequestHandlerClass(request, client_address, self)
>   File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
>     self.handle()
>   File "/usr/lib/python2.7/BaseHTTPServer.py", line 342, in handle
>     self.handle_one_request()
>   File "/home/user/Workspace/bh162/trac/trac/web/wsgi.py", line 191, in
> handle_one_request
>     gateway.run(self.server.application)
>   File "/home/user/Workspace/bh162/trac/trac/web/wsgi.py", line 91, in
> run
>     response = application(self.environ, self._start_response)
>   File "/home/user/Workspace/bh162/trac/trac/web/standalone.py", line 91,
> in __call__
>     return self.application(environ, start_response)
>   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 465, in
> dispatch_request
>     return _dispatch_request(req, env, env_error)
>   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 504, in
> _dispatch_request
>     send_internal_error(env, req, sys.exc_info())
>   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 635, in
> send_internal_error
>     req.send_error(exc_info, status=500, env=env, data=data)
>   File "/home/user/Workspace/bh162/trac/trac/web/api.py", line 536, in
> send_error
>     exc_info)
>   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 497, in
> _dispatch_request
>     dispatcher.dispatch(req)
>   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 236, in
> dispatch
>     self._post_process_request(req)
>   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 340, in
> _post_process_request
>     f.post_process_request(req, *(None,)*extra_arg_count)
>   File
> "/home/user/Workspace/bh162/installer/bloodhound/local/lib/python2.7
> /site-packages/permredirect/filter.py", line 27, in post_process_request
>     if issubclass(exctype, PermissionError):
> TypeError: issubclass() arg 1 must be a class
> }}}

New description:

 {{{
 127.0.0.1 - - [04/Mar/2013 15:29:36] "GET /main/chrome/dashboard/img
 /glyphicons-halflings.png HTTP/1.1" 200 -
 ----------------------------------------
 Exception happened during processing of request from ('127.0.0.1', 42824)
 Traceback (most recent call last):
   File "/usr/lib/python2.7/SocketServer.py", line 593, in
 process_request_thread
     self.finish_request(request, client_address)
   File "/usr/lib/python2.7/SocketServer.py", line 334, in finish_request
     self.RequestHandlerClass(request, client_address, self)
   File "/usr/lib/python2.7/SocketServer.py", line 649, in __init__
     self.handle()
   File "/usr/lib/python2.7/BaseHTTPServer.py", line 342, in handle
     self.handle_one_request()
   File "/home/user/Workspace/bh162/trac/trac/web/wsgi.py", line 191, in
 handle_one_request
     gateway.run(self.server.application)
   File "/home/user/Workspace/bh162/trac/trac/web/wsgi.py", line 91, in run
     response = application(self.environ, self._start_response)
   File "/home/user/Workspace/bh162/trac/trac/web/standalone.py", line 91,
 in __call__
     return self.application(environ, start_response)
   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 465, in
 dispatch_request
     return _dispatch_request(req, env, env_error)
   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 504, in
 _dispatch_request
     send_internal_error(env, req, sys.exc_info())
   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 635, in
 send_internal_error
     req.send_error(exc_info, status=500, env=env, data=data)
   File "/home/user/Workspace/bh162/trac/trac/web/api.py", line 536, in
 send_error
     exc_info)
   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 497, in
 _dispatch_request
     dispatcher.dispatch(req)
   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 236, in
 dispatch
     self._post_process_request(req)
   File "/home/user/Workspace/bh162/trac/trac/web/main.py", line 340, in
 _post_process_request
     f.post_process_request(req, *(None,)*extra_arg_count)
   File
 "/home/user/Workspace/bh162/installer/bloodhound/local/lib/python2.7/site-
 packages/permredirect/filter.py", line 27, in post_process_request
     if issubclass(exctype, PermissionError):
 TypeError: issubclass() arg 1 must be a class
 }}}

--

-- 
Ticket URL: <https://issues.apache.org/bloodhound/ticket/432#comment:1>
Apache Bloodhound <https://issues.apache.org/bloodhound/>
The Apache Bloodhound (incubating) issue tracker

Reply via email to