[IAG] Deleting a user using the open interface of 12.0.9 failed
Problem Description
Using the open interface of 12.0.9, we tested the function of deleting users and found that users could not be deleted.
Process——
- The third-party platform sends a data packet to IAG's TCP9999 port via POST to delete the user. We capture this data packet to see if it complies with our specifications.
- The packet capture result is shown in the figure below. It is found that the packet returned by IAG is {"code":1,"message":"The random string and MD5 value of permission check can't be empty!"}, which indicates that the parameter is empty. However, the actual data packet contains random and MD5. After checking, it is found that the POST submission format contains Content-Type: application/x-www-form-urlencoded; Charset=UTF-8.

134505b552a18cd97e.png (42.63 KB)
Root cause
The form format used for submission caused IAG recognition errors. Normally, it should be carried in JSON format.

319385b552d1e1cb55.png (44.21 KB)
solution
Change the form format submission to JSON format submission.
Content-Type in the submitted POST data packet: application/x-www-form-urlencoded; Charset=UTF-8
Change to Content-Type: application/json;charset=utf-8
Original Link
https://support.sangfor.com.cn/cases/list?product_id=22&type=1&category_id=6069&isOpen=true