- From: Edward Sargisson <
>
- To:
- Subject: [chef] Re: Re: Re: java::oracle recipe broken due to oracle now requiring browser cookie
- Date: Tue, 27 Mar 2012 12:01:29 -0700
Bryan,
Thanks for informing us about this. My recipes would have failed next time they ran (e.g. during a production failure).
As for the approach, I've stored the Sun java tarballs on a local repository (well...S3). The Selenium method seems far too involved.
As for the OpenJDK approach, it doesn't work with JFreeChart because of font problems. I haven't recently gone back to see if those issues got resolved.
Cheers,
Edward
On Tue, Mar 27, 2012 at 11:44 AM, Adam Jacob
<
">
> wrote:
Seems like a great reason to move to OpenJDK. My instinct would be that if they are going to this kind of length to get you to register/use a cookie, honor their request - by downloading it locally and fetching it repeatably from a local location. Or by moving to OpenJDK.
Adam
On Tue, Mar 27, 2012 at 4:25 AM, Bryan Berry
<
" target="_blank">
> wrote:
besides having your own local copy of java, I have found a way to download directly from
oracle.com but it is quite heavyweight. It requires the installation of firefox, Xvfb (virtual X11 server), and the watir-webdriver and headless gems. There is no way around installing firefox as the oracle site requires _javascript_ to agree to their terms.
I am really wondering if this solution is so invasive that no one will use it. If someone has a better solution, pls let me know!
$ sudo apt-get install xvfb
$ gem install watir-webdriver headless
# downloads jdk 1.7
require 'watir-webdriver' require 'headless' headless = Headless. new |
profile = "Selenium::WebDriver::Firefox::Profile.new
profile['browser.download.folderList'] = 2
profile['browser.download.dir'] = '/tmp'
profile['browser.helperApps.neverAsk.saveToDisk'] = "application/x-tar-gz, application/x-gzip, application/x-compressed"
b = Watir::Browser.new :firefox, :profile =">" profile
b.radio(:name => "agreementDivjdk-7u3-oth-JPR").click
b.radio(:name => "agreementjdk-7u3-oth-JPR").click
b.a(:name => "jdk-7u3-oth-JPRXXXjdk-7u3-linux-x64.tar.gz").click
# somehow need to block until file totally downloaded
headless.destroy
On Tue, Mar 27, 2012 at 10:10 AM, Bryan Berry
<
" target="_blank">
> wrote:
in the meantime, you can work around this by downloading the tarball to a local server than then overriding the node['java'][jdk']['6']['x86_64']['url'] attribute like this or in a role
node['java'][jdk']['6']['x86_64']['url'] = 'http://your_local_server/java_tarball.tar.gz'
On Tue, Mar 27, 2012 at 10:05 AM, Bryan Berry
<
" target="_blank">
> wrote:
dear fellow chefs,
the java::oracle recipe is now broken as Oracle requires a browser cookie set upon accepting license terms
I will be working on it
that really chaps my hide
--
Opscode, Inc.
Adam Jacob, Chief Customer Officer
T: (206) 619-7151 E:
" target="_blank">
Archive powered by MHonArc 2.6.16.