Closed
Bug 217029
Opened 21 years ago
Closed 21 years ago
error message on mecha for "View Bugs Already Reported Today"
Categories
(Bugzilla :: Query/Bug List, defect)
Tracking
()
RESOLVED
FIXED
Bugzilla 2.18
People
(Reporter: Matti, Assigned: myk)
References
()
Details
Attachments
(1 file)
801 bytes,
patch
|
justdave
:
review+
|
Details | Diff | Splinter Review |
a) click the link "View Bugs Already Reported Today" b) get an error : '' is not a legal date. (using a current trunk win2k Mozilla as client)
Reporter | ||
Comment 1•21 years ago
|
||
I suck
Summary: http://mecha.mozilla.org/webtools/bugzilla/ → error message on mecha for "View Bugs Already Reported Today"
Assignee | ||
Comment 2•21 years ago
|
||
*** Bug 217042 has been marked as a duplicate of this bug. ***
Assignee | ||
Comment 3•21 years ago
|
||
mothra is running Date::Parse version 2.09; mecha's running 2.27. The behavior is different: mothra:bugzilla> perl -e'use Date::Parse; print $Date::Parse::VERSION . ": " . str2time("") . "\n";' 2.09: 1061535600 [root@mecha bugzilla]# perl -e'use Date::Parse; print $Date::Parse::VERSION . ": " . str2time("") . "\n";' 2.27: Bugzilla/Search.pm expects str2time("") to return the current time, so it balks when it gets an undefined time back from the newer version of the function.
Blocks: 215201
Assignee | ||
Comment 4•21 years ago
|
||
Fixed on mecha with an explicit check for an empty string. Moving this bug over to the Bugzilla product so the underlying Bugzilla problem can be addressed.
Component: Server Operations → Query/Bug List
Product: mozilla.org → Bugzilla
Target Milestone: --- → Bugzilla 2.18
Version: other → 2.17.4
Assignee | ||
Comment 5•21 years ago
|
||
This patch simply checks to see if the date string is empty and creates its own date string if so. We can't just return date2str(str2time(time)) or something like it because current behavior is to return a string representing the beginning of the day (i.e. "yyyy-mm-dd 00:00:00") if no date is given.
Assignee | ||
Updated•21 years ago
|
Attachment #130257 -
Flags: review?(justdave)
Updated•21 years ago
|
Attachment #130257 -
Flags: review?(justdave) → review+
Updated•21 years ago
|
Flags: approval+
Assignee | ||
Comment 6•21 years ago
|
||
Checking in Bugzilla/Search.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search.pm,v <-- Search.pm new revision: 1.44; previous revision: 1.43 done
Assignee | ||
Comment 7•21 years ago
|
||
Checking in Bugzilla/Search.pm; /cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search.pm,v <-- Search.pm new revision: 1.44; previous revision: 1.43 done
Status: NEW → RESOLVED
Closed: 21 years ago
Resolution: --- → FIXED
Updated•12 years ago
|
QA Contact: myk → default-qa
You need to log in
before you can comment on or make changes to this bug.
Description
•