Roundup Tracker - Issues

Issue 494451

classification
file upload fails with Python2.2
Type: Severity: normal
Components: Web interface Versions:
process
Status: closed fixed
:
: richard : ericjones, richard
Priority: normal :

Created on 2001-12-18 03:41 by ericjones, last changed 2001-12-18 22:04 by richard.

Messages
msg94 Author: [hidden] (ericjones) Date: 2001-12-18 03:41
When trying to add a file to a bug report, I get the 
following traceback.  This is on windows 2000 with 
Python2.2.  My command line was:

    roundup-server -p 9090


Traceback (most recent call last):
  File "C:\Python22\Lib\site-
packages\roundup\cgi_client.py", line 567, in newfile
    type=type, name=file.filename))
  File "C:\Python22\Lib\site-
packages\roundup\cgi_client.py", line 411, in 
_post_editnode
    if type(value) != type([]): value = [value]
UnboundLocalError: local variable 'type' referenced 
before assignment

msg95 Author: [hidden] (richard) Date: 2001-12-18 22:04
Logged In: YES 
user_id=6405

This has been fixed in CVS. The simplest fix is to find 
the couple of places in cgi_client where the mime type is 
determined by calling mimetypes.guess_type, and change the 
result of that call from "type" to "mime_type".

History
Date User Action Args
2001-12-18 03:41:54ericjonescreate