Skip to content

fix: Cross-platform path handling for OVF FileArchive uploads#3596

Merged
dougm merged 1 commit intovmware:mainfrom
Xiol:issue-3555-cross-platform-paths
Oct 21, 2024
Merged

fix: Cross-platform path handling for OVF FileArchive uploads#3596
dougm merged 1 commit intovmware:mainfrom
Xiol:issue-3555-cross-platform-paths

Conversation

@Xiol
Copy link
Copy Markdown
Contributor

@Xiol Xiol commented Oct 17, 2024

Description

Path handling for OVF uploads was using hardcoded path separators that did not support usage on Windows. This change handles paths in a cross-platform manner and ensures the absolute path is being used at all times.

Closes: #3555

How Has This Been Tested?

We have tested this in our own environment and confirmed it resolves the issues we were seeing with relative paths having paths prefixed on incorrectly.

@Xiol Xiol changed the title fix: Cross-platform path handling fix: Cross-platform path handling for OVF FileArchive uploads Oct 17, 2024
Copy link
Copy Markdown
Member

@dougm dougm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @Xiol

@dougm dougm merged commit 15e0e96 into vmware:main Oct 21, 2024
dougm added a commit to dougm/govmomi that referenced this pull request Jan 6, 2025
- Fix regression introduced in 36ee9a1 / PR vmware#3596
- Add test for remote import.ovf

Signed-off-by: Doug MacEachern <dougm@broadcom.com>
dougm added a commit that referenced this pull request Jan 7, 2025
- Fix regression introduced in 36ee9a1 / PR #3596
- Add test for remote import.ovf

Signed-off-by: Doug MacEachern <dougm@broadcom.com>
@github-actions
Copy link
Copy Markdown
Contributor

I'm going to lock this pull request because it has been closed for 30 days. This helps our maintainers find and focus on the active issues.

If you have found a problem that seems related to this change, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Mar 17, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] OVF file uploads not using absolute path

2 participants