Skip to content

Invalid 'scan' argument #7502

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

Open
1 task done
visccyberacct opened this issue Mar 5, 2025 · 3 comments
Open
1 task done

Invalid 'scan' argument #7502

visccyberacct opened this issue Mar 5, 2025 · 3 comments
Labels

Comments

@visccyberacct
Copy link

Precondition

  • I checked the issues list for existing open or closed reports of the same problem.

Describe the bug
When attempting to scan a folder with a space in the name, or output to any folder, errors arise:
Invalid 'scan' argument: 'C:\Program Files\Adobe" -o C:\Users\kent.viscount\Documents\Testing_Tools' - path does not exist

I have tried Powershell, Command Prompt, escaping the spaces with a , /, and ^. I have surrounded the paths in single and double quotes.

This did not start for me until today.

here are the commands I have used:
.\dependency-check.bat -l debug.log -project Adobe -f CSV -f HTML -s 'C:\Program Files\Adobe' -o C:\Users\kent.viscount\Documents\Testing_Tools

.\dependency-check.bat -l debug.log -project Adobe -f CSV -f HTML -s C:\Program^ Files\Adobe\

.\dependency-check.bat -l debug.log -project Adobe -f CSV -f HTML -s "C:\Program Files\Adobe"

Version of dependency-check used
The problem occurs using version 12.1.0 of the cli

Log file
When reporting errors, 99% of the time log file output is required. Please post the log file as a gist and provide a link in the new issue.

Log file will not generate with -l/--log options selected

To Reproduce
Steps to reproduce the behavior:

  1. Run dependency-check with a space in the scan folder name.
  2. Add any folder path to the -o flag

Expected behavior
dependency-check should be able to read the folder paths and complete

Additional context
Add any other context about the problem here.

@jeremylong
Copy link
Collaborator

consider something like:

.\dependency-check.bat -l debug.log -project Adobe -f CSV -f HTML -s "C:/Program Files/Adobe"

@jeremylong jeremylong added question and removed bug labels Mar 6, 2025
@visccyberacct
Copy link
Author

@jeremylong the forward slashes in the scan path worked. If there isn't a plan to fix this in the near term, can instructions be added for Windows users

@jeremylong
Copy link
Collaborator

We accept PRs. One of the reasons I haven't spent any time trying to fix this is that I do not have a windows machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants