Comments (11)
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.
I have a feeling it's something related to the cookies.
from travis-oracle.
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 onphyton
is failing the same way as java did.
from travis-oracle.
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.
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.
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.
@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.
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.
Let me try that in the evening.
from travis-oracle.
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.
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)
- Create a release package HOT 1
- Archive: oracle-xe-11.2.0-1.0.x86_64.rpm.zip End-of-central-directory signature not found. HOT 2
- osx support HOT 2
- Detect login failure HOT 2
- Unicode test HOT 2
- Validate checksum before using a download file HOT 5
- Error: Cannot find module '/home/travis/download.js' HOT 2
- Unable to use all ORACLE_LOGIN environment variables HOT 12
- Instantclient downloads but does not install HOT 1
- Oracle XE 18.3 support
- Work with Travis containers HOT 1
- Fail Oracle Website HOT 7
- download.js errorCode: 299 Bad Request HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from travis-oracle.