Closed Bug 88040 Opened 23 years ago Closed 23 years ago

Can not attach binary files to bugs under Win2K

Categories

(Bugzilla :: Bugzilla-General, defect)

x86
Windows 2000
defect
Not set
major

Tracking

()

RESOLVED DUPLICATE of bug 62000

People

(Reporter: mfleming, Assigned: justdave)

Details

Attachments

(1 file)

When creating an attachment to a binary file, it does not work, I am always 
asked for the description.  

Text files work, but when a binary file is selected it looks like the $::FORM
('data') field is filled out and the $::FILENAME('data') is filled out, but the 
$::FORM('description') is always empty, causing the add to fail.  

I was able to get around this by adding a default description if the 
description was not given.

After doing so I tested the storage of the image in the database and had 
problems with that.  The data is the converted into a string and stuffed into a 
field of type longblob, but it looks like some things are missing when you do 
that, because the data that you retrieve is corrupted.  I tested this with both 
word and gif files, and got the same results.

I am running MYSQL version 3.23.27 for windows.
Is the problem that you're running bugzilla on Win2K?  If it is, I think there
some binmode() magic that has to be done that isn't required on Unix based systems
I added 
binmode( STDOUT );
binmode( STDIN );

before the require "CGI.pl"; line and everything worked!!

Status: NEW → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
in search of accurate queries...
Status: RESOLVED → REOPENED
Resolution: FIXED → ---


*** This bug has been marked as a duplicate of 62000 ***
Status: REOPENED → RESOLVED
Closed: 23 years ago23 years ago
Resolution: --- → DUPLICATE
moving all closed Bugzilla bugs to the new Bugzilla product.
This batch is DUPLICATE/INVALID/WORKSFORME/WONTFIX
reassigning to default owner and QA in case of the bug being reopened.
Clearing milestones, since we really shouldn't have them on these types of
resolutions.  Sorry for the spam everyone...
Assignee: tara → justdave
Status: RESOLVED → NEW
Component: Bugzilla → Bugzilla-General
Product: Webtools → Bugzilla
Version: Bugzilla 2.12 → unspecified
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: