Uploaded image for project: 'Mender'
  1. Mender
  2. MEN-3771

Artifact creator creates invalid artifact if more than one device type is specified

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: (None)
    • Resolution: Fixed
    • Affects Version/s: 2.4.0, 2.3.1
    • Fix Version/s: 2.4.0, 2.3.1
    • Labels:
    • Days in progress:
      0

      Description

      Steps to reproduce:

      1. In UI, go to Releases, Upload.
      2. Upload a text file and input `/` path.
      3. In device type, input raspberrypi3 and raspberrypi4. Make sure they show up as separate entries in the list (the small "buttons").

      Although not easily visible from the UI, the created artifact is invalid and contains ["raspberrypi3,raspberrypi4"] as device type instead of ["raspberrypi3","raspberrypi4"], on other words one string with the entire list, instead of a list of strings. This artifact is uninstallable on any device.

      If you call mender-artifact read on the artifact, the two entries should have a space between them, not a comma.

        Attachments

          Activity

            People

            • Assignee:
              tranchitella Fabio Tranchitella
              Reporter:
              a10040 Kristian Amlie
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Summary Panel