Ajenti crash when upload plugin to install it

Bug #962280 reported by storm
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Ajenti
Invalid
Undecided
Unassigned
Python
New
Undecided
Unassigned

Bug Description

When I click on "Install" button on Ajenti Plugin Management, I have got "Boom Ajenti has crashed"

The stack trace :

Traceback (most recent call last):
  File "/usr/lib/pymodules/python2.6/ajenti/core/application.py", line 140, in dispatcher
    self.start_response)
  File "/usr/lib/pymodules/python2.6/ajenti/api/urlhandler.py", line 89, in url_handler
    return handler(req, start_response)
  File "/usr/lib/pymodules/python2.6/ajenti/plugins/plugins/main.py", line 97, in upload
    vars = get_environment_vars(req)
  File "/usr/lib/pymodules/python2.6/ajenti/api/urlhandler.py", line 106, in get_environment_vars
    keep_blank_values=1)
  File "/usr/lib/python2.6/cgi.py", line 508, in __init__
    self.read_multi(environ, keep_blank_values, strict_parsing)
  File "/usr/lib/python2.6/cgi.py", line 632, in read_multi
    environ, keep_blank_values, strict_parsing)
  File "/usr/lib/python2.6/cgi.py", line 510, in __init__
    self.read_single()
  File "/usr/lib/python2.6/cgi.py", line 647, in read_single
    self.read_lines()
  File "/usr/lib/python2.6/cgi.py", line 669, in read_lines
    self.read_lines_to_outerboundary()
  File "/usr/lib/python2.6/cgi.py", line 697, in read_lines_to_outerboundary
    line = self.fp.readline(1<<16)
TypeError: readline() takes exactly 1 argument (2 given)

Revision history for this message
amo3 (amo3) wrote :

Restarting the process sometimes fixes the bug. The widget in question is the disk space widget.

Revision history for this message
amo3 (amo3) wrote :

Removing the widget listing from /etc/ajenti/users/user.conf allows the Ajenti dashboard to be used again.

Revision history for this message
Eugene Pankov (john-pankov) wrote :

This is a bug in Python 2.6 CGI module. It has been fixed in 2.7

Changed in ajenti:
status: New → Won't Fix
status: Won't Fix → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.