Hi,

I run Bugzilla 3.0.3 running under Apache/Windows XP. It has been
working fine. So I decided to upgrade to 3.0.5.

I downloaded the 3.0.3 to 3.0.5 patch and tried to apply it using the
GNU win32 patch.exe. But patch.exe fails on an assertion (persumably
because the diff file contains Unix style paths versus Windows style
paths).

So I installed cygwin and executed the patch command under cygwin. It
ran fine without any errors.

I then ran "perl checksetup.pl" which ran fine. But when I then tried to
access Bugzilla, I just got a web page stating there had been an
internal error....
The Apache log file contained the following:

Premature end of script headers: index.cgi, referer: http://x/
Can't locate Bugzilla/Config.pm in @INC (@INC contains: .
C:/perl/site/lib C:/perl/lib) at Bugzilla.pm line 29.\r, referer:
http://x/
BEGIN failed--compilation aborted at Bugzilla.pm line 29.\r, referer:
http://x/
Compilation failed in require at C:/bugzilla/index.cgi line 34.\r,
referer: http://x/
BEGIN failed--compilation aborted at C:/bugzilla/index.cgi line 34.\r,
referer: http://x/

If you Google for some of these strings you will see that other people
have reported this as well, with little reply or success. (One person
did report that he managed to fix it up by uploading the Bugzilla source
files to his web server again and setting ASCI mode rather than binary
more (that doesnt apply to me)).

After trying various things for hours, I finally discovered that this
was caused by the Windows directory security and permissions somehow
having gotten messed up. So what I had to do was go up to my Bugzilla
root directory and (using Widows file explorer) change the user
permissions to explicitly have Full Control, and very importantly (this
is key!!!!), to inherit those permissions down to subdirectories and
files.

And Viola! Bugzilla 3.0.5 is magically up and running again!

Please record this solution in your documentation or patch/upgrade
readme notes, somewhere where it can be found or googled. As I say, if
you google this error you will find several reports of this type or
problem, but no solution and in some cases no replies. Now we have one.
It may also be worth mentioning that the GNU Windows patch.exe wont work
on the patch diff file, use the cygwin patch.exe under Windows instead,
and also you can unzip the patch file by using 7-Zip or JZip under
Windows if need be.

I realize most people run Apache/Bugzila under Linux (the lucky ones)
and so this problem may not be overly common, but some of us have to,
erm, endure Windows.



This e-mail is confidential and intended only for the individual(s) to whom
it is addressed. If you or your organisation is not an intended recipient of
this e-mail, please notify the sender by replying and do not read or
disseminate its information. Please delete all copies from your system. KBC
is liable neither for the proper or complete transmission of the information
contained in this communication nor for any delay in its receipt. Opinions,
conclusions and other information in this message and attachments that do not
relate to the official business of KBC are neither given nor endorsed by it.
Even though the Mailcontrol Virus Centre has checked this message for
all known viruses, you should carry out your own virus checks before opening
any attachments. Thank you for your co-operation. www.kbcat.com