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

Fix EZP-21450: gallery-base64-min.js not avaiable on https #35

Open
wants to merge 5 commits into
base: master
Choose a base branch
from
Open

Fix EZP-21450: gallery-base64-min.js not avaiable on https #35

wants to merge 5 commits into from

Conversation

mikaelcom
Copy link
Contributor

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

Mikaël DELSOL added 2 commits August 24, 2013 09:47
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.
@nfrp
Copy link
Contributor

nfrp commented Aug 26, 2013

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.

@mikaelcom
Copy link
Contributor Author

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.
Do I need to report the issue on Jira? If so, I don't have any account on it... How do I do?

@nfrp
Copy link
Contributor

nfrp commented Aug 26, 2013

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!

@mikaelcom
Copy link
Contributor Author

Pull request for EZP-21450

@nfrp
Copy link
Contributor

nfrp commented Aug 27, 2013

Great, thanks for reporting the issue!

👍 on my end.

What do you guys think @dpobel @andrerom @lolautruche @bdunogier @yannickroger ?

@andrerom
Copy link
Contributor

+0.8 More something for @dpobel to review

Mikaël DELSOL added 3 commits August 27, 2013 13:18
pull requests from ezsystems/ezcomments
cs: should be space between the end paragraphs
@dpobel
Copy link
Contributor

dpobel commented Sep 9, 2013

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

@mikaelcom
Copy link
Contributor Author

@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.

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

Successfully merging this pull request may close these issues.

4 participants