kapua icon indicating copy to clipboard operation
kapua copied to clipboard

✨ [Device Management] - API to upload a JSON snapshot fragment returns 204 if the fragment is not in Kapua snapshot format

Open Agnul97 opened this issue 4 months ago • 1 comments

before this PR, you had this bug:

  1. Connect an ESF device to EC

  2. Download a JSON snapshot from the connected device directly from the Web UI of ESF (see attachment)

  3. Upload such snapshot to ESF using the rest-API

  4. The rest-api returns 204

Expected Result

The error should be 400 - Bad request

Here I fixed the issue adding a check for the presence of at least 1 component configuration inside the deviceConfiguration passed via rest-api

Agnul97 avatar Aug 27 '25 14:08 Agnul97

:warning: Please install the 'codecov app svg image' to ensure uploads and comments are reliably processed by Codecov.

Codecov Report

:x: Patch coverage is 0% with 2 lines in your changes missing coverage. Please review.

Files with missing lines Patch % Lines
...rnal/DeviceConfigurationManagementServiceImpl.java 0.00% 2 Missing :warning:

:loudspeaker: Thoughts on this report? Let us know!

codecov-commenter avatar Aug 27 '25 14:08 codecov-commenter