-
Bug
-
Resolution: Unresolved
-
Normal
-
None
-
6.17.z
Description of problem:
Do two POST requests to create same Hostgroup name at same time creates a duplicated Hostgroup.
How reproducible:
Always
Is this issue a regression from an earlier version:
No
Steps to Reproduce:
Execute next curl at same time in two terminals
~~~
curl -X POST https://pafernan-6179sat.6179.pafernan.lan/api/hostgroups --user 'admin:redhat' -H 'Content-Type: application/json' -H 'Accept: application/json' -d '{ "hostgroup":
}'
~~~
Actual behavior:
HostGroup "test" is created twice
Expected behavior:
One of the requests should fail as it already does if we retry:
~~~
{
"error": {"id":null,"errors":
,"full_messages":["Name has already been taken"]}
}
~~~
- relates to
-
SAT-21494 Creating an organization or a location through the API is not atomic
-
- Closed
-