Closed
Bug 142300
Opened 23 years ago
Closed 22 years ago
failed to attach binary files
Categories
(Bugzilla :: Creating/Changing Bugs, defect, P3)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: jyhuang, Assigned: myk)
Details
Attachments
(1 file)
|
2.01 KB,
image/gif
|
Details |
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.
Comment 1•23 years ago
|
||
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?
| Reporter | ||
Comment 2•23 years ago
|
||
Comment 3•23 years ago
|
||
So it fails on unix, but works on windows? Not the other way arround?
| Reporter | ||
Comment 4•23 years ago
|
||
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.
Comment 5•23 years ago
|
||
Apparently this works with the bugzilla-tip installation on landfill, see
http://landfill.tequilarista.org/bugzilla-tip/show_bug.cgi?id=274
Updated•23 years ago
|
Priority: -- → P3
Target Milestone: --- → Bugzilla 2.18
Comment 6•23 years ago
|
||
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
Comment 8•22 years ago
|
||
No followup; WORKSFORME.
Gerv
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → WORKSFORME
Updated•21 years ago
|
Target Milestone: Bugzilla 2.18 → ---
Updated•12 years ago
|
QA Contact: matty_is_a_geek → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•