Git Product home page Git Product logo

Comments (11)

cbandy avatar cbandy commented on May 30, 2024

I've not seen that before, or I don't remember what can cause it.

Did Oracle change something on their end that made the download solution unstable?

Quite probably. The error likely comes from trying to find/use the login form on Oracle's site. I can take a look tomorrow.

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

I have a feeling it's something related to the cookies.

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

I've switched to language: phyton for the project and it suddenly started working.
So another clue maybe it's related to the setting of:

language: java
jdk:
  - oraclejdk8

edit:

  • this worked only for one build.
    Second build on phyton is failing the same way as java did.

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

What I have noticed is that on Oracle side I keep on getting asked to approve the licence, when I use link:
https://edelivery.oracle.com/akam/otn/linux/oracle11g/xe/oracle-xe-11.2.0-1.0.x86_64.rpm.zip
Does it mean that the cookie is no linger persisted?

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

I think that Oracle has changed it's cookie policy so that they expire at the end of the session and session timeout is quite short now.

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

When navigating to the link direcrly from browser I often get the message:

Sorry! 
 
In order to download products from Oracle Technology Network you must agree to the OTN license terms. 
 
Be sure that... 
 Your browser has "cookies" and JavaScript enabled. 
 You clicked on "Accept License" for the product you wish to download. 
 You attempt the download within 30 minutes of accepting the license. 

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

@viniciusam was working on an accept-license-each-time solution.
Maybe that could solve the issue.
https://github.com/viniciusam/oracle-toolbox/blob/master/download.js

   this.echo('Accepting License');
   this.evaluate(function () {
      acceptAgreement(window.self);
   });
});

// Try to access the download page, wait for redirection and submit the login form.
casper.thenOpen(downloadUrl).waitForUrl(/signon\.jsp$/, function (re) {
   this.echo('Injecting Login Info');
   this.evaluate(function (username, password) {
      document.getElementById('sso_username').value = username;
      document.getElementById('ssopassword').value = password;
      doLogin(document.LoginForm);
      // TODO: Check if login was successfull.
   }, paramUsername, paramPassword);
});

from travis-oracle.

cbandy avatar cbandy commented on May 30, 2024

I am able to reproduce this locally. From what I can tell, the problem is that we try to use jQuery to inspect the login form before jQuery is loaded. This is a simple patch that resolves the issue for me, can you give it a try?

diff --git a/download.js b/download.js
index d51aa5a..761003c 100644
--- a/download.js
+++ b/download.js
@@ -35,7 +35,7 @@ Phantom.createAsync({ parameters: { 'ssl-protocol': 'tlsv1' } }).then(function (
     .then(function () {
       return page.openPromise("https://edelivery.oracle.com/akam/otn/linux/" + env['ORACLE_FILE']).then(function (status) {
         if (status != 'success') throw "Unable to connect to oracle.com";
-        return page.waitForSelectorPromise('input[type=password]', 5000);
+        return page.waitForSelectorPromise('input[type=password]', 5000).delay(1000);
       })
       .catch(PhantomError, function (err) {
         return page.getPromise('plainText').then(function (text) {

I have a proper fix (wait until jQuery is loaded) working but need to clean it up before committing.

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

Let me try that in the evening.

from travis-oracle.

jgebal avatar jgebal commented on May 30, 2024

Worked like a charm,
https://travis-ci.org/utPLSQL/utPLSQL-demo-project/builds/223333720

Let me know if you plan to have a release for this fix. I'd rather download your release from your repo (as per readme) than keep a copy of your project embedded.

Thanks for a quick turnaround on this.

from travis-oracle.

ChristopherDavenport avatar ChristopherDavenport commented on May 30, 2024

I agree, keeping this project entirely in my .travis.yml if possible and currently builds are inconsistent. So a new release would help get CI operational again.

Thanks for being so responsive.

from travis-oracle.

Related Issues (14)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.