View Issue Details

IDProjectCategoryView StatusLast Update
0034768mantisbtsub-projectspublic2024-09-28 11:28
Reporterrogueresearch Assigned Toatrol  
PriorityhighSeveritymajorReproducibilityalways
Status closedResolutionfixed 
Product Version2.26.3 
Target Version2.26.4Fixed in Version2.26.4 
Summary0034768: 'INTERNAL APPLICATION ERROR' editing some projects from manage_proj_page.php
Description

From this page: https://mantis.example.com/manage_proj_page.php

Clicking some projects (but not all), for example:

https://mantis.example.com/manage_proj_edit_page.php?project_id=12

results in: "INTERNAL APPLICATION ERROR".

Looking at the apache logs we see:

[2024-09-26 14:32:29.204735] [php:notice] [pid 38658:tid [client 10.x.x.x:52347] in_array(): Argument #2 ($haystack) must be of type array, null given\n/usr/local/etc/apache24/mantis.example.com/core/project_hierarchy_api.php: 232: - - - - in_array()\n/usr/local/etc/apache24/mantis.example.com/manage_proj_edit_page.php: 347: - - - - project_hierarchy_inherit_parent()\n

We click such links often and never had this problem before.

We suspect it is a regression. On 2024-09-12 we did some upgrades, specifically:

  • mantis: 2.26.2 to 2.26.3
  • mantis Source: 2.7.0 to 2.8.0
  • mantis SourceSVN: 2.7.0 to 2.8.0
  • mantis SourceGitlab: 2.7.0 to 2.8.0
  • apache24: 2.4.61 -> 2.4.62
  • mysql80-client: 8.0.35 -> 8.0.39
  • mysql80-server: 8.0.35_1 -> 8.0.39_1
  • php82: 8.2.20 -> 8.2.23
  • FreeBSD 14.1-RELEASE-p3 to 14.1-RELEASE-p4

We wonder if it might be related to:

https://mantisbt.org/bugs/view.php?id=34526

TagsNo tags attached.

Relationships

related to 0034526 closedcommunity Bad performance when editing a project having a lot of subprojects 
related to 0034618 closeddregad Disabled projects are not listed on page manage_proj_page.php 

Activities

atrol

atrol

2024-09-26 15:32

developer   ~0069281

Does the fix for 0034618 also fix your issue?

rogueresearch

rogueresearch

2024-09-26 18:35

reporter   ~0069282

I confirm https://github.com/mantisbt/mantisbt/pull/2027/commits/0c73e36e280e5af0b5011b62b909d24a6654c109 fixes it.

Thanks!

Related Changesets

MantisBT: master-2.26 0c73e36e

2024-09-06 18:00

dregad


Details Diff
Fix disabled projets' inclusion in hierarchy cache

The logic to check $p_show_disabled using is_null() was incorrect,
causing disabled projects to be excluded from the cache when the param's
value true.

This resulted in disabled project not being listed on Manage Projects
Page. Changing code to perform a boolean test fixes the problem.

Regression introduced by 5ff35d16e85c1aa58cc80fea260cd0f3cfc39910
(issue 0034526).

Fixes 0034618
Affected Issues
0034526, 0034618, 0034768
mod - core/project_hierarchy_api.php Diff File