eclipse / kapua

Eclipse Public License 2.0
225 stars 160 forks source link

Configuration PUT unable to parse example configuration #3481

Open pintify opened 2 years ago

pintify commented 2 years ago

Describe the bug In version 1.5.2, the steps of type Configuration Put are unable to parse the example configuration neither other configurations based on it that were working on version 1.4.x.

To Reproduce Steps to reproduce the behavior:

  1. Create a batch job
  2. Create a step of type configuration put
  3. Fill with template data
  4. Launch the job against a device
  5. See the error:

    imagen imagen

Version of Kapua 1.5.2

Type of deployment

Main component affected

Additional context Add any other context about the problem here.

pintify commented 2 years ago

I think I've found something that could point to the bug.

When you save/configure the step, it seems to check the config with DeviceConfiguration class. Whose child (DeviceConfigurationComponent requires a field id:

imagen

However, when the job is launched, the same configuration is marshalled through KuraDeviceConfiguration class. Whose child KuraDeviceComponentConfiguration uses pid field instead:

imagen

I don't know if there is some conversion in between.. However, is it possible this discrepancy between both formats may be behind this mashalling issue?

pintify commented 1 year ago

This issue remains on Kapua 1.6.2

pintify commented 1 year ago

The issue persists on Kapua 1.6.4

Agnul97 commented 1 year ago

Hi, Right now on the develop branch the issue should be solved. I'll check soon if it's the case also for the last 1.6.x build

pintify commented 3 months ago

The issue seems to persist in 1.6.10

pintify commented 16 hours ago

Just to verify, version 1.6.12 still has this bug