eclipse-aaspe / server

C# based server for AASX packages
Other
72 stars 52 forks source link

[Bug]: Using the Patch API for updating values also changes the idshort of properties #237

Open iosb-ina-mr opened 7 months ago

iosb-ina-mr commented 7 months ago

Contact Details

marc.riedlinger@iosb-ina.fraunhofer.de

Describe the bug

When using the Patch endpoint (see below) to update values of submodel properties, a key and value must be specified. If the key does not match the expected idshort of the server, it is overwritten with the passed key. /shells/{aasIdentifier}/submodels/{submodelIdentifier}/submodel-elements/{idShortPath}/$value

To reproduce

Create a submodel with any string-property and update it with the Swagger UI by defining a key-value that differs from the idshort on the server.

Screenshots

No response

Expected Behaviour

The Patch endpoint for updating values should only update the value and not the idshort.

Version

Commit: 2c90a7a

Operating System

Linux

Relevant log output

No response