aws-connected-device-framework
aws-connected-device-framework copied to clipboard
CDF Asset Library Group Association Dupes
Aws Connected Device Framework Affected Module(s):
asset-library
I'm submitting a ...
- [X] bug report
- [ ] feature request
Description:
There is a bug in associating a group with another group. Example given the following API call:
PUT /groups/{sourceGroupPath}/{relationship}/groups/{targetGroupPath}
If the API is called multiple times, it does not check whether the relationship exists and instead creates multiple relationships. This creates problem when the user tries to list, as it shows same group multiple times.
Current behavior:
Multiple relationships are created without checking the current status.
Expected behavior:
Code checks to see whether a relationship exists before creating another one.
Steps to reproduce:
Additional Information: