Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] PUT/PATCH on File SubmodelElement deletes Attachment file #405

Open
aaronzi opened this issue Aug 28, 2024 · 1 comment
Open

[BUG] PUT/PATCH on File SubmodelElement deletes Attachment file #405

aaronzi opened this issue Aug 28, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@aaronzi
Copy link
Member

aaronzi commented Aug 28, 2024

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:

  1. Go to a file SME including an attachment
  2. Update the file SME via PUT request (e.g. the desciption)
  3. try to fetch the attachment again of that file SME
  4. 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):

  • BaSyx Version: 2.0.0-SNAPSHOT
  • BaSyx SDK: Java V2
  • AAS Version: DotAAS V3
@aaronzi aaronzi added the bug Something isn't working label Aug 28, 2024
@aaronzi aaronzi moved this from Backlog to Ready in Support Requests Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Ready
Development

No branches or pull requests

2 participants
@aaronzi and others