SiT! Bugs

View Issue Details Jump to Notes ] Issue History ] Print ]
IDProjectCategoryView StatusDate SubmittedLast Update
0001555SiT!incidentspublic2011-06-07 19:492011-06-24 18:03
Reporterivan 
Assigned Toivan 
PrioritynormalSeveritymajorReproducibilityhave not tried
StatusresolvedResolutionfixed 
PlatformOSOS Version
Product VersionCurrent GIT 
Target Version3.90beta1Fixed in VersionCurrent GIT 
Summary0001555: rand error when adding incidents
Descriptionmt_rand(): max(-1) is smaller than min(0) in /home/ivan/src/ericthefish-sit/lib/incident.inc.php @ line 370 mt_rand() suggest_reassign_userid()

Additional InformationIncident is still created but not re-assigned to anybody - stays with person who logged.
TagsNo tags attached.
Attached Files

- Relationships

-  Notes
User avatar (0003894)
paulh (administrator)
2011-06-07 20:02

Confirmed this could happen, from a quick read of the code looks like it would happen if there where no engineers set to accepting
User avatar (0004066)
ivan (administrator)
2011-06-24 17:34

Tried to repro this and with no user accepting the incident is moved to the Unassigned queue (in holding queue) as expected.
User avatar (0004067)
ivan (administrator)
2011-06-24 18:03

Git 84a4c8b: Fix for Mantis 1555 rand error when adding incidents.

- Issue History
Date Modified Username Field Change
2011-06-07 19:49 ivan New Issue
2011-06-07 19:50 ivan Additional Information Updated View Revisions
2011-06-07 20:02 paulh Note Added: 0003894
2011-06-07 20:02 paulh Status new => confirmed
2011-06-24 17:34 ivan Note Added: 0004066
2011-06-24 18:00 ivan Assigned To => ivan
2011-06-24 18:00 ivan Status confirmed => assigned
2011-06-24 18:03 ivan Note Added: 0004067
2011-06-24 18:03 ivan Status assigned => resolved
2011-06-24 18:03 ivan Fixed in Version => Current GIT
2011-06-24 18:03 ivan Resolution open => fixed


Copyright © 2000 - 2019 MantisBT Team
Powered by Mantis Bugtracker