View Issue Details

IDProjectCategoryView StatusLast Update
0011813mantisbtfilterspublic2010-04-23 14:31
Reporteroskar.berggren Assigned Tojreese  
PrioritynormalSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version1.2.0 
Fixed in Version1.2.1 
Summary0011813: Project '0' not found when viewing bugs for all projects - no bugs shown
Description

It is possible to get into a state where the view bugs page says "Project '0' not found" when "All projects" is selected at the top of the page.

There are two problems here:

  1. The '0' is wrong. It should be a different number.
    There seems to be a missing call to error_parameters( $p_project_id ); before
    trigger_error( ERROR_PROJECT_NOT_FOUND, ERROR ); in
    project_api.php:project_cache_row().

  2. Of course we shouldn't get the error at all. This is because the filter may
    contain a list of projects, and if that list contains project that no longer
    exists, the page explodes.

Steps To Reproduce
  1. Go to "view issues".

  2. Select "all projects" at the top of the page.

  3. Select "advanced" filters.

  4. Expand the "Projects" filter.

  5. Select a number of specific projects.

  6. Activate the filter.

  7. Go to administration and delete one of the selected projects.

  8. Go back to "view issues". -->> "Project '0' not found".

This is because the page tries to retrieve the name of a project that no longer exists. Around line 3317 in the enormous-beyond-belief method filter_draw_selection_area2() in filter_api.php.

Additional Information

To get out of this:

Goto "view issues" with "all projects" selected. Remove the cookie MANTIS_VIEW_ALL_COOKIE and reload the page. Select "advanced" view, expand the project filter, and choose something different. Activate. This seems to update the filter specification to get rid of the reference to the non-existing project.

TagsNo tags attached.

Relationships

related to 0011812 closedjreese Manage configuration page displays wrong error message 

Activities

jreese

jreese

2010-04-19 12:14

reporter   ~0025154

Fix committed to 1.2.x and master branches.

Related Changesets

MantisBT: master-1.2.x 0ae56c08

2010-04-19 12:12

jreese


Details Diff
Fix 0011813: Filters error with deleted projects Affected Issues
0011813
mod - core/filter_api.php Diff File

MantisBT: master 79255f6b

2010-04-19 12:12

jreese


Details Diff
Fix 0011813: Filters error with deleted projects Affected Issues
0011813
mod - core/filter_api.php Diff File