View Issue Details

IDProjectCategoryView StatusLast Update
0003097mantisbtbugtrackerpublic2003-12-13 04:36
Reporterjockpereira Assigned Tovboctor  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionopen 
Product Version0.18.0a4 
Summary0003097: App Error 700 in project_api.php when viewing certain bugs.
Description

Using the latest alpha (0a4), receiving app error 700 when attempting to view certain bugs.

Can successfully edit the same bugs by clicking the crayon icon.

Error details:

APPLICATION ERROR 0000700: ERROR: Project not found.
(project_api.php: line 62)

TagsNo tags attached.

Relationships

has duplicate 0003233 closedvboctor Project link not updated when moving from a project to another. 

Activities

vboctor

vboctor

2003-04-24 04:27

manager   ~0004249

Did you manage to find anything that is specific to these bugs?

rholm

rholm

2003-06-24 20:08

reporter   ~0004360

We saw this one. It happened when we moved bugs from one project to another, and then deleted the project that we moved the bug from.

It seems that the code in project_api.php ( function project_cache_row ) is being called to show the details of the "Bug History". The code is trying to lookup the old project id and summary in mantis_projects_table.

vboctor

vboctor

2003-07-26 15:28

manager   ~0004448

Bug 0003233 is a duplicate of this one.

vboctor

vboctor

2003-07-26 15:47

manager   ~0004449

Following is a patch that should fix the problem:

Index: history_api.php

RCS file: /cvsroot/mantisbt/mantisbt/core/history_api.php,v
retrieving revision 1.14
diff -u -r1.14 history_api.php
--- history_api.php 3 Mar 2003 18:33:38 -0000 1.14
+++ history_api.php 26 Jul 2003 13:45:53 -0000
@@ -147,8 +147,19 @@
$t_field_localized = lang_get( 'projection' );
break;
case 'project_id':

  • $v_old_value = project_get_field( $v_old_value, 'name' );
  • $v_new_value = project_get_field( $v_new_value, 'name' );
  • if ( project_exists( $v_old_value ) ) {
  • $v_old_value = project_get_field( $v_old_value, 'name' );
  • } else {
  • $v_old_value = '@'.$v_old_value.'@';
  • }
  • // Note that the new value maybe an intermediately project and not the
  • // current one.
  • if ( project_exists( $v_new_value ) ) {
  • $v_new_value = project_get_field( $v_new_value, 'name' );
  • } else {
  • $v_new_value = '@'.$v_new_value.'@';
  • }
    $t_field_localized = lang_get( 'email_project' );
    break;
    case 'handler_id':
vboctor

vboctor

2003-07-26 15:51

manager   ~0004450

Fixed in CVS. Will be available in 0.18.0a5.

Related Changesets

MantisBT: master b82377e1

2003-07-26 09:50

vboctor


Details Diff
Fix 0003097: App Error 700 in project_api.php when viewing certain bugs.

M core/history_api.php
- (history_get_events_array): Check that the old/new project exists before attempting to get its name.

git-svn-id: http://mantisbt.svn.sourceforge.net/svnroot/mantisbt/trunk@2194 <a class="text" href="/?p=mantisbt.git;a=object;h=f5dc347c">f5dc347c</a>-c33d-0410-90a0-b07cc1902cb9
Affected Issues
0003097
mod - doc/ChangeLog Diff File
mod - core/history_api.php Diff File