-
Notifications
You must be signed in to change notification settings - Fork 17
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
Fix EZP-21450: gallery-base64-min.js not avaiable on https #35
base: master
Are you sure you want to change the base?
Conversation
Since the file http://yui.yahooapis.com/gallery-2009.12.08-22/build/gallery-base64/gallery-base64-min.js is not reachable from http protocal, we have to host it ourself so we can provide it on https protocal
If the current website protocol is https, then we load the local file instead of the remote file as it can be loaded on https.
Hi Mikael and thanks for the contribution! This fix makes perfect sense from a functional standpoint. I am not 100% sure about the implementation (JS-only), but can't find a use-case where this would fail. +1 PS: do you happen to know whether there as a reported issue for this? If not, it would be ideal to report this here. |
Hi, I pushed this update as I encountered the issue recently. I thought that pushing a fix would be sufficient at least to open the debate on how to solve the issue. |
Hi Mikael, Pushing a PR is fantastic already! Having an associated JIRA issue is great for tracking, and makes change-logs very easy to decrypt for the community. Here is an example: http://share.ez.no/downloads/downloads/ez-publish-community-project-2013.07/changelog-from-community-project-2013.06-to-community-project-2013.07 In order to log-in on jira.ez.no, you can use your share.ez.no account. If you do not have one, you can very easily and quickly create one by clicking the Register link in the top-right corner of the eZ Publish Community Portal. Cheers! |
Pull request for EZP-21450 |
Great, thanks for reporting the issue! 👍 on my end. What do you guys think @dpobel @andrerom @lolautruche @bdunogier @yannickroger ? |
+0.8 More something for @dpobel to review |
pull requests from ezsystems/ezcomments
cs: should be space between the end paragraphs
Merge pull requests
Hi Mikaël, Thanks for the pull request. That's indeed a real issue but your patch won't work if eZ Publish is installed in a sub-directory (http://example.com/ez-subdir/). To avoid this issue, I would rather pass the path to the local version in parameter of the init method so that this path can be computed in a template with ezdesign() for instance. Cheers |
@dpobel Indeed I hadn't thought of the case of a sub-directory. I didn't fully understood your solution but I think you know what you mean. |
The script http://yui.yahooapis.com/gallery-2009.12.08-22/build/gallery-base64/gallery-base64-min.js is not reachable on https protocol that can be blocking. So we host the script and load it locally if the current website uses the https protocol.
Issue: https://jira.ez.no/browse/EZP-21450