# Device details show wrong information for artifacts created or uploaded with old version of mender

**URL:** <https://hub.mender.io/t/device-details-show-wrong-information-for-artifacts-created-or-uploaded-with-old-version-of-mender/4183>\
**Category:** General Discussions\
**Created:** [October 14, 2021, 2:48pm UTC](https://hub.mender.io/t/device-details-show-wrong-information-for-artifacts-created-or-uploaded-with-old-version-of-mender/4183 "2021-10-14T14:48:57Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![manuel\_vps](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@manuel\_vps](https://hub.mender.io/u/manuel_vps)\
**Post date:** [October 14, 2021, 2:48pm UTC](https://hub.mender.io/t/device-details-show-wrong-information-for-artifacts-created-or-uploaded-with-old-version-of-mender/4183/1 "2021-10-14T14:48:58Z")

</div>

Hello all,

when we downgrade our devices to an old artifact, the information shown in the device details gets out-of-sync.

![out-of-sync](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/b/b8f2c32370bbd406e7c85aa7b030a2a17babeb75.png)

When I checked wether it shows just the wrong name or even the wrong checksum, I realized the old artifact doesn’t even have a name or checksum.

Details of old artifact:

 ![old-artifact](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/6/67bd6d0ce7a08a94851c867410282e765a9a524d.png)

Details of new artifact:

 ![new-artifact](https://canada1.discourse-cdn.com/flex036/uploads/mender/original/2X/2/2ae9ba8a1b1f52d0bddf04341d0642e11501cdda.png)

I didn’t dig particularly deep, but my assumption is the metadata `System filesystem` and `checksum` gets created/added only with newer versions of mender. I assume in the device details page, the `System software version` and `checksum` gets overwritten with the values of the most recently deployed artifact. If the artifact doesn’t contain these info, the old values are kept instead being deleted.

This is not of upmost importance but nevertheless I wanted you to inform you of this.

Best regards,  
Manuel

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [October 15, 2021, 8:16am UTC](https://hub.mender.io/t/device-details-show-wrong-information-for-artifacts-created-or-uploaded-with-old-version-of-mender/4183/2 "2021-10-15T08:16:59Z")

</div>

Hmm, it is supposed to clear that information. What is the version of the Mender client in the old artifact?

---

<div class="post-metadata">

**Author:** ![manuel\_vps](https://avatars.discourse-cdn.com/v4/letter/m/a87d85/32.png) [@manuel\_vps](https://hub.mender.io/u/manuel_vps)\
**Post date:** [October 21, 2021, 10:07am UTC](https://hub.mender.io/t/device-details-show-wrong-information-for-artifacts-created-or-uploaded-with-old-version-of-mender/4183/3 "2021-10-21T10:07:30Z")

</div>

Hi @kacf,

the yocto build creating this artifact was using [`mender-client_2.4.1.bb`](https://github.com/mendersoftware/meta-mender/blob/dunfell-v2020.12/meta-mender-core/recipes-mender/mender-client/mender-client_2.4.1.bb).

---

<div class="post-metadata">

**Author:** ![kacf](https://yyz2.discourse-cdn.com/flex036/user_avatar/hub.mender.io/kacf/32/146_2.png) [@kacf](https://hub.mender.io/u/kacf)\
**Post date:** [October 22, 2021, 7:10am UTC](https://hub.mender.io/t/device-details-show-wrong-information-for-artifacts-created-or-uploaded-with-old-version-of-mender/4183/4 "2021-10-22T07:10:29Z")

</div>

Thanks. I think that the data on the device is correct, this is due to a bug in the reporting. 2.4.x and earlier used an HTTP PATCH endpoint which didn’t support clearing of already existing values. In 2.5.x the client was switched to use a PUT endpoint instead, which supports it.

A very inconvenient, but possible workaround is to decommission the device, and then re-accept it. This should clear the fields in the database, and the next time the client reports, the values should be correct.
