Describe the bug
When Updating a file SubmodelElement (without changing the value of the file SME), the attachment file get's deleted. This is due to how updating the element works. First the Element get's deleted and then replaced by the new element coming from the users request. Deleting the element includes the deletion of the attachment.
To Reproduce
Steps to reproduce the behavior:
Go to a file SME including an attachment
Update the file SME via PUT request (e.g. the desciption)
try to fetch the attachment again of that file SME
See a 404 error
Expected behavior
When the path does not get updated or the file deleted entirely, the attachment should not get removed.
BaSyx (please complete the following information):
Describe the bug When Updating a file SubmodelElement (without changing the value of the file SME), the attachment file get's deleted. This is due to how updating the element works. First the Element get's deleted and then replaced by the new element coming from the users request. Deleting the element includes the deletion of the attachment.
To Reproduce Steps to reproduce the behavior:
Expected behavior When the path does not get updated or the file deleted entirely, the attachment should not get removed.
BaSyx (please complete the following information):