Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Page appears blank #44

Open
drewcrawford opened this issue Oct 1, 2015 · 1 comment
Open

Page appears blank #44

drewcrawford opened this issue Oct 1, 2015 · 1 comment

Comments

@drewcrawford
Copy link

When loading a bucket listing that is previously known to work, the page appears blank.

screen shot 2015-10-01 at 6 10 52 pm

This is because the JS refuses to load:

screen shot 2015-10-01 at 6 04 37 pm

This seems to be because Safari is trying to load the content over plaintext:

screen shot 2015-10-01 at 6 00 40 pm

Even though it is definitely an HTTPS link in the source tag:

screen shot 2015-10-01 at 6 00 54 pm

Note that Chrome seems to complain about a similar issue:

screen shot 2015-10-01 at 6 19 31 pm

This seems to be because GitHub is issuing a 301 redirect to a non-SSL URI:

curl -vvv https://rgrp.github.io/s3-bucket-listing/list.js
*   Trying 23.235.44.133...
* Connected to rgrp.github.io (23.235.44.133) port 443 (#0)
* TLS 1.2 connection using TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256
* Server certificate: www.github.com
* Server certificate: DigiCert SHA2 High Assurance Server CA
* Server certificate: DigiCert High Assurance EV Root CA
> GET /s3-bucket-listing/list.js HTTP/1.1
> Host: rgrp.github.io
> User-Agent: curl/7.43.0
> Accept: */*
>
< HTTP/1.1 301 Moved Permanently
< Server: GitHub.com
< Content-Type: text/html
< Location: http://dev.rufuspollock.org/s3-bucket-listing/list.js
< Content-Length: 178
< Accept-Ranges: bytes
< Date: Thu, 01 Oct 2015 23:21:07 GMT
< Via: 1.1 varnish
< Age: 0
< Connection: keep-alive
< X-Served-By: cache-dfw1833-DFW
< X-Cache: MISS
< X-Cache-Hits: 0
< X-Timer: S1443741667.238523,VS0,VE37
< Vary: Accept-Encoding
<
<html>
<head><title>301 Moved Permanently</title></head>
<body bgcolor="white">
<center><h1>301 Moved Permanently</h1></center>
<hr><center>nginx</center>
</body>
</html>

I am working around by hosting list.js myself. That seems to work fine.

Known config: OSX 10.11 (15A284), Safari 9.0 (11601.1.56), Chrome 45.0.2454.101 (64-bit)

I assume this is actually GitHub's bug, but I don't think they have an actual bugtracker :-/

@rufuspollock
Copy link
Owner

Thanks for the report and detailed analysis - really appreciated.

Can you share the site where this happens? I've got two sites that seem to be working ok e.g. https://assets.okfn.org/ and http://data.openspending.org/ (in chrome and safari).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants