comms-router
comms-router copied to clipboard
Update plan failed when plan description is too big
- Create a plan that has 255 symbols in the description
- Update the created plan
Result:
-------------------------------------------------------
Running com.softavail.api.test.PlanTest
Request method: POST
Request URI: http://192.168.1.166:8080/comms-router-web-pure/api/routers/GAJOOJopintSTk3PoeIt62/plans/M73js5zYMbbk4XNB153fR
Proxy: <none>
Request params: <none>
Query params: <none>
Form params: <none>
Path params: routerRef=GAJOOJopintSTk3PoeIt62
ref=M73js5zYMbbk4XNB153fR
Headers: If-Match="7dfcea4001a9cb4a341b3a0613bf87a8ade19a48bbf2b97b987b3ce9023dd64b"
Accept=*/*
Content-Type=application/json; charset=UTF-8
Cookies: <none>
Multiparts: <none>
Body:
{
"description": null,
"rules": [
{
"tag": null,
"predicate": "1 == 1",
"routes": [
{
"queueRef": "79Tzqzx6KGGKWWxOlUJCY1",
"priority": null,
"timeout": 1
},
{
"queueRef": "79Tzqzx6KGGKWWxOlUJCY1",
"priority": null,
"timeout": null
}
]
}
],
"defaultRoute": null
}
HTTP/1.1 500 Internal Server Error
Server: Apache-Coyote/1.1
Content-Type: application/json;charset=UTF-8
Content-Length: 124
Date: Tue, 10 Apr 2018 13:20:32 GMT
Connection: close
{
"error": {
"code": "PersistenceException",
"description": "org.hibernate.exception.DataException: could not execute statement"
}
}