? Failure

User tests: Successful: Unsuccessful:

avatar bweston92
bweston92
9 Sep 2014

I'm not to sure about this as when DI is implemented all injected JUri instances would be a shared instance of the current request (Currently JFactory::getUri();). But for the time being doing new JUri isn't making it possible for my https site to load Google maps as the scheme on an empty JUri instance is null.

There is another way of doing this which would be modifying JUri setting the construct to accept 'SERVER' and then $this->populateFromServer();

avatar bweston92 bweston92 - open - 9 Sep 2014
avatar jissues-bot jissues-bot - change - 9 Sep 2014
Labels Added: ?
avatar wilsonge
wilsonge - comment - 10 Sep 2014

Hi,
So what are you actually trying to do here? You want the default value to be the current URL of the page?

avatar bweston92
bweston92 - comment - 10 Sep 2014

@wilsonge JGoogleEmbedMaps when no JUri is given it creates a new instance which doesn't contain the current information like the scheme. So therefore when you're on HTTPS and JUri returns null for getScheme causes isSecure on the embed to return false and therefore the map won't load as it is insecure content on a secure site.

avatar brianteeman brianteeman - change - 17 Oct 2014
Category Libraries
avatar RCheesley
RCheesley - comment - 18 Oct 2014

Can you provide test instructions please?

This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/4249.

avatar Hackwar
Hackwar - comment - 3 Feb 2015

Please update to the latest staging to solve the unittest errors and fix the merge conflict(s).

avatar bweston92
bweston92 - comment - 17 Apr 2015

Again not got time to do that.

avatar bweston92 bweston92 - change - 17 Apr 2015
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2015-04-17 13:21:48
Closed_By bweston92
Labels Removed: ?
avatar bweston92 bweston92 - close - 17 Apr 2015

Add a Comment

Login with GitHub to post a comment