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

mender-artifact cp silently fails for non-existing directories

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Done
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
    • Days in progress:
      0

      Description

      How to reproduce:

      Assuming artifact.mender with a valid rootfs image:

      echo hola > dummy
      mender-artifact cp dummy artifact.mender:/non/existing/directory/dummy
      mender-artifact cat artifact.mender:/non/existing/directory/dummy
      failed to copy from: artifact.mender:/non/existing/directory/dummy to stdout: err: extFile: ReadError: debugfsCopyFile failed: file /non/existing/directory/dummy not found in image
      

      For some unknown reason, I cannot reproduce the same issue in a unit test. See attached patch for a unit test with the same scenario; however the unit test does trigger an error on cp

        Attachments

          Activity

            People

            • Assignee:
              oleorhagen Ole Petter Orhagen
              Reporter:
              lluis Lluís Campos
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Zendesk Support