-
-
Notifications
You must be signed in to change notification settings - Fork 638
Description
When using Oracle JDK with this cookbook, the installation can fail
*Updates or expires direct download URLs
*Requires license acceptance via cookies/tokens
*Removes older JDK versions without notice
This leads to broken automation in CI/CD environments.
Example
java_se 'jdk' do
version '17'
variant 'oracle'
action :install
end
If Oracle has expired the link for JDK 17, the cookbook fails
Error executing action install
on resource 'remote_file[/var/chef/cache/jdk-17_linux-x64_bin.tar.gz]'
404 Not Found ## these is javascript
#Solution
*Add URL validation before attempting download.
*Improve error messages with guidance:
*Suggest setting node['java']['download_url'] manually
*Point to Oracle license requirements or mirror setup
*Optional: Allow retry with a user-provided fallback mirror