Hi Team,
Thank you so much for your continued support. I wanted to share some recent findings regarding the whitelist and code configuration. After enabling the whitelist, I confirmed that the direct code snippet below was working as expected:
add prefetch item name=p38658588_190000_SOLARIS64.zip sha1=0a7485aa9f2c3522e4c3475eae0940a9d7e67791 sha256=270301973b76465d3e676a26dafcbc28dcf38dc5d3df95246e91b05de13bc530 size=2570284246 url=MiddlewareProtocol://get.file/oracle/updates.oracle.com/Orion/Services/download/p38658588_190000_SOLARIS64.zip?aru=28550644&patch_file=p38658588_190000_SOLARIS64.zip
However, when I switched to using parameters in the code, the functionality did not work as intended. Here’s the code I used for the parameter approach:
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)"
add prefetch item name={parameter "pkgName"} sha1={parameter "pkgSHA1"} sha256={parameter "pkgSHA256"} size={parameter "pkgSize"} url=MiddlewareProtocol://get.file/oracle/updates.oracle.com/Orion/Services/download/{parameter "pkgName"}?aru={parameter "AruId"}&patch_file={parameter "pkgName"}
end prefetch block
Unfortunately, this resulted in the following error: "Unexpected error during download: oracle login failed." Notably, Oracle login worked properly when values were passed directly but failed when parameters were used. The download request details and retry information are included below for your reference.
Download requested by client:
URL: MiddlewareProtocol://get.file/oracle/updates.oracle.com/Orion/Services/download/p38586770_190000_MSWIN-x86-64.zip?aru=28477528&patch_file=p38586770_190000_MSWIN-x86-64.zip
Hash: (sha1)e4435114b647947eca59bee4d9dd1bede6854bc7
Size: 146048040 bytes
Next retry: 2 minutes. Retry now
It seems there may be an issue with passing parameters in this context. If anyone has suggestions on what might be causing the login failure or tips on troubleshooting the parameter usage, I would really appreciate your insight.
Thanks again for your help and looking forward to your feedback.