View Issue Details

IDProjectCategoryView StatusLast Update
0032860mantisbtapi restpublic2023-10-14 12:28
Reporterdregad Assigned Todregad  
PrioritynormalSeverityminorReproducibilityalways
Status closedResolutionfixed 
Target Version2.25.8Fixed in Version2.25.8 
Summary0032860: REST API allows resolving an issue with unresolved children
Description

Attempting this via GUI triggers APPLICATION ERROR 1104 (This issue cannot be resolved until all dependant issues have been resolved), unless $g_allow_parent_of_unresolved_to_close == ON.

Additional Information

Problem was discovered while implementing tests for relationships REST API https://github.com/mantisbt/mantisbt/pull/1906#issuecomment-1693602387

TagsNo tags attached.

Relationships

related to 0021225 closedcommunity resolving parent issues inconsistency 
related to 0032861 new Implement IssueUpdateCommand 

Activities

There are no notes attached to this issue.

Related Changesets

MantisBT: master 007e3f1a

2023-08-26 06:30

dregad


Details Diff
Prevent API resolving parent with unresolved children

There are discrepancies between issue updates from the GUI vs the API,
as bug_udpate.php has not been kept in sync with mc_issue_update().

This is a quick fix for one of these occurrences; REST/SOAP API allowed
mc_issue_update() to resolve a parent Issue having unresolved children
while the GUI does not (unless $g_allow_parent_of_unresolved_to_close
is ON).

The proper, long-term solution to this problem is to implement a new
IssueUpdateCommand to ensure consistent behavior (see Issue 0032861).

Fixes 0032860
Affected Issues
0032860, 0032861
mod - api/soap/mc_issue_api.php Diff File

MantisBT: master-2.25 37f65a58

2023-08-26 06:30

dregad


Details Diff
Prevent API resolving parent with unresolved children

There are discrepancies between issue updates from the GUI vs the API,
as bug_udpate.php has not been kept in sync with mc_issue_update().

This is a quick fix for one of these occurrences; REST/SOAP API allowed
mc_issue_update() to resolve a parent Issue having unresolved children
while the GUI does not (unless $g_allow_parent_of_unresolved_to_close
is ON).

The proper, long-term solution to this problem is to implement a new
IssueUpdateCommand to ensure consistent behavior (see Issue 0032861).

Fixes 0032860

(cherry picked from commit 007e3f1aecac0b804f101dc40df82d03f395def0)
Affected Issues
0032860, 0032861
mod - api/soap/mc_issue_api.php Diff File