fod-dev / fod-uploader-java

Java Utility for uploading packages to FoD
MIT License
12 stars 27 forks source link

-isRemediationScan flag not accepted #41

Open captainjono opened 5 years ago

captainjono commented 5 years ago

using the command line: java -jar c:\tools\FodUpload.jar -ac -a Automated -bsi -ep Subscription -notes "note" -p Standard -isRemediationScan false -z ToScan.zip result in: ERROR> Was passed main parameter 'false' but no main parameter was defined

tried with --r, same result.

yeulih commented 5 years ago

Hello,

It looks like you have left out the credentials (-ac) and bsi token (-bsi), but there might be an issue of special characters in the command line. Check that you are running the latest version, the correct credentials are provided in the correct order, and that special characters are being escaped.

captainjono commented 5 years ago

sorry i included {redacted} (token's} with the command but i formatted it incorrectly and markdown removed it completely from my post.

the command works as soon as i omit: --r false / -isRemediationScan false

yeulih commented 5 years ago

The -isRemediationScan/-r argument is optional and set to false by default. You can omit the argument in your example. Without knowing the full command, an upstream error might have caused the error prompt. Older API keys occasionally had special characters. The documentation also states "Flag arguments are false by default. Include a flag to set it to true—you do not need to specify true or false."

captainjono commented 5 years ago

I came on here to give a bug report, i included the full command. (with keys omitted on purpose)

I didnt come on here to ask for your help with anything. I was simply reporting a bug.

If you want to disregard the bug report. Disregard it.

TDLR; Start of bug report: The flags: --r / -isRemediationScan when appended to any command will cause it to fail

End of bug report.