Open Bug 1921228 Opened 8 months ago

error logging doesn`t work on windows behind IIS

Categories

(Bugzilla :: Bugzilla-General, defect)

defect

Tracking

()

UNCONFIRMED

People

(Reporter: andrew_samokish, Unassigned)

Details

User Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/129.0.0.0 Safari/537.36

Steps to reproduce:

install bugzilla on windows, with IIS.
call REST API to create a bug from my PC
forgot to set 'platform'

Actual results:

resulting error on my PC:
400, Bad Request

!!! in fact, the errorlog file supposed to be create in 'data' folder, but
I need to create this file by miself and set security rules, and it is not enogth
when I do it - I do receive HTTP answer with exception happening in bugzilla.pm at this area:

if ($ENV{SERVER_SOFTWARE} && $ENV{SERVER_SOFTWARE} =~ /microsoft-iis/i) {}
$SIG{WARN} = sub {
my ($msg) = @_;
my $datadir = bz_locations()->{'datadir'};
if (-w "$datadir/errorlog") {

because after all, bugzilla cannot store correct problem into the errorlog file due to some reason

Expected results:

description with information of missed field

You need to log in before you can comment on or make changes to this bug.