• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

tf / pageflow / 2219 / 2
99%
master: 99%

Build:
Build:
LAST BUILD BRANCH: actions
DEFAULT BRANCH: master
Ran 23 Jul 2019 04:55PM UTC
Files 434
Run time 37s
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

23 Jul 2019 04:43PM UTC coverage: 99.284%. Remained the same
2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true

push

travis-ci

tf
Support CDN that redirects to HTTPS

Previously, when using protocol relative URLs for paperclip and
zencoder attachments, HTTP was used as default protocol in social
share meta tag image URLs and when downloading thumbnails and posters
generated by Zencoder.

Also HTTPS URLs were actively rewritten to HTTP due to some cargo
culted workaround for a problem where Facebook had problems with HTTPS
urls.

In both cases a redirect to HTTPS served by the CDN caused problems:

* Facebook does not appear to follow redirects and instead complains
  about invalid content type.

* `open-uri` which is used by Paperclip to perform the image download
  also does not follow redirects. Video Files stay in `encoding` state
  forever since `PollZencoderJob` assumes thumbnails are not there
  yet.

It should be safe to assume that the CDN supports HTTPS if protocol
relative URLs were configured in the first place. We therefore use
HTTPS as default protocol to solve the issue.

It will be a good idea for the host application to use use HTTPS
protocols instead of protocol relative URLs to prevent extra redirect,
but still this change ensure Pageflow at least works in this case.

There is a third place that supplies HTTP as default protocol: URLs in
SMIL files used to have Akamai generate HLS files (see
`ZencoderVideoOutputDefinition`). Since the known Akamai setups using
this option do not redirect to HTTPS, the default protocol was left
unchanged to prevent regressions.

REDMINE-16967

16084 of 16200 relevant lines covered (99.28%)

30.43 hits per line

Source Files on job 2219.2 (2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true)
  • Tree
  • List 0
  • Changed 42
  • Source Changed 0
  • Coverage Changed 42
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 2164
  • Travis Job 2219.2
  • ba6d37e6 on github
  • Prev Job for 2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true on cdn-https-redirect (#2218.2)
  • Next Job for 2.5.3, PUBLISH_THEME_DOC=true COVERALLS_PARALLEL=true on cdn-https-redirect (#2220.2)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc