View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0006549 | mantisbt | bugtracker | public | 2006-01-03 09:32 | 2007-10-04 01:40 |
| Reporter | totalweb | Assigned To | giallu | ||
| Priority | normal | Severity | minor | Reproducibility | always |
| Status | closed | Resolution | duplicate | ||
| Product Version | 1.0.0rc4 | ||||
| Summary | 0006549: Summary displays "longest open issue" from wrong project | ||||
| Description | When opening the summary screen, mantis also displays the longest open issue. When a user does not have access to the project containing this longest open issue it still sees the bug (which after clicking the link sais access denied). So if project A contains the longest open issue, then the summary pages of all projects display the issue from project A. In this way a user can see the title of an issue that should be blocked from its view. | ||||
| Tags | No tags attached. | ||||
|
I noticed this today too. In my setup, it is very annoying, since my clients only have access to their projects and shouldn't even be aware of other projects. Also, the issue isn't just the "longest open issue" field. Its all of the "Time Stats For Resolved Issues" fields - Longest Open, Average Time, and Total Time are also affected. I added a brand new project today and it is showing bogus time stats - although "Total Time" of 1471.73 for a 1-day old project is amusing, its not helpful. I was expecting that these fields would reflect the currently selected project like the rest of the stats on the summary page. |
|
|
Same here, it came to my notice when my manager asked why is there such a long open issue in my project, on seeing the summary report. |
|
|
Hi there, we've also noticed that problem in a similar situation as scorpfromhell. Really uncomfortable :( As a quick fix (without further testing if it effects anything other) i changed the SQL statement (starting on line 54 in current version) in the summary_page.php to look as follows: $query = "SELECT b.id, b.date_submitted, b.last_updated, MAX(h.date_modified) as hist_update, b.status That seems to solve the issue. Hasn't noticed any negative side effect yet. Greets |
|
|
Also i wanted to notice that i don't think that this value is useful at all. It does say nothing and if you have any bug that has been opened real long (until it got decided that it will never get fixed, because it is senseless or something) you don't have a chance to see a proper value in here. |
|
|
imr's patch doesn't work when you select "All Projects" or when you select a parent project. It only works when you select a single project that has no sub-project. There seems to be a partial fix in the 1.0.3 version. The variable "$specific_where" contains the correct SQL to use, but its never used. This SQL statement gets it to work in all cases (the change is "AND $specific_where" instead of "AND project_id=$t_project_id"):
Personally I find these metrics to be very useful, although as imr observed they can become meaningless if you end up with an abandoned bug in there. But if you keep an eye on the stat you can use it to help prevent getting abandoned bugs in the first place. |
|
|
See duplicate entries for this in 0007498, 0007374, 0007022, 0006632 (list of other related entries here!) and 0006223 (which contains a fix that worked for me!) |
|
|
this code from ssexton's note is in 1.1.0a2. |
|