Skip to content
This repository has been archived by the owner on May 3, 2022. It is now read-only.

Fix EZP-26768 : YUI3 from external Yahoo CDNs #766

Merged
merged 1 commit into from
Jan 5, 2017

Conversation

nicolas-bastien
Copy link
Contributor

@nicolas-bastien nicolas-bastien commented Dec 12, 2016

https://jira.ez.no/browse/EZP-26768

Description

When combine: false is set in yui.yml file it tries to download YUI3 from external Yahoo CDNs.
This is broken on HTTPS.

More details

Even if combine option is false, YUI uses the combo loading for it's own files. If comboBase and root are not set, YUI will load from http://yui.yahooapis.com with an hard coded 'http'.

Setting this options allows to load YUI internal files from ezcombo every project files are loaded separately.

Test manually

  • Set combine option to false in plateform-ui-bundle/Resources/config/yui.yml.
  • Clear cache + dump assets
  • Try to load the ez dashboard on HTTPS

-> the dashboard or login screen should appear normally
(Before this fix it's blocked on loading with JS errors)

QA

composer require ezsystems/platform-ui-bundle:dev-EZP-26768-yui-loading-https

When combine: false is set in yui.yml file it tries to download YUI3 from external Yahoo CDNs.
This is broken on HTTPS
Even if combine option is false, YUI use the combo loading for it's own files
Copy link
Contributor

@andrerom andrerom left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+0.5, but does this make it impossible to get it to load from CDN?

@nicolas-bastien
Copy link
Contributor Author

@andrerom yes it won't use yahoo cdn anymore.

@andrerom
Copy link
Contributor

ok, well we might be missing the people that could give insight if that is supposed to be supported somehow atm.

@bdunogier
Copy link
Member

bdunogier commented Dec 12, 2016

Hard to say from my perspective. I wouldn't merge this without @dpobel's review.

@nicolas-bastien nicolas-bastien changed the base branch from master to 1.7 January 5, 2017 13:38
@nicolas-bastien nicolas-bastien merged commit 0b7c870 into 1.7 Jan 5, 2017
@nicolas-bastien nicolas-bastien deleted the EZP-26768-yui-loading-https branch January 5, 2017 13:39
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

4 participants