This is not happening on all calls everywhere, but many of my group calls getting group roles or patching roles into the group are not working correctly. For example.
When using GET /groups//roles I get
But when I do PATCH /groups//roles with [“”]
I get a 400 error saying that the group already exists instead of an error or result indicating the role within the group.
Some sample logging from my app:
2019-01-21 20:33:26.171 debug: GET /groups => {
"groups": [
.
.
.
{
"name": "manual-SK0000000PP6",
"description": "Manual SK0000000PP6 Group",
"_id": "c62f946e-3cab-4eb2-9dd9-521c059dd7c4",
"mappings": [],
"members": []
},
.
.
.
{
"_id": "8dbb73ef-ec4d-48cb-a1de-151e9ab8d8bf",
"name": "live-SK00000001R3",
"description": "Live SK00000001R3 Group",
"roles": [
"ffb2d15c-2243-4c28-a9c4-e9f626fb70dc",
"17aa17ec-d70f-4fae-af0e-51e47a0a2b91",
"037a75c9-4c6a-48b8-aac1-5acf36f88a3a",
"e942a8e1-6580-4bfc-b29f-230532ba9f4e"
],
"mappings": [],
"members": []
},
],
"total": 21
}
2019-01-21 20:33:26.747 debug: GET /groups/c62f946e-3cab-4eb2-9dd9-521c059dd7c4/roles => []
2019-01-21 20:29:40.246 debug: PATCH /groups/c62f946e-3cab-4eb2-9dd9-521c059dd7c4/roles <= [
"e931084d-16c5-4396-96c5-226ce82968bc"
] => {
"statusCode": 400,
"error": "Bad Request",
"message": "Group with name \"manual-SK0000000PP6\" already exists"
}
I already know that the group exists, because the roles PATCH is supposed to add a role and not mess with the group itself. Not quite sure how to proceed.
Thanks
Andy