View Issue Details
ID | Project | Category | View Status | Date Submitted | Last Update |
---|---|---|---|---|---|
0035668 | mantisbt | api rest | public | 2025-03-27 09:11 | 2025-03-28 10:15 |
Reporter | pikachurus | Assigned To | |||
Priority | normal | Severity | minor | Reproducibility | always |
Status | confirmed | Resolution | open | ||
Product Version | 2.26.4 | ||||
Summary | 0035668: can't change issue category to "no category" via rest api | ||||
Description | Hi! trying to change issue category to "(no category)" via api by setting id to 0, but returns "Category not found": Invoke-RestMethod : {"message":"Category '{\"id\":\"0\"}' not found.","code": | ||||
Tags | No tags attached. | ||||
@pikachurus do you have set |
|
yes, $g_allow_no_category = ON; I'll be able to check with 2.26.3 in a few days. btw, in web interface i can change category to 'no category' with no problem. |
|
The reported behavior is reproducible in 2.26.4 and the latest master branch with the request below. It appears to be a regression introduced by the fix for 0034683 - in 2.26.3 the same request does clear the category.
Response code: 404 (Category '{"id":0}' not found.); Time: 71ms (71 ms); Content length: 92 bytes (92 B) For the record, with MantisBT 2.26.4 and later it is currently possible to unset the category with the following payload. At this time I am not sure whether this is actually correct or even intentional, but at least for now you can use that as a workaround. |
|