Fixlet action script correction required

I need assistance to download the package from Oracle website directly to bigfix root server. I need assistance to correct my action.

action parameter query "pkgName" with description "Enter the Oracle package file name (e.g., p37591516_190000_SOLARIS64.zip)"
action parameter query "pkgSize" with description "Enter the Oracle package size (bytes)"
action parameter query "pkgSHA1" with description "Enter the Oracle package SHA1 value"
action parameter query "pkgSHA256" with description "Enter the Oracle package SHA256 value"
action parameter query "AruId" with description "Enter the Oracle ARU number for this patch (e.g., 27350547)"
action parameter query "authToken" with description "Paste the Oracle AuthParam token value"

begin prefetch block
add prefetch item name="{parameter "pkgName"}" size={parameter "pkgSize"} sha1={parameter "pkgSHA1"} sha256={parameter "pkgSHA256"} url="https://updates.oracle.com/Orion/Services/download/{parameter "pkgName"}?aru={parameter "AruId"}&patch_file={parameter "pkgName"}&AuthParam={parameter "authToken"}"
end prefetch block

move "__Download/{parameter "pkgName"}" "/tmp/{parameter "pkgName"}"

You can use the below syntax

begin prefetch block
action parameter query "pkgName" with description "Enter the Oracle package file name (e.g., p37591516_190000_SOLARIS64.zip)"
action parameter query "pkgSize" with description "Enter the Oracle package size (bytes)"
action parameter query "pkgSHA1" with description "Enter the Oracle package SHA1 value"
action parameter query "pkgSHA256" with description "Enter the Oracle package SHA256 value"
action parameter query "AruId" with description "Enter the Oracle ARU number for this patch (e.g., 27350547)"
action parameter query "authToken" with description "Paste the Oracle AuthParam token value"
add prefetch item name="{parameter "pkgName"}" size={parameter "pkgSize"} sha1={parameter "pkgSHA1"} sha256={parameter "pkgSHA256"} url="https://updates.oracle.com/Orion/Services/download/{parameter "pkgName"}?aru={parameter "AruId"}&patch_file={parameter "pkgName"}&AuthParam={parameter "authToken"}"
end prefetch block

Hi , While i was testing , i got this error.

begin prefetch block
action parameter query "pkgName" with description "Enter the Oracle package file name (e.g., p37591516_190000_SOLARIS64.zip)"
action parameter query "pkgSize" with description "Enter the Oracle package size (bytes)"
action parameter query "pkgSHA1" with description "Enter the Oracle package SHA1 value"
action parameter query "pkgSHA256" with description "Enter the Oracle package SHA256 value"
add prefetch item name={parameter "pkgName"} size={parameter "pkgSize"} sha1={parameter "pkgSHA1"} sha256={parameter "pkgSHA256"} url="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.9.3/npp.8.9.3.Installer.x64.exe"
end prefetch block

ActionLogMessage: (action:29099) Action signature verified for Downloads
ActionLogMessage: (action:29099) Download name is invalid. Name must only be composed of ASCII characters a-z, A-Z, 0-9, -, _, and non-leading

This can be corrected.


begin prefetch block
action parameter query "pkgName" with description "Enter the Oracle package file name (e.g., p37591516_190000_SOLARIS64.zip)"
action parameter query "pkgSize" with description "Enter the Oracle package size (bytes)"
action parameter query "pkgSHA1" with description "Enter the Oracle package SHA1 value"
action parameter query "pkgSHA256" with description "Enter the Oracle package SHA256 value"
add prefetch item name={parameter "pkgName"} size={parameter "pkgSize"} sha1={parameter "pkgSHA1"} sha256={parameter "pkgSHA256"} url="https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.9.3/npp.8.9.3.Installer.x64.exe"
end prefetch block

Remove the "" around the pkgName and you can pass the name as name of the package without the version and the . The solution will still work.

If possible you can also share the client logs for better understanding

1 Like

Executed the action & got the error as follows.

Download error: The requested URL does not pass this deployment's download whitelist.
Download requested by client:
URL: "https://updates.oracle.com/Orion/Services/download/p38658588_190000_SOLARIS64.zip?aru=28550644&patch_file=p38658588_190000_SOLARIS64.zip"

But website entries “updates.oracle.com” in the “F:\BigFix Enterprise\BES Server\Mirror Server\Config\DownloadWhitelist” file. However seems, it’s not working.

How to fix this issue?

Hi,

You can check this post and get some insights.