Closed Bug 335885 Opened 20 years ago Closed 2 years ago

When Doctor::File::checkout() fails, it should throw an error

Categories

(Webtools Graveyard :: Doctor, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED INCOMPLETE

People

(Reporter: LpSolit, Unassigned)

References

Details

From the shell, I entered: cvs -d :pserver:anonymous:anonymous\@cvs-mirror.mozilla.org:/docs checkout mozilla-org/html/index.html And I got: /docs: no such repository But Doctor::File::checkout() does the following check: if ($rv == 0) { ... # everything goes well elsif ($errors =~ /cannot find/) { $self->{_version} = "new"; } And so with the error above, it assumes the file exists, see e.g. edit.html.tmpl: [% is_new = (file.version == "new" ? 1 : 0) %] It should throw an error instead.
Looks like ThrowCodeError() should be moved outside doctor.cgi first.
Status: NEW → ASSIGNED
Assignee: myk → LpSolit
Status: ASSIGNED → NEW
Status: NEW → ASSIGNED
Depends on: 335947
Assignee: LpSolit → myk
Status: ASSIGNED → NEW
Reassigning all my Doctor bugs to nobody@mozilla.org to reflect that I'm not working on them. Bugmail filter flag: scooby doo.
Assignee: myk → nobody
So our doctor install at mozilla.org has been busted for a week or so, and nobody knew why... turns out the box it moved to didn't have cvs installed on it, and this bug made it incredibly hard to debug that (no clue was given in the browser or in the logs why it was failing, it just silently failed).
Woah, we're still running Doctor?
(In reply to Myk Melez [:myk] [@mykmelez] from comment #4) > Woah, we're still running Doctor? Yes, to update bugzilla.org. :) I heard I may be the single user of Doctor, though.
(In reply to Frédéric Buclin from comment #5) > (In reply to Myk Melez [:myk] [@mykmelez] from comment #4) > I heard I may be the single user of Doctor, though. You're not, I found records in the logs of someone editing seamonkeyproject.org with it as well yesterday.
Product: Webtools → Webtools Graveyard
Status: NEW → RESOLVED
Closed: 2 years ago
Resolution: --- → INCOMPLETE
You need to log in before you can comment on or make changes to this bug.