View Issue Details

IDProjectCategoryView StatusLast Update
0011619mantisbtapi soappublic2010-06-09 03:44
Reporternerville Assigned Torombert  
PrioritynormalSeveritycrashReproducibilityalways
Status closedResolutionduplicate 
Product Version1.2.0 
Summary0011619: API : get issue detail crash when category is empty
Description

if you want to get issue details when issue has no category, you get a SOAP exception.

Steps To Reproduce

1: configure mantisbt to allow no category in your config_inc.php
2: add an issue without category
3: call mc_issue_get soap function

Additional Information

Patch :
--- www/api/soap/mc_issue_api.php (revision 129)
+++ www/api/soap/mc_issue_api.php (working copy)
@@ -100,7 +100,9 @@
$t_issue_data['last_updated'] = timestamp_to_iso8601( $t_bug->last_updated );

    $t_issue_data['project'] = mci_project_as_array_by_id( $t_bug->project_id );
  • $t_issue_data['category'] = mci_null_if_empty( category_get_name( $t_bug->category_id ) );
  • if( !empty( $t_bug->category_id ) ) {
  • $t_issue_data['category'] = mci_null_if_empty( category_get_name( $t_bug->category_id ) );
  • }
    $t_issue_data['priority'] = mci_enum_get_array_by_id( $t_bug->priority, 'priority', $t_lang );
    $t_issue_data['severity'] = mci_enum_get_array_by_id( $t_bug->severity, 'severity', $t_lang );
    $t_issue_data['status'] = mci_enum_get_array_by_id( $t_bug->status, 'status', $t_lang );
TagsNo tags attached.

Relationships

duplicate of 0011609 closedrombert API : get issues of a project crash when category is empty 

Activities

rombert

rombert

2010-03-05 09:28

reporter   ~0024651

Please comment and follow-up on the 0011609.

Robert