vmware / govmomi

Go library for the VMware vSphere API
Apache License 2.0
2.3k stars 909 forks source link

[BUG] OVF file uploads not using absolute path #3555

Open Xiol opened 2 hours ago

Xiol commented 2 hours ago

Describe the bug Similar to #3550, the actual file uploads that Importer.Upload() attempts are done via relative paths. This results in the file not being found when the upload is attempted from a different working directory when using importer.Importer from another application.

To Reproduce Steps to reproduce the behavior:

  1. Attempt to upload an OVF using importer.Importer while having your working directory different to the OVF path.
  2. Notice that the upload fails to find some of the files.

Expected behavior The upload should happen successfully regardless of the current working directory.

Affected version v0.43.0

Screenshots/Debug Output N/A

Additional context N/A

github-actions[bot] commented 2 hours ago

Howdy 🖐   Xiol ! Thank you for your interest in this project. We value your feedback and will respond soon.

If you want to contribute to this project, please make yourself familiar with the CONTRIBUTION guidelines.