canonical / canonical/multipass
`multipass transfer` from vm to host prints SFTP error in Windows
- Dominant language
- C++
- Stars
- 9.2k
- Forks
- 828
- Avg merge
- 3d 1h
- Merged PRs (30d)
- 44
Description
**Describe the bug**
`multipass transfer` prints `[error] [sftp] cannot set permissions for local file target` in Windows
**To Reproduce**
How, and what happened?
1. `multipass launch --name transfer-test`
2. Push a local file to the VM, e.g., `multipass transfer foo transfer-test:.`
3. Try to pull the file to the same folder: `multipass transfer transfer-test:foo foo-copy`
4. Transfer prints the `[error] [sftp] cannot set permissions for local file target` message, but it succeeds.
**Additional info**
- OS: Win 11 Pro
- CPU architecture or model: x86_64
- `multipass version`: `1.17.0-dev.616.ci1549+gf42cf65a.win`
- `multipass get local.driver`: `hyperv`
**Additional context**
It succeeds in Linux (1.17.0-dev.710+g4474fc95).
Contributor guide
Research direction
Start with the `multipass transfer` command and the Windows path that handles transfers from a VM to the host. Reproduce the transfer using the commands in the issue and trace the SFTP permission error. Done means the file still transfers successfully on Windows without printing the spurious error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- cpp
- Domain
- cli, operating-systems
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100