Closed
Bug 259234
Opened 20 years ago
Closed 17 years ago
Event start time is greater than end time [if negative default duration]
Categories
(Calendar :: General, defect)
Calendar
General
Tracking
(Not tracked)
VERIFIED
FIXED
0.7
People
(Reporter: anupama, Assigned: bugzilla)
References
Details
Attachments
(1 file)
1.64 KB,
patch
|
mattwillis
:
review+
|
Details | Diff | Splinter Review |
User-Agent: Mozilla/4.0 (compatible; MSIE 5.01; Windows NT 5.0) Build Identifier: Event start time is greater than end time (negative values are accepted) menubar->tools->options->general.Negative values are also accepted in the default event length. Reproducible: Always Steps to Reproduce: 1.Click on menu tools. 2.Click on submenu option. 3.click on tab general. 4.On default event length,enter -60 5.click on ok. 6.open new event. Actual Results: 1.The event start time is greater than end time by "60 Minutes". Expected Results: 1.The event start time should be less than end time.
Confirmed with Mozilla Calendar 2004091012-cal Mozilla/5.0 (Windows; U; Win98; en-US; rv:1.7) Gecko 20040803 Thunderbird/0.7.3 There is no warning like while creating a new event. The warning 'Your start time is after your end time' in the dialogue box is not printed until the start or end time is manually confirmed with the time picker.
Summary: Event start time is greater than end time → Event start time is greater than end time
Not only that, but at least in Sunbird, this also accepts non-numeric values. For these it outputs 0. Interestly enough, this also allows for non-decimal inputs also. ie. 0xF is considered 15 minutes. Also this means that 09 is not in oct, and thus erroneous and zero.
Re: comment #0 Clearly there is a workaround for this bug: set the default event length to a positive number. --> minor (was critical) I don't expect many users to enter negative numbers without the motive of testing the error checking, so I think this bug is low priority.
Severity: critical → minor
Status: UNCONFIRMED → NEW
Ever confirmed: true
Summary: Event start time is greater than end time → Event start time is greater than end time [if negative default duration]
Updated•19 years ago
|
QA Contact: gurganbl → sunbird
Comment 4•18 years ago
|
||
Good first bug: We already have a hasPositiveIntegerValue function that could be used here: http://lxr.mozilla.org/mozilla/source/calendar/resources/content/applicationUtil.js#381
Depends on: 333923
Whiteboard: [good first bug]
Comment 5•18 years ago
|
||
Reassigning all automatically assigned bugs from Mostafa to nobody@m.o Bugspam filter: TorontoMostafaMove
Assignee: mostafah → nobody
I've just used the validateNaturalNums function. This patch also fixes the same problem with the defaultsnoozetime.
Attachment #257954 -
Flags: first-review?(lilmatt)
Attachment #257954 -
Flags: first-review?(lilmatt) → review?(lilmatt)
Comment 7•17 years ago
|
||
Comment on attachment 257954 [details] [diff] [review] Patch r=lilmatt for post-0.5
Attachment #257954 -
Flags: review?(lilmatt) → review+
Updated•17 years ago
|
Whiteboard: [good first bug] → [checkin post-0.5 needed]
Updated•17 years ago
|
URL: no url
Component: Sunbird Only → General
OS: Windows 2000 → All
QA Contact: sunbird → general
Hardware: PC → All
Whiteboard: [checkin post-0.5 needed] → [checkin needed after 0.5]
Updated•17 years ago
|
Assignee: nobody → bugzilla
Comment 8•17 years ago
|
||
patch checked in on trunk and MOZILLA_1_8_BRANCH -> FIXED
Status: NEW → RESOLVED
Closed: 17 years ago
Resolution: --- → FIXED
Updated•17 years ago
|
Whiteboard: [checkin needed after 0.5]
Target Milestone: --- → 0.7
Comment 10•17 years ago
|
||
Litmus testcase 4445 created
You need to log in
before you can comment on or make changes to this bug.
Description
•