Closed merlinseela closed 1 month ago
Hi @merlinseela
Thanks for raising this issue. We will analyze this issue and get back to you soon.
If we need further information, I'll let you know.
I will close this issue since this is fixed in code. A new Snapshot release will follow soon including the fix.
Describe the bug I am creating a new Submodel Reference using the POST /shells/{aasIdentifier}/submodel-refs endpoint and executing it multiple times, the submodel Reference gets added successfully (201 created) and if i execute again it returns again a 201.
From my perspective it does not make sense to "re-create" an already exisiting Reference. I would expect to get a 409 (already exisits) here.
To Reproduce
{{aas_environment}}/shells/:aas_id_base64/submodel-refs
Expected behavior By already existing Reference / trying to recreate the same reference it should throw a 409 (already exists.)
BaSyx:
Screenshots
Used Asset Administration files (.aasx/.json/.xml) I believe this error can be reproduced in any running aas environment with at least 1 submodel and 1 aas, even if the submodel is already referenced to the aas.
BaSyx configuration I do not think this is necessary if needed i will present it.
System (please complete the following information):
Additional context If there are any suggestions for this issue, especially how I presented the content of this issue, feel free to let know.