Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ScubaGear crashes when running OPA executable on some systems using UNC file paths #1315

Open
tkol2022 opened this issue Sep 13, 2024 · 0 comments
Labels
bug This issue or pull request addresses broken functionality
Milestone

Comments

@tkol2022
Copy link
Collaborator

🐛 Summary

When running ScubaGear on a virtual machine that is configured with \\UNC file paths instead of the standard C:\ I received the error message "Cannot bind to parameter 'InputObject' because it is null" and "The specified path is invalid." It also shows a path that starts with "Microsoft.Powershell.Core\FileSystem::\\xenprofile10" and based on my debugging the prefix before the "\\" is what was causing the problem. I doubt that this configuration is common in the wild because we haven't had a bug report about this before, but the fix is easy so we can correct it with little effort.

Screenshots

image

The fix

Screenshot of the code that is the root cause in ScubaConfig.psm1 (notice the Path field)
image

To fix this change the Path field to ProviderPath and then the DefaultOutPath won't have that Microsoft.Powershell funny business in front of it anymore.
image

@tkol2022 tkol2022 added the bug This issue or pull request addresses broken functionality label Sep 13, 2024
@schrolla schrolla added this to the Kraken milestone Sep 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug This issue or pull request addresses broken functionality
Projects
None yet
Development

No branches or pull requests

2 participants