View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0011609 | mantisbt | api soap | public | 2010-03-04 04:26 | 2011-08-05 02:41 |
| Reporter | nerville | Assigned To | rombert | ||
| Priority | normal | Severity | crash | Reproducibility | always |
| Status | closed | Resolution | unable to reproduce | ||
| Product Version | 1.2.0 | ||||
| Summary | 0011609: API : get issues of a project crash when category is empty | ||||
| Description | If an issue have no category, SOAP API raise an exception. | ||||
| Steps To Reproduce | 1: configure mantisbt to allow no category in your config_inc.php | ||||
| Additional Information | Here a small patch to fix this exception : --- mc_issue_api.php.orig 2010-03-04 10:22:07.000000000 +0100
| ||||
| Tags | patch | ||||
|
no category option configuration is not correctly handle in mc_issue_api.php --- trunk/www/api/soap/mc_issue_api.php 2010/03/02 13:20:08 120
|
|
|
Will look into it, thanks. |
|
|
If category is empty, SOAP API raise an exception on mc_issue_get --- www/api/soap/mc_issue_api.php (revision 129)
$t_bug->project_id );
|
|
|
Apparently categories were required in mantisbt 1.1.8 as well but not enforced. Therefore I had a bunch of tickets using "empty" categories. After having upgraded to mantisbt 1.2.x (following git branch at the time), several issues presented themselves related to the empty categories. For example, an issue could be changed, notes could be added, and so on, but the ticket could not be marked as resolved. Mantisbt 1.2.x complains that there is no category. Furthermore, I left 'categories' empty for several projects when using 1.1.8. Then with 1.2.x, an issue could not even be created without selecting a category (which was usually difficult since one did not exist although the category dropdown seemed to imply one was available (the previous blank one)). Thus far I have worked around this by a) creating generic global categories which all (most) projects inherit, b) removing/replacing the empty categories (viewing the category table contents to find the projects containing the blank categories, viewing the properties page of those projects, adjusting the categories from there), and c) reassigning categories to the nonblank ones. Was this just a fluke in my situation or something that the upgrade procedure/script should address? |
|
|
related to issues/fixes in 0011137 ? |
|
|
@yw84ever : please open specific bugs for your problems, as they are easier to track. |
|
|
I can't reproduce using SOAP UI , and I have also added a SOAP test to our suite to verify that this works. Please provide additional information about reproducing this bug. |
|
|
@rombert, OK created 0011750 from my comments in 0011609:0024656 |
|
|
Please retest with the latest released version of MantisBT and reopen this bug if you still encounter this issue. |
|
|
MantisBT: master 9af956a3 2010-04-05 15:19 Details Diff |
Verify retrieval of issues without categories Bug 0011609: API : get issues of a project crash when category is empty reported that issues without a category set are not retrievable using the mc_filter_get function. A regression test is added to verify that this retrieval does indeed work. |
Affected Issues 0011609 |
|
| mod - tests/soap/FilterTest.php | Diff File | ||
|
MantisBT: master-1.2.x 68b7695f 2010-04-05 15:19 Details Diff |
Verify retrieval of issues without categories Bug 0011609: API : get issues of a project crash when category is empty reported that issues without a category set are not retrievable using the mc_filter_get function. A regression test is added to verify that this retrieval does indeed work. |
Affected Issues 0011609 |
|
| mod - tests/soap/FilterTest.php | Diff File | ||