Bug 16939

Summary: attachment content-type autodetection regression?
Product: Infrastructure Reporter: Michael Shigorin <mike>
Component: bugzilla.altlinux.orgAssignee: Mikhail Gusarov <dottedmag>
Status: CLOSED WONTFIX QA Contact: Mikhail Gusarov <dottedmag>
Severity: minor    
Priority: P2    
Version: unspecified   
Hardware: all   
OS: Linux   
Attachments:
Description Flags
test none

Description Michael Shigorin 2008-08-30 10:35:30 MSD
Вешая https://bugzilla.altlinux.org/attachment.cgi?id=2863 (патч), оставил по привычке тип на автомате; получился octet-stream, пришлось поправить руками.

Дорогая редакция, прошу исправить эту несправедливость :-)
Comment 1 Mikhail Gusarov 2008-08-30 10:40:54 MSD
Created attachment 2865 [details]
test
Comment 2 Mikhail Gusarov 2008-08-30 10:41:14 MSD
А у меня - text/x-c :)
Comment 3 Mikhail Gusarov 2008-08-30 10:50:02 MSD
"When a file is uploaded the browser usually sends along some information along with it in the format of headers. The information usually includes the MIME content type."

из http://search.cpan.org/~lds/CGI.pm-3.41/CGI.pm

И правда, багзилла пользуется именно этой информацией. В ближайшей перспективе - ничего не могу поделать, могу только посоветовать загнать баг на апстрим, чтобы там детект типа файла на стороне сервера дописали.
Comment 4 Michael Shigorin 2008-09-01 18:12:44 MSD
Спасибо, так и подумал; до апстрима сейчас не дотянусь.
Ну да и ладно.