Commit 1dc68d2
committed
<fix>[errorcode]: revert sendReplyResponse to use JSONObjectUtil serialization
CloudBusGson.httpGson does not disableHtmlEscaping(), causing single
quotes in error details to be escaped as \u0027. While valid JSON,
the SDK deserializes these literally, breaking string assertions in
tests like BatchAddBareMetal2ChassisCase that check error.details
with contains("'reboot' must be 'No'").
Restore JSONObjectUtil.toJsonString() for the sendReplyResponse error
path while keeping the centralized localization logic.
Co-Authored-By: ye.zou <ye.zou@zstack.io>1 parent aaf4e34 commit 1dc68d2
1 file changed
Lines changed: 6 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1439 | 1439 | | |
1440 | 1440 | | |
1441 | 1441 | | |
| 1442 | + | |
| 1443 | + | |
1442 | 1444 | | |
1443 | | - | |
| 1445 | + | |
| 1446 | + | |
| 1447 | + | |
| 1448 | + | |
1444 | 1449 | | |
1445 | 1450 | | |
1446 | 1451 | | |
| |||
0 commit comments