MantisBT: master-2.26 656f93ee

Author Committer Branch Timestamp Parent
dregad dregad master-2.26 2024-09-20 20:38 master-2.26 64eca96d
Affected Issues  0034683: REST POST /issues allows creation of Issue when invalid Category is specified
Changeset

REST: error when creating issue with invalid category

When calling the POST /issues endpiont with a payload including an
invalid Category and $g_allow_no_category = ON, the Issue was created
successfully (HTTP 201) with an empty category.

Changing the logic in mci_get_category_id() so that a ClientException
is thrown in this case.

Fixes 0034683

mod - api/soap/mc_api.php Diff File