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)
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.
| Reporter | ||
Comment 1•20 years ago
|
||
Looks like ThrowCodeError() should be moved outside doctor.cgi first.
| Reporter | ||
Updated•20 years ago
|
Status: NEW → ASSIGNED
| Reporter | ||
Updated•20 years ago
|
Assignee: myk → LpSolit
Status: ASSIGNED → NEW
| Reporter | ||
Updated•19 years ago
|
Assignee: LpSolit → myk
Status: ASSIGNED → NEW
Comment 2•19 years ago
|
||
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
Comment 3•14 years ago
|
||
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).
Comment 4•14 years ago
|
||
Woah, we're still running Doctor?
| Reporter | ||
Comment 5•14 years ago
|
||
(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.
Comment 6•14 years ago
|
||
(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.
| Assignee | ||
Updated•10 years ago
|
Product: Webtools → Webtools Graveyard
You need to log in
before you can comment on or make changes to this bug.
Description
•