Skip to content

Improve Oracle JDK download handling and expiration resilience #734

@shashanknr172-beep

Description

@shashanknr172-beep

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    Feature RequestEnhancement to existing functionality or new functionality

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions