Closed Bug 142300 Opened 23 years ago Closed 22 years ago

failed to attach binary files

Categories

(Bugzilla :: Creating/Changing Bugs, defect, P3)

2.14.1
x86
Linux

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: jyhuang, Assigned: myk)

Details

Attachments

(1 file)

Attaching an image file got the following error message: Software error: insert into attachments (bug_id, filename, description, mimetype, ispatch, submitter_id, thedata) values (36,'D:\\tmp\\logo.gif', 'test', 'image/gif', 0, 1, 'GIF89a}\0F\0æ\0\0ÿÿÿ÷÷ÿ÷÷÷ï÷÷ÿï÷ÿïïïïïïï÷æï÷ææ÷ææ?ÞæÞæï÷ÞÞÞÞïÞÞÞ÷ÖÖ÷ÖÞÖÞïæÖæÖÖ [Snip] quot;l]?YlKG?Yl^7?]b?N??]5D§l\'NlS?Y???\0;'): You have an error in your SQL syntax near 'N?\02öø#"ru©È‘ÎA?{Ñq?{VXg\0C&§à?Èu?quot;*ºW?ÖùÇÉŸà¥\0^™É�Á ‚{{?amp;—n‰ôù\\¥aÊɇî' at line 1 at globals.pl line 215, <STDIN> line 34. I think this is because the sql syntax contains invalid string patterns that causes $::currentquery->execute failed (in global.pl line 215), even the string was translated by SqlQuote. I have two Bugzilla installations with MySQL on different platforms. One is on Linux, and the other is on Windows. Both MySQL versions are 3.23.49. Attaching the image file failed on the Bugzilla with MySQL running on Linux, but attaching the same file works on the Bugzilla with MySQL running on Windows.
Can you attach a file that triggers this bug when you try to upload it? If you can't attach it as-is on bugzilla.mozilla.org, can you try to attach a .gz or .tar file containing it, or maybe even the result of uuencode (a base64 encoder)? Does attaching it on http://landfill.tequilarista.org/bugzilla-tip/ work?
So it fails on unix, but works on windows? Not the other way arround?
I have two installations: 1) Bugzilla 1.14.1 on Linux, MySQL 3.23.49 on Linux 2) Bugzilla 1.14.1 on Linux, MySQL 3.23.49 on Windows 2000 1) fails, but 2) works.
Apparently this works with the bugzilla-tip installation on landfill, see http://landfill.tequilarista.org/bugzilla-tip/show_bug.cgi?id=274
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.18
jyhuang@wizs.org: are you still seeing problems like this? We just started using CGI.pm for the file upload interface, so that should be even more compatible... Gerv
Id this was the other way arround, it would be a dupe of bug 62000
No followup; WORKSFORME. Gerv
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Target Milestone: Bugzilla 2.18 → ---
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

Creator:
Created:
Updated:
Size: