Magic Lantern Forum

General Discussion => Forum and Website => Topic started by: ddire on May 12, 2014, 02:53:04 PM

Title: NB Folder Access - nightly link not working
Post by: ddire on May 12, 2014, 02:53:04 PM
Hi, I cant access the nightly builds folder, just keeps on taking me back to the https://builds.magiclantern.fm/ homepage when I click on browse nightly builds?? Any ideas why?
Title: Re: NB Folder Acces
Post by: Walter Schulz on May 12, 2014, 03:02:14 PM
http://builds.magiclantern.fm/#/
or browse
http://builds.magiclantern.fm/jenkins/
Title: Re: NB Folder Acces
Post by: a1ex on May 12, 2014, 03:04:07 PM
Link doesn't work (Firefox 29, didn't work before upgrading FF either).

I told Nanomad about it last week, but maybe he couldn't reproduce it.
Title: Re: NB Folder Acces
Post by: Audionut on May 12, 2014, 07:42:15 PM
Been working fine with firefox here.
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 05:34:11 PM
Am I the only one still having an issue with this?

I can't access through IE, Firefox, or IPhone (just to be sure)... takes me in an endless loop back to the main page when I click to access Nightly Builds.
Title: Re: NB Folder Acces
Post by: Audionut on May 15, 2014, 05:49:28 PM
This link http://builds.magiclantern.fm/#/

?
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 05:54:49 PM
Thanks...

Works fine in IE, Firefox show connection reset error/problem loading page error.
Title: Re: NB Folder Acces
Post by: Audionut on May 15, 2014, 06:17:35 PM
Works fine here with FF.  Considering only yourself and a1ex appear to have the issue*, I expect the issue might be a difficult one to solve.
Nanomad should know more, but he appears to be attending to life atm.

* Normally, an issue results in many duplicate posts.  So far, this is the only thread regarding this issue.
Title: Re: NB Folder Acces
Post by: a1ex on May 15, 2014, 06:20:16 PM
Quote from: Audionut on May 15, 2014, 05:49:28 PM
This link http://builds.magiclantern.fm/#/

?

Yes. Still not working here in Firefox, but works with Chrome.
Title: Re: NB Folder Acces
Post by: Audionut on May 15, 2014, 06:24:44 PM
The download page http://www.magiclantern.fm/downloads.html sends a redirect from here http://nanomad.magiclantern.fm/nightly/

Long shot, but does that last link work?
Title: Re: NB Folder Acces
Post by: a1ex on May 15, 2014, 06:26:19 PM
Nope. It redirects to https://builds.magiclantern.fm/ and it stops there.
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 06:30:01 PM
Same for me... only that direct link you posted works and only in IE.
Title: Re: NB Folder Acces
Post by: Audionut on May 15, 2014, 06:36:59 PM
Hmm, I also get an error when using the encrypted link.

Do you guys have some plugin that tries to encrypt everything?
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 06:40:39 PM
Not that I know of.

I run AdBlock Plus, Ghostery, Privacy Eraser, and StopScript.
Title: Re: NB Folder Acces
Post by: Audionut on May 15, 2014, 06:43:50 PM
A quick google search for StopScript didn't turn up anything immediately helpful. 

I assume it's some Java blocking thing similar to NoScript (https://addons.mozilla.org/en-US/firefox/addon/noscript/).  The nightly download page relies on Java (I think, based on the page source).  You may need to explicitly allow an exception.
Title: Re: NB Folder Acces
Post by: a1ex on May 15, 2014, 06:47:33 PM
All extensions disabled, still not working.
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 06:50:44 PM
Same here just did the same... only started after the new Firefox update.
Title: Re: NB Folder Acces
Post by: a1ex on May 15, 2014, 06:54:01 PM
Here it's been broken for 1 or 2 weeks, so nothing to do with FF update (FF updated itself a few days ago).

Some forum links also seem to behave in weird ways (for example, when linking to a earlier post on the same page, I remember it used to simply scroll to the old post rather than reloading the entire page). Not 100% sure about this though.
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 06:56:52 PM
Mine is still scrolling as you describe.

The day of the update is the day the problem started, but it could have been the first time in a while Super Start Page updated links....
Title: Re: NB Folder Acces
Post by: Walter Schulz on May 15, 2014, 06:57:59 PM
Running Firefox 24.5.0 ESR with NoScript and some other blockers. OS is Windows 7/64

No problem to access
http://builds.magiclantern.fm/#/
but will be denied to
https://builds.magiclantern.fm/#
and
https://builds.magiclantern.fm

http://builds.magiclantern.fm
redirects to
http://builds.magiclantern.fm/#
Title: Re: NB Folder Acces
Post by: Audionut on May 15, 2014, 06:58:05 PM
I'm out of ideas.
I can confirm it (also) works in the ML development VM, with both the installed version (18.?), and an updated version (29.0).




Perhaps it is related to this (http://www.magiclantern.fm/forum/index.php?topic=11462.0), which appears to be a cloudflare issue.  I have noticed this issue myself.
I guess we have to wait for nanomad.
Title: Re: NB Folder Acces
Post by: Stedda on May 15, 2014, 07:17:29 PM
At least I have one way to access it now... thanks for the help.
Title: Re: NB Folder Acces
Post by: ayshih on May 23, 2014, 12:54:12 AM
I just discovered that Chrome on my OS X box can no longer access the nightly-build page.  It redirects to the HTTPS version of the URL, which then dies.  I do not know when this behavior started.  Every other browser I've tried, including Chrome on Windows, does not redirect from the HTTP URL to the HTTPS URL.

This suggests to me that my OS X Chrome is being too "smart", and substituting in the (non-functional) HTTPS version of the URL.  I do not knowingly have any extension installed that could be responsible.
Title: Re: NB Folder Acces
Post by: ayshih on May 23, 2014, 01:08:49 AM
Beautiful, found the explanation: somehow the web server, at some point, used HSTS (http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security) to tell my Chrome that it must use HTTPS to access it.  That's a problem because HTTPS doesn't work for this server.

The fix for Chrome: go to

chrome://net-internals/#hsts

and remove "builds.magiclantern.fm" from the HSTS set.  I can now access the nightly build page.

Presumably something analogous can be done on other clients that are exhibiting this problem.  Also, there may be something misconfigured on the server.
Title: Re: NB Folder Acces
Post by: Audionut on May 23, 2014, 06:50:19 AM
Thanks ayshih.

http://en.wikipedia.org/wiki/HTTP_Strict_Transport_Security

QuoteThe initial request remains unprotected from active attacks if it uses an insecure protocol such as plain HTTP or if the URI for the initial request was obtained over an insecure channel.[22] The same applies to the first request after the activity period specified in the advertised HSTS Policy max-age (sites should set a period of several days or months depending on user activity and behavior). Google Chrome and Mozilla Firefox address this limitation by implementing a "STS preloaded list", which is a list that contains known sites supporting HSTS.[17][18] This list is distributed with the browser so that it uses HTTPS for the initial request to the listed sites as well.

https://blog.mozilla.org/security/2012/11/01/preloading-hsts/

QuoteOur "preload list" has been seeded with entries from Chrome's list of a similar function. To build our preload list, a request is sent to every host with 'mode: "force-https"' on Chrome's list. Only if a host responds with a valid HSTS header with an appropriately large max-age value (currently greater than or equal to 10886400, which is eighteen weeks) do we include it in our list. We also see if the includeSubdomains value for the entry on Chrome's list is the same as what we receive in the response header (if they do not match, we use the one we receive).


Since this problem only occurs for a subset of users, I can only assume it is some bug in the way Chrome/Firefox handles it.  I don't have knowledge of server side changes, so I'm uncomfortable in reporting the issue to Mozilla/Google devs.

It looks like the issue can be resolved on our side, like so.

QuoteTo accomplish this task, we introduce the concept of "knockout" entries in our HSTS implementation. When the browser receives an HSTS header with "max-age=0″, a knockout entry is stored that overrides the corresponding entry in the preload list. The knockout entry essentially says, "We have no HSTS information regarding this host." As a result, the browser behaves as if the host were not on the preload list.

I assume something similar happens for Google' list also.
Title: Re: NB Folder Acces
Post by: a1ex on May 26, 2014, 06:46:45 PM
Maybe related: today this link also stopped working: http://www.magiclantern.fm/forum/index.php (it redirects to the main home page, via a page named javaredirect.html).

This one works: http://www.magiclantern.fm/forum/
Title: Re: NB Folder Access - nightly link not working
Post by: a1ex on May 28, 2014, 07:42:47 AM
Today, the forum link from the main page (second link from above post) stopped working too. Clicking on the link simply refreshes the home page (via javaredirect.html).

Directly typing www.magiclantern.fm/forum doesn't work either.

To access the forum, I have to start from a link to some existing message, from history.
Title: Re: NB Folder Access - nightly link not working
Post by: Walter Schulz on May 28, 2014, 07:54:37 AM
Works fine here.
Do you use NoScript or another add-on able to block java, javascript, cookies?
Title: Re: NB Folder Access - nightly link not working
Post by: a1ex on May 28, 2014, 10:22:39 AM
I use Adblock Edge, but I also tried with it disabled.

Clearing all history appears to have fixed all these errors though.

http://superuser.com/questions/539580/how-can-i-remove-a-website-accidentally-added-to-firefoxs-list-of-hsts-sites
Title: Re: NB Folder Access - nightly link not working
Post by: Stedda on June 02, 2014, 01:15:46 PM
Working fine today.... like nothing ever happened.
Title: Re: NB Folder Access - nightly link not working
Post by: gjh1967 on June 20, 2014, 07:24:19 AM
Hi everyone

It may be that Firefox has disabled Java scripts from activating since V27

Cheers Glenn.
Title: Re: NB Folder Access - nightly link not working
Post by: Hask on August 11, 2014, 10:44:47 PM
Guys, this just came up in the IRC channel.

As far as I can see, this is not an HSTS but a Content-Security Policy error, and modern webbrowsers are just protecting their end users.

The issue is what the Console in Chrome-developer tools will immediately tell you:
XMLHttpRequest cannot load http://builds.magiclantern.fm/jenkins/view/ML%20Platforms/api/json. Received an invalid response. Origin 'https://builds.magiclantern.fm' is therefore not allowed access.

In other words, non-HTTPS resources are attempted to be loaded from an HTTPS-site and the browser is not having any of it (and rightfully so).

Looking over the AngularJS source, this comes mostly down to hardcoded http-protocols being used in the urls.

Firstly, to get it to work, I've locally changed in the Chrome-debugger references to the protocol in the file app.js, change:
RestangularProvider.setBaseUrl('http://builds.magiclantern.fm/jenkins/');

so that it doesn't include the protocol (which means it'll use the protocol of the current site), so:
RestangularProvider.setBaseUrl('//builds.magiclantern.fm/jenkins/');


This is enough to get the downloads working, but, really, all the hardcoded protocols from the url-references should be deleted (or changed to HTTPS if it's really never meant to run under HTTP). There are also other errors in the console when clicking download, but at least it works.
Is the source of the app open for download somewhere? I'd happily help where I can with this.

Hope this helps!



EDIT:
Came up in the IRC-channel again.

It seems to work in IE11, but that can only be the case if you use the non-HTTPS link. If you use HTTPS, IE11 works correctly by blocking.
The difference is that if you use the non-HTTPS link in Chrome, it changes the protocol to HTTPS (because, HSTS). The site then automagically gets broken for a large part of your users.

So, I think removing the hardcoded http-references should still work, also when in the future IE will support HSTS.


Title: Re: NB Folder Access - nightly link not working
Post by: a1ex on August 26, 2014, 08:56:04 AM
Solved, thanks @Hask.

Please test both http and https.
Title: Re: NB Folder Access - nightly link not working
Post by: Walter Schulz on August 26, 2014, 09:28:16 AM
IE8 and FF26 tested with http and https. Both working now!
Title: Re: NB Folder Access - nightly link not working
Post by: Hask on September 14, 2014, 07:19:43 PM
Quote from: a1exSolved, thanks @Hask.

You're welcome, glad I could do something back for Magic Lantern :)