can die during file creation, unclearly




8 years ago
6 years ago


(Reporter: Yuri, Assigned: Max Kanat-Alexander)




(1 attachment)



8 years ago
User-Agent:       Mozilla/5.0 (X11; U; FreeBSD i386; en-US; rv: Gecko/20100708 Firefox/3.5.10
Build Identifier: 


httpd-errors.log got such record:
[Tue Jul 20 13:24:45 2010] [error] [client] [Tue Jul 20 13:24:45 2010] index.cgi: Use of uninitialized value in split at Bugzilla/ line 295.

Reproducible: Always

Comment 1

8 years ago
Line 295 is:

 my @proxies = split(/[\s,]+/, Bugzilla->params->{'inbound_proxies'});

Did you run before accessing index.cgi? This parameter cannot be undefined.

Comment 2

8 years ago
I am running now, getting the error:
No such file or directory at Bugzilla/Install/ line 508
even though file Bugzilla/Install/ exists.

Otherwise it complains about various things missing, like this:
Checking for           perl-ldap (any)      not found 
Checking for         Authen-SASL (any)     ok: found v2.1401                                                                                                
Checking for          RadiusPerl (any)      not found 
Checking for           SOAP-Lite (v0.710.06)  not found                                                                                                     
Checking for            JSON-RPC (any)      not found                                                                                                       
Checking for          Test-Taint (any)      not found                                                                                                       
Checking for         HTML-Parser (v3.40)   ok: found v3.66                                                                                                  
Checking for       HTML-Scrubber (any)     ok: found v0.08 
Checking for Email-MIME-Attachment-Stripper (any)     ok: found v1.316 
Checking for         Email-Reply (any)     ok: found v1.202 
Checking for         TheSchwartz (any)      not found 
Checking for      Daemon-Generic (any)      not found                                                                                                       
Checking for            mod_perl (v1.999022)  not found                                                                                                     
This doesn't look important.

Message in the error log still shows up. But in the browser bugzilla seems to work withoutn a problem. Just an httpd message.

Comment 3

8 years ago
Line 508 of is:

 my $fh = new IO::File($file, O_WRONLY | O_CREAT, $info->{perms})

Looks like a permission issue when trying to create a new file. The warning displayed in comment 0 may just be a consequence of another problem. mkanat, do you have an idea? Is that a support question?

Comment 4

8 years ago
It might be a support issue. Unfortunately I didn't put the file name into the error message, so it's hard to say. I'll attach a patch for Yuri that makes the message clearer.
Ever confirmed: true
OS: FreeBSD → All
Hardware: x86 → All
Summary: Use of uninitialized value in split at Bugzilla/ → can die during file creation, unclearly

Comment 5

8 years ago
Created attachment 458813 [details] [diff] [review]
Better Error Message

This makes the error message clearer. Yuri, could you apply this patch to your installation and then run again and tell us the error? Your problem is that is not completing.
Assignee: general → mkanat
Attachment #458813 - Flags: review+

Comment 6

8 years ago
Oh, I see why I didn't make it clearer--because "Creating $file..." is right above it. Yuri, could you attach (as an attachment) the entire output of your

Comment 7

8 years ago
:-) funny but I modified in precisely the same way as your patch before I even got the patch from you.

Message now is:
Creating contrib/.htaccess...
contrib/.htaccess: No such file or directory at Bugzilla/Install/ line 508.

contrib only exists under skins:
> find . -name contrib

Is it supposed to be in bugzilla root?

Comment 8

8 years ago
Ahh. Are you using an rpm or deb package to install Bugzilla? If so, this is sort of a bug in their package. Or at least, it's something I'll have to figure out or talk over with the package maintainers.

Comment 9

8 years ago
I use FreeBSD port.
It's current maintainer is listed as: skv at FreeBSD with organization suffix added.

Comment 10

7 years ago
Is this still actual?

Comment 11

6 years ago
Seems not...
Last Resolved: 6 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.