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)

2.17.4
x86
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
Bugzilla 2.18

People

(Reporter: Matti, Assigned: myk)

References

()

Details

Attachments

(1 file)

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)
I suck
Summary: http://mecha.mozilla.org/webtools/bugzilla/ → error message on mecha for "View Bugs Already Reported Today"
*** Bug 217042 has been marked as a duplicate of this bug. ***
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
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
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.
Attachment #130257 - Flags: review?(justdave)
Attachment #130257 - Flags: review?(justdave) → review+
Flags: approval+
Checking in Bugzilla/Search.pm;
/cvsroot/mozilla/webtools/bugzilla/Bugzilla/Search.pm,v  <--  Search.pm
new revision: 1.44; previous revision: 1.43
done
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
QA Contact: myk → default-qa
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: