Closed Bug 178772 Opened 22 years ago Closed 22 years ago

doeditparams.cgi failed with malformed headers

Categories

(Bugzilla :: Administration, task, P2)

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: myk, Assigned: justdave)

References

Details

Attachments

(1 file)

doeditparams.cgi fails on the trunk with a server error after I edit params and
then submit my changes.  The Apache log says:

[Wed Nov  6 17:56:36 2002] [error] [client 64.236.139.249] malformed header from
script. Bad header=We don't have shadow databases:
/opt/webtools/bugzilla-test/doeditparams.cgi

"We don't have shadow databases" appears in syncshadowdb, which is somehow being
called first, even though doeditparams.cgi returns HTTP headers before it does
almost everything.
Blocks: 176570
This is a dupe of bug 177316, which was reported by joel, and then later marked
by him  as WFM.

The bad news is that there is no way I will be looking at this before Friday
afternoon. The good news is that my Fri afternoon is your Thursday evening,
which gives us more time.
The easy fix for this is to yank line 97 of syncshadowdb.
Bizarre.  By writing to STDERR, syncshadowdb appears to be purging the pipe of
existing output in favor of its own.
OK, this is officially bizzarre....

This fails on my solaris 7 machine with perl 5.6.1 built from source
and passes on my Linux system with the same perl source build.

Key CPAN module are the same.
I'm guessing apache version changes, or just an OS thing wrt file handles
inheriting over fork.

Why don't we just wrap the system call from doeditparams in a if
(!Param("shadowdb"))

?
Attached patch PatchSplinter Review
Status: NEW → ASSIGNED
Priority: -- → P2
Target Milestone: --- → Bugzilla 2.18
Comment on attachment 105507 [details] [diff] [review]
Patch

r= justdave
a= justdave
Attachment #105507 - Flags: review+

Checking in doeditparams.cgi;
/cvsroot/mozilla/webtools/bugzilla/doeditparams.cgi,v  <--  doeditparams.cgi
new revision: 1.22; previous revision: 1.21
done

Status: ASSIGNED → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
The real cause of this was bug 179174.
QA Contact: matty_is_a_geek → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: